File tree 4 files changed +5
-0
lines changed
4 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ pub trait AsMut<T: ?Sized> {
396
396
/// For example, take this code:
397
397
///
398
398
/// ```
399
+ /// # #![cfg_attr(not(bootstrap), allow(non_local_definitions))]
399
400
/// struct Wrapper<T>(Vec<T>);
400
401
/// impl<T> From<Wrapper<T>> for Vec<T> {
401
402
/// fn from(w: Wrapper<T>) -> Vec<T> {
Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ pub trait Hasher {
454
454
/// ```
455
455
/// #![feature(hasher_prefixfree_extras)]
456
456
/// # // Stubs to make the `impl` below pass the compiler
457
+ /// # #![cfg_attr(not(bootstrap), allow(non_local_definitions))]
457
458
/// # struct MyCollection<T>(Option<T>);
458
459
/// # impl<T> MyCollection<T> {
459
460
/// # fn len(&self) -> usize { todo!() }
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ fn test_iterator_step_by_nth() {
49
49
}
50
50
51
51
#[ test]
52
+ #[ cfg_attr( not( bootstrap) , allow( non_local_definitions) ) ]
52
53
fn test_iterator_step_by_nth_overflow ( ) {
53
54
#[ cfg( target_pointer_width = "16" ) ]
54
55
type Bigger = u32 ;
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ pub fn test_unwrap_or_default() {
195
195
}
196
196
197
197
#[ test]
198
+ #[ cfg_attr( not( bootstrap) , allow( non_local_definitions) ) ]
198
199
pub fn test_into_ok ( ) {
199
200
fn infallible_op ( ) -> Result < isize , !> {
200
201
Ok ( 666 )
@@ -217,6 +218,7 @@ pub fn test_into_ok() {
217
218
}
218
219
219
220
#[ test]
221
+ #[ cfg_attr( not( bootstrap) , allow( non_local_definitions) ) ]
220
222
pub fn test_into_err ( ) {
221
223
fn until_error_op ( ) -> Result < !, isize > {
222
224
Err ( 666 )
You can’t perform that action at this time.
0 commit comments