File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ pub trait Eq: PartialEq<Self> {
289
289
//
290
290
// This should never be implemented by hand.
291
291
#[ doc( hidden) ]
292
- #[ no_coverage] // rust-lang/rust#84605
292
+ #[ cfg_attr( bootstrap, no_coverage) ] // rust-lang/rust#84605
293
+ #[ cfg_attr( not( bootstrap) , coverage( off) ) ] //
293
294
#[ inline]
294
295
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
295
296
fn assert_receiver_is_total_eq ( & self ) { }
@@ -298,7 +299,9 @@ pub trait Eq: PartialEq<Self> {
298
299
/// Derive macro generating an impl of the trait [`Eq`].
299
300
#[ rustc_builtin_macro]
300
301
#[ stable( feature = "builtin_macro_prelude" , since = "1.38.0" ) ]
301
- #[ allow_internal_unstable( core_intrinsics, derive_eq, structural_match, no_coverage) ]
302
+ #[ allow_internal_unstable( core_intrinsics, derive_eq, structural_match) ]
303
+ #[ cfg_attr( bootstrap, allow_internal_unstable( no_coverage) ) ]
304
+ #[ cfg_attr( not( bootstrap) , allow_internal_unstable( coverage) ) ]
302
305
pub macro Eq ( $item: item) {
303
306
/* compiler built-in */
304
307
}
Original file line number Diff line number Diff line change 110
110
//
111
111
// Library features:
112
112
// tidy-alphabetical-start
113
+ #![ cfg_attr( bootstrap, feature( no_coverage) ) ] // rust-lang/rust#84605
114
+ #![ cfg_attr( not( bootstrap) , feature( coverage) ) ] // rust-lang/rust#84605
113
115
#![ feature( char_indices_offset) ]
114
116
#![ feature( const_align_of_val) ]
115
117
#![ feature( const_align_of_val_raw) ]
235
237
#![ feature( negative_impls) ]
236
238
#![ feature( never_type) ]
237
239
#![ feature( no_core) ]
238
- #![ feature( no_coverage) ] // rust-lang/rust#84605
239
240
#![ feature( platform_intrinsics) ]
240
241
#![ feature( prelude_import) ]
241
242
#![ feature( repr_simd) ]
You can’t perform that action at this time.
0 commit comments