@@ -16,7 +16,7 @@ use rustc_macros::{Decodable, Encodable, PrintAttribute, StableHash};
1616use rustc_span:: def_id:: DefId ;
1717use rustc_span:: hygiene:: Transparency ;
1818use rustc_span:: { ErrorGuaranteed , Ident , Span , Symbol } ;
19- use rustc_structures:: { CrateType , Limit , NativeLibKind , SanitizerSet } ;
19+ use rustc_structures:: { CollapseMacroDebuginfo , CrateType , Limit , NativeLibKind , SanitizerSet } ;
2020use thin_vec:: ThinVec ;
2121
2222pub use crate :: canonical_symbols:: { CanonicalSymbol , CanonicalSymbols } ;
@@ -601,26 +601,6 @@ impl<E: rustc_span::SpanEncoder> rustc_serialize::Encodable<E> for DocAttribute
601601 }
602602}
603603
604- /// How to perform collapse macros debug info
605- /// if-ext - if macro from different crate (related to callsite code)
606- /// | cmd \ attr | no | (unspecified) | external | yes |
607- /// | no | no | no | no | no |
608- /// | (unspecified) | no | no | if-ext | yes |
609- /// | external | no | if-ext | if-ext | yes |
610- /// | yes | yes | yes | yes | yes |
611- #[ derive( Copy , Clone , Debug , Hash , PartialEq ) ]
612- #[ derive( StableHash , Encodable , Decodable , PrintAttribute ) ]
613- pub enum CollapseMacroDebuginfo {
614- /// Don't collapse debuginfo for the macro
615- No = 0 ,
616- /// Unspecified value
617- Unspecified = 1 ,
618- /// Collapse debuginfo if the macro comes from a different crate
619- External = 2 ,
620- /// Collapse debuginfo for the macro
621- Yes = 3 ,
622- }
623-
624604#[ derive( Clone , Debug , StableHash , Encodable , Decodable , PrintAttribute ) ]
625605pub enum RustcDumpLayoutKind {
626606 Align ,
0 commit comments