File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ attribute_parsers!(
147147 DocParser ,
148148 MacroUseParser ,
149149 NakedParser ,
150+ RustcCguTestAttributeParser ,
150151 StabilityParser ,
151152 UsedParser ,
152- RustcCguTestAttributeParser ,
153153 // tidy-alphabetical-end
154154
155155 // tidy-alphabetical-start
Original file line number Diff line number Diff line change @@ -1107,6 +1107,12 @@ pub enum AttributeKind {
11071107 /// Represents `#[rustc_capture_analysis]`
11081108 RustcCaptureAnalysis ,
11091109
1110+ /// Represents `#[rustc_expected_cgu_reuse]`, `#[rustc_partition_codegened]` and `#[rustc_partition_reused]`.
1111+ RustcCguTestAttr ( ThinVec < ( Span , CguFields ) > ) ,
1112+
1113+ /// Represents `#[rustc_expected_cgu_reuse]`, `#[rustc_partition_codegened]` and `#[rustc_partition_reused]`.
1114+ RustcCguTestAttr ( ThinVec < ( Span , CguFields ) > ) ,
1115+
11101116 /// Represents `#[rustc_clean]`
11111117 RustcClean ( ThinVec < RustcCleanAttribute > ) ,
11121118
@@ -1171,9 +1177,6 @@ pub enum AttributeKind {
11711177 /// Represents `#[rustc_effective_visibility]`.
11721178 RustcEffectiveVisibility ,
11731179
1174- /// Represents `#[rustc_expected_cgu_reuse]`, `#[rustc_partition_codegened]` and `#[rustc_partition_reused]`.
1175- RustcCguTestAttr ( ThinVec < ( Span , CguFields ) > ) ,
1176-
11771180 /// Represents `#[rustc_has_incoherent_inherent_impls]`
11781181 RustcHasIncoherentInherentImpls ,
11791182
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ impl AttributeKind {
9999 RustcBodyStability { .. } => No ,
100100 RustcBuiltinMacro { .. } => Yes ,
101101 RustcCaptureAnalysis => No ,
102+ RustcCguTestAttr { .. } => No ,
102103 RustcClean { .. } => No ,
103104 RustcCoherenceIsCore ( ..) => No ,
104105 RustcCoinductive ( ..) => No ,
@@ -146,7 +147,6 @@ impl AttributeKind {
146147 RustcObjectLifetimeDefault => No ,
147148 RustcOffloadKernel => Yes ,
148149 RustcParenSugar ( ..) => No ,
149- RustcCguTestAttr { .. } => No ,
150150 RustcPassByValue ( ..) => Yes ,
151151 RustcPassIndirectlyInNonRusticAbis ( ..) => No ,
152152 RustcPreserveUbChecks => No ,
Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
295295 | AttributeKind :: RustcBodyStability { .. }
296296 | AttributeKind :: RustcBuiltinMacro { .. }
297297 | AttributeKind :: RustcCaptureAnalysis
298+ | AttributeKind :: RustcCguTestAttr ( ..)
298299 | AttributeKind :: RustcClean ( ..)
299300 | AttributeKind :: RustcCoherenceIsCore ( ..)
300301 | AttributeKind :: RustcCoinductive ( ..)
@@ -338,7 +339,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
338339 | AttributeKind :: RustcObjcSelector { .. }
339340 | AttributeKind :: RustcOffloadKernel
340341 | AttributeKind :: RustcParenSugar ( ..)
341- | AttributeKind :: RustcCguTestAttr ( ..)
342342 | AttributeKind :: RustcPassByValue ( ..)
343343 | AttributeKind :: RustcPassIndirectlyInNonRusticAbis ( ..)
344344 | AttributeKind :: RustcPreserveUbChecks
You can’t perform that action at this time.
0 commit comments