@@ -102,9 +102,6 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[
102
102
// A way to temporarily opt out of opt in copy. This will *never* be accepted.
103
103
( "opt_out_copy" , "1.0.0" , Removed ) ,
104
104
105
- // A way to temporarily opt out of the new orphan rules. This will *never* be accepted.
106
- ( "old_orphan_check" , "1.0.0" , Deprecated ) ,
107
-
108
105
// OIBIT specific features
109
106
( "optin_builtin_traits" , "1.0.0" , Active ) ,
110
107
@@ -277,9 +274,6 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType)] = &[
277
274
( "stable" , Whitelisted ) ,
278
275
( "unstable" , Whitelisted ) ,
279
276
280
- // FIXME: #19470 this shouldn't be needed forever
281
- ( "old_orphan_check" , Whitelisted ) ,
282
-
283
277
( "rustc_paren_sugar" , Gated ( "unboxed_closures" ,
284
278
"unboxed_closures are still evolving" ) ) ,
285
279
( "rustc_reflect_like" , Gated ( "reflect" ,
@@ -327,7 +321,6 @@ pub struct Features {
327
321
pub allow_trace_macros : bool ,
328
322
pub allow_internal_unstable : bool ,
329
323
pub allow_custom_derive : bool ,
330
- pub old_orphan_check : bool ,
331
324
pub simd_ffi : bool ,
332
325
pub unmarked_api : bool ,
333
326
/// spans of #![feature] attrs for stable language features. for error reporting
@@ -349,7 +342,6 @@ impl Features {
349
342
allow_trace_macros : false ,
350
343
allow_internal_unstable : false ,
351
344
allow_custom_derive : false ,
352
- old_orphan_check : false ,
353
345
simd_ffi : false ,
354
346
unmarked_api : false ,
355
347
declared_stable_lang_features : Vec :: new ( ) ,
@@ -573,14 +565,6 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
573
565
} ,
574
566
_ => { }
575
567
}
576
-
577
- if attr:: contains_name ( & i. attrs [ ..] ,
578
- "old_orphan_check" ) {
579
- self . gate_feature (
580
- "old_orphan_check" ,
581
- i. span ,
582
- "the new orphan check rules will eventually be strictly enforced" ) ;
583
- }
584
568
}
585
569
586
570
_ => { }
@@ -737,7 +721,6 @@ fn check_crate_inner<F>(cm: &CodeMap, span_handler: &SpanHandler,
737
721
allow_trace_macros : cx. has_feature ( "trace_macros" ) ,
738
722
allow_internal_unstable : cx. has_feature ( "allow_internal_unstable" ) ,
739
723
allow_custom_derive : cx. has_feature ( "custom_derive" ) ,
740
- old_orphan_check : cx. has_feature ( "old_orphan_check" ) ,
741
724
simd_ffi : cx. has_feature ( "simd_ffi" ) ,
742
725
unmarked_api : cx. has_feature ( "unmarked_api" ) ,
743
726
declared_stable_lang_features : accepted_features,
0 commit comments