Skip to content

Commit fcff32b

Browse files
committed
Auto merge of #155225 - JonathanBrouwer:rollup-g2T9Er6, r=<try>
Rollup of 13 pull requests try-job: i686-msvc-2
2 parents 14196db + 078379b commit fcff32b

File tree

154 files changed

+2268
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+2268
-519
lines changed

RELEASES.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,134 @@
1+
Version 1.95 (2026-04-16)
2+
==========================
3+
4+
<a id="1.95-Language"></a>
5+
6+
Language
7+
--------
8+
- [Stabilize `if let` guards on match arms](https://github.com/rust-lang/rust/pull/141295)
9+
- [`irrefutable_let_patterns` lint no longer lints on let chains](https://github.com/rust-lang/rust/pull/146832)
10+
- [Support importing path-segment keywords with renaming](https://github.com/rust-lang/rust/pull/146972)
11+
- [Stabilize inline assembly for PowerPC and PowerPC64](https://github.com/rust-lang/rust/pull/147996)
12+
- [const-eval: be more consistent in the behavior of padding during typed copies](https://github.com/rust-lang/rust/pull/148967)
13+
- [Const blocks are no longer evaluated to determine if expressions involving fallible operations can implicitly be constant-promoted.](https://github.com/rust-lang/rust/pull/150557). Expressions whose ability to implicitly be promoted would depend on the result of a const block are no longer implicitly promoted.
14+
- [Make operational semantics of pattern matching independent of crate and module](https://github.com/rust-lang/rust/pull/150681)
15+
16+
17+
<a id="1.95-Compiler"></a>
18+
19+
Compiler
20+
--------
21+
- [Stabilize `--remap-path-scope` for controlling the scoping of how paths get remapped in the resulting binary](https://github.com/rust-lang/rust/pull/147611)
22+
23+
24+
<a id="1.95-Platform-Support"></a>
25+
26+
Platform Support
27+
----------------
28+
- [Promote `powerpc64-unknown-linux-musl` to Tier 2 with host tools](https://github.com/rust-lang/rust/pull/149962)
29+
- [Promote `aarch64-apple-tvos` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
30+
- [Promote `aarch64-apple-tvos-sim` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
31+
- [Promote `aarch64-apple-watchos` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
32+
- [Promote `aarch64-apple-watchos-sim` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
33+
- [Promote `aarch64-apple-visionos` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
34+
- [Promote `aarch64-apple-visionos-sim` to Tier 2](https://github.com/rust-lang/rust/pull/152021)
35+
36+
37+
Refer to Rust's [platform support page][platform-support-doc]
38+
for more information on Rust's tiered platform support.
39+
40+
[platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html
41+
42+
<a id="1.95-Libraries"></a>
43+
44+
Libraries
45+
---------
46+
- [`thread::scope`: document how join interacts with TLS destructors](https://github.com/rust-lang/rust/pull/149482)
47+
- [Speed up `str::contains` on aarch64 targets with `neon` target feature enabled by default](https://github.com/rust-lang/rust/pull/152176)
48+
49+
50+
<a id="1.95-Stabilized-APIs"></a>
51+
52+
Stabilized APIs
53+
---------------
54+
55+
- [`MaybeUninit<[T; N]>: From<[MaybeUninit<T>; N]>`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-From%3CMaybeUninit%3C%5BT;+N%5D%3E%3E-for-%5BMaybeUninit%3CT%3E;+N%5D)
56+
- [`MaybeUninit<[T; N]>: AsRef<[MaybeUninit<T>; N]>`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsRef%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E)
57+
- [`MaybeUninit<[T; N]>: AsRef<[MaybeUninit<T>]>`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsRef%3C%5BMaybeUninit%3CT%3E%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E)
58+
- [`MaybeUninit<[T; N]>: AsMut<[MaybeUninit<T>; N]>`](https://doc.rust-lang.org/beta/std/mem/union.MaybeUninit.html#impl-AsMut%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E)
59+
- [`MaybeUninit<[T; N]>: AsMut<[MaybeUninit<T>]>`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsMut%3C%5BMaybeUninit%3CT%3E%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E)
60+
- [`[MaybeUninit<T>; N]: From<MaybeUninit<[T; N]>>`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-From%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E)
61+
- [`Cell<[T; N]>: AsRef<[Cell<T>; N]>`](https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E;+N%5D%3E-for-Cell%3C%5BT;+N%5D%3E)
62+
- [`Cell<[T; N]>: AsRef<[Cell<T>]>`](https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E%5D%3E-for-Cell%3C%5BT;+N%5D%3E)
63+
- [`Cell<[T]>: AsRef<[Cell<T>]>`](https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E%5D%3E-for-Cell%3C%5BT%5D%3E)
64+
- [`bool: TryFrom<{integer}>`](https://doc.rust-lang.org/stable/std/primitive.bool.html#impl-TryFrom%3Cu128%3E-for-bool)
65+
- [`AtomicPtr::update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.update)
66+
- [`AtomicPtr::try_update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.try_update)
67+
- [`AtomicBool::update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicBool.html#method.update)
68+
- [`AtomicBool::try_update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicBool.html#method.try_update)
69+
- [`AtomicIn::update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicIsize.html#method.update)
70+
- [`AtomicIn::try_update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicIsize.html#method.try_update)
71+
- [`AtomicUn::update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicUsize.html#method.update)
72+
- [`AtomicUn::try_update`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicUsize.html#method.try_update)
73+
- [`cfg_select!`](https://doc.rust-lang.org/stable/std/macro.cfg_select.html)
74+
- [`mod core::range`](https://doc.rust-lang.org/stable/core/range/index.html)
75+
- [`core::range::RangeInclusive`](https://doc.rust-lang.org/stable/core/range/struct.RangeInclusive.html)
76+
- [`core::range::RangeInclusiveIter`](https://doc.rust-lang.org/stable/core/range/struct.RangeInclusiveIter.html)
77+
- [`core::hint::cold_path`](https://doc.rust-lang.org/stable/core/hint/fn.cold_path.html)
78+
- [`<*const T>::as_ref_unchecked`](https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_ref_unchecked)
79+
- [`<*mut T>::as_ref_unchecked`](https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_ref_unchecked-1)
80+
- [`<*mut T>::as_mut_unchecked`](https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_mut_unchecked)
81+
82+
83+
These previously stable APIs are now stable in const contexts:
84+
85+
- [`fmt::from_fn`](https://doc.rust-lang.org/stable/std/fmt/fn.from_fn.html)
86+
- [`ControlFlow::is_break`](https://doc.rust-lang.org/stable/core/ops/enum.ControlFlow.html#method.is_break)
87+
- [`ControlFlow::is_continue`](https://doc.rust-lang.org/stable/core/ops/enum.ControlFlow.html#method.is_continue)
88+
89+
90+
<a id="1.95-Cargo"></a>
91+
92+
Cargo
93+
-----
94+
- [docs(report): enhance man pages for `cargo report *`](https://github.com/rust-lang/cargo/pull/16430/)<a id="1.95-Rustdoc"></a>
95+
96+
Rustdoc
97+
-----
98+
- [In search results, rank unstable items lower](https://github.com/rust-lang/rust/pull/149460)
99+
- [Add new "hide deprecated items" setting in rustdoc](https://github.com/rust-lang/rust/pull/151091)
100+
<a id="1.95-Compatibility-Notes"></a>
101+
102+
Compatibility Notes
103+
-------------------
104+
- [Array coercions may now result in less inference constraints than before](https://github.com/rust-lang/rust/pull/140283)
105+
- Importing `$crate` without renaming, i.e. `use $crate::{self};`, is now no longer permitted due to stricter error checking for `self` imports.
106+
- [const-eval: be more consistent in the behavior of padding during typed copies.](https://github.com/rust-lang/rust/pull/148967)
107+
In very rare cases, this may cause compilation errors due to bytes from parts of a pointer ending up in the padding bytes of a `const` or `static`.
108+
- [A future-incompatibility warning lint `ambiguous_glob_imported_traits` is now reported when using an ambiguously glob imported trait](https://github.com/rust-lang/rust/pull/149058)
109+
- [Check lifetime bounds of types mentioning only type parameters](https://github.com/rust-lang/rust/pull/149389)
110+
- [Report more visibility-related ambiguous import errors](https://github.com/rust-lang/rust/pull/149596)
111+
- [Deprecate `Eq::assert_receiver_is_total_eq` and emit future compatibility warnings on manual impls](https://github.com/rust-lang/rust/pull/149978)
112+
- [powerpc64: Use the ELF ABI version set in target spec instead of guessing](https://github.com/rust-lang/rust/pull/150468) (fixes the ELF ABI used by the OpenBSD target)
113+
- Matching on a `#[non_exhaustive]` enum [now reads the discriminant, even if the enum has only one variant](https://github.com/rust-lang/rust/pull/150681). This can cause closures to capture values that they previously wouldn't.
114+
- `mut ref` and `mut ref mut` patterns, part of the unstable [Match Ergonomics 2024 RFC](https://github.com/rust-lang/rust/issues/123076), were accidentally allowed on stable within struct pattern field shorthand. These patterns are now correctly feature-gated as unstable in this position.
115+
- [Add future-compatibility warning for derive helper attributes which conflict with built-in attributes](https://github.com/rust-lang/rust/pull/151152)
116+
- [JSON target specs](https://doc.rust-lang.org/rustc/targets/custom.html) have been destabilized and now require `-Z unstable-options` to use. Previously, they could not be used without the standard library, which has no stable build mechanism. In preparation for the `build-std` project adding that support, JSON target specs are being proactively gated to ensure they remain unstable even if `build-std` is stabilized. Cargo now includes the `-Z json-target-spec` CLI flag to automatically pass `-Z unstable-options` to the compiler when needed. See [#150151](https://github.com/rust-lang/rust/pull/150151), [#151534](https://github.com/rust-lang/rust/pull/150151), and [rust-lang/cargo#16557](https://github.com/rust-lang/cargo/pull/16557).
117+
- [The arguments of `#[feature]` attributes on invalid targets are now checked](https://github.com/rust-lang/rust/issues/153764)
118+
119+
120+
<a id="1.95-Internal-Changes"></a>
121+
122+
Internal Changes
123+
----------------
124+
125+
These changes do not affect any public interfaces of Rust, but they represent
126+
significant improvements to the performance or internals of rustc and related
127+
tools.
128+
129+
- [Update to LLVM 22](https://github.com/rust-lang/rust/pull/150722)
130+
131+
1132
Version 1.94.1 (2026-03-26)
2133
===========================
3134

compiler/rustc_ast/src/ast.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,12 +3901,17 @@ pub struct Delegation {
39013901
pub from_glob: bool,
39023902
}
39033903

3904+
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
3905+
pub enum DelegationSuffixes {
3906+
List(ThinVec<(Ident, Option<Ident>)>),
3907+
Glob(Span),
3908+
}
3909+
39043910
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
39053911
pub struct DelegationMac {
39063912
pub qself: Option<Box<QSelf>>,
39073913
pub prefix: Path,
3908-
// Some for list delegation, and None for glob delegation.
3909-
pub suffixes: Option<ThinVec<(Ident, Option<Ident>)>>,
3914+
pub suffixes: DelegationSuffixes,
39103915
pub body: Option<Box<Block>>,
39113916
}
39123917

@@ -3918,6 +3923,13 @@ pub struct StaticItem {
39183923
pub mutability: Mutability,
39193924
pub expr: Option<Box<Expr>>,
39203925
pub define_opaque: Option<ThinVec<(NodeId, Path)>>,
3926+
3927+
/// This static is an implementation of an externally implementable item (EII).
3928+
/// This means, there was an EII declared somewhere and this static is the
3929+
/// implementation that should be used for the declaration.
3930+
///
3931+
/// For statics, there may be at most one `EiiImpl`, but this is a `ThinVec` to make usages of this field nicer.
3932+
pub eii_impls: ThinVec<EiiImpl>,
39213933
}
39223934

39233935
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]

compiler/rustc_ast/src/visit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ macro_rules! common_visitor_and_walkers {
430430
Defaultness,
431431
Delegation,
432432
DelegationMac,
433+
DelegationSuffixes,
433434
DelimArgs,
434435
DelimSpan,
435436
EnumDef,

compiler/rustc_ast_lowering/src/item.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,14 @@ impl<'hir, R: ResolverAstLoweringExt<'hir>> LoweringContext<'_, 'hir, R> {
213213
i: &ItemKind,
214214
) -> Vec<hir::Attribute> {
215215
match i {
216-
ItemKind::Fn(box Fn { eii_impls, .. }) if eii_impls.is_empty() => Vec::new(),
217-
ItemKind::Fn(box Fn { eii_impls, .. }) => {
216+
ItemKind::Fn(box Fn { eii_impls, .. })
217+
| ItemKind::Static(box StaticItem { eii_impls, .. })
218+
if eii_impls.is_empty() =>
219+
{
220+
Vec::new()
221+
}
222+
ItemKind::Fn(box Fn { eii_impls, .. })
223+
| ItemKind::Static(box StaticItem { eii_impls, .. }) => {
218224
vec![hir::Attribute::Parsed(AttributeKind::EiiImpls(
219225
eii_impls.iter().map(|i| self.lower_eii_impl(i)).collect(),
220226
))]
@@ -226,7 +232,6 @@ impl<'hir, R: ResolverAstLoweringExt<'hir>> LoweringContext<'_, 'hir, R> {
226232

227233
ItemKind::ExternCrate(..)
228234
| ItemKind::Use(..)
229-
| ItemKind::Static(..)
230235
| ItemKind::Const(..)
231236
| ItemKind::ConstBlock(..)
232237
| ItemKind::Mod(..)
@@ -302,6 +307,7 @@ impl<'hir, R: ResolverAstLoweringExt<'hir>> LoweringContext<'_, 'hir, R> {
302307
mutability: m,
303308
expr: e,
304309
define_opaque,
310+
eii_impls: _,
305311
}) => {
306312
let ident = self.lower_ident(*ident);
307313
let ty = self
@@ -826,6 +832,7 @@ impl<'hir, R: ResolverAstLoweringExt<'hir>> LoweringContext<'_, 'hir, R> {
826832
expr: _,
827833
safety,
828834
define_opaque,
835+
eii_impls: _,
829836
}) => {
830837
let ty = self
831838
.lower_ty_alloc(ty, ImplTraitContext::Disallowed(ImplTraitPosition::StaticTy));

compiler/rustc_ast_pretty/src/pprust/state/item.rs

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ impl<'a> State<'a> {
4343
expr,
4444
safety,
4545
define_opaque,
46+
eii_impls,
4647
}) => self.print_item_const(
4748
*ident,
4849
Some(*mutability),
@@ -53,6 +54,7 @@ impl<'a> State<'a> {
5354
*safety,
5455
ast::Defaultness::Implicit,
5556
define_opaque.as_deref(),
57+
eii_impls,
5658
),
5759
ast::ForeignItemKind::TyAlias(box ast::TyAlias {
5860
defaultness,
@@ -93,8 +95,12 @@ impl<'a> State<'a> {
9395
safety: ast::Safety,
9496
defaultness: ast::Defaultness,
9597
define_opaque: Option<&[(ast::NodeId, ast::Path)]>,
98+
eii_impls: &[EiiImpl],
9699
) {
97100
self.print_define_opaques(define_opaque);
101+
for eii_impl in eii_impls {
102+
self.print_eii_impl(eii_impl);
103+
}
98104
let (cb, ib) = self.head("");
99105
self.print_visibility(vis);
100106
self.print_safety(safety);
@@ -191,6 +197,7 @@ impl<'a> State<'a> {
191197
mutability: mutbl,
192198
expr: body,
193199
define_opaque,
200+
eii_impls,
194201
}) => {
195202
self.print_safety(*safety);
196203
self.print_item_const(
@@ -203,6 +210,7 @@ impl<'a> State<'a> {
203210
ast::Safety::Default,
204211
ast::Defaultness::Implicit,
205212
define_opaque.as_deref(),
213+
eii_impls,
206214
);
207215
}
208216
ast::ItemKind::ConstBlock(ast::ConstBlockItem { id: _, span: _, block }) => {
@@ -234,6 +242,7 @@ impl<'a> State<'a> {
234242
ast::Safety::Default,
235243
*defaultness,
236244
define_opaque.as_deref(),
245+
&[],
237246
);
238247
}
239248
ast::ItemKind::Fn(func) => {
@@ -435,7 +444,10 @@ impl<'a> State<'a> {
435444
&item.vis,
436445
&deleg.qself,
437446
&deleg.prefix,
438-
deleg.suffixes.as_ref().map_or(DelegationKind::Glob, |s| DelegationKind::List(s)),
447+
match &deleg.suffixes {
448+
ast::DelegationSuffixes::List(s) => DelegationKind::List(s),
449+
ast::DelegationSuffixes::Glob(_) => DelegationKind::Glob,
450+
},
439451
&deleg.body,
440452
),
441453
}
@@ -602,6 +614,7 @@ impl<'a> State<'a> {
602614
ast::Safety::Default,
603615
*defaultness,
604616
define_opaque.as_deref(),
617+
&[],
605618
);
606619
}
607620
ast::AssocItemKind::Type(box ast::TyAlias {
@@ -641,7 +654,10 @@ impl<'a> State<'a> {
641654
vis,
642655
&deleg.qself,
643656
&deleg.prefix,
644-
deleg.suffixes.as_ref().map_or(DelegationKind::Glob, |s| DelegationKind::List(s)),
657+
match &deleg.suffixes {
658+
ast::DelegationSuffixes::List(s) => DelegationKind::List(s),
659+
ast::DelegationSuffixes::Glob(_) => DelegationKind::Glob,
660+
},
645661
&deleg.body,
646662
),
647663
}
@@ -703,18 +719,8 @@ impl<'a> State<'a> {
703719

704720
self.print_define_opaques(define_opaque.as_deref());
705721

706-
for EiiImpl { eii_macro_path, impl_safety, .. } in eii_impls {
707-
self.word("#[");
708-
if let Safety::Unsafe(..) = impl_safety {
709-
self.word("unsafe");
710-
self.popen();
711-
}
712-
self.print_path(eii_macro_path, false, 0);
713-
if let Safety::Unsafe(..) = impl_safety {
714-
self.pclose();
715-
}
716-
self.word("]");
717-
self.hardbreak();
722+
for eii_impl in eii_impls {
723+
self.print_eii_impl(eii_impl);
718724
}
719725

720726
let body_cb_ib = body.as_ref().map(|body| (body, self.head("")));
@@ -741,6 +747,20 @@ impl<'a> State<'a> {
741747
}
742748
}
743749

750+
fn print_eii_impl(&mut self, eii: &ast::EiiImpl) {
751+
self.word("#[");
752+
if let Safety::Unsafe(..) = eii.impl_safety {
753+
self.word("unsafe");
754+
self.popen();
755+
}
756+
self.print_path(&eii.eii_macro_path, false, 0);
757+
if let Safety::Unsafe(..) = eii.impl_safety {
758+
self.pclose();
759+
}
760+
self.word("]");
761+
self.hardbreak();
762+
}
763+
744764
fn print_define_opaques(&mut self, define_opaque: Option<&[(ast::NodeId, ast::Path)]>) {
745765
if let Some(define_opaque) = define_opaque {
746766
self.word("#[define_opaque(");

compiler/rustc_attr_parsing/src/attributes/codegen_attrs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ pub(crate) struct RustcEiiForeignItemParser;
709709
impl<S: Stage> NoArgsAttributeParser<S> for RustcEiiForeignItemParser {
710710
const PATH: &[Symbol] = &[sym::rustc_eii_foreign_item];
711711
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
712-
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::ForeignFn)]);
712+
const ALLOWED_TARGETS: AllowedTargets =
713+
AllowedTargets::AllowList(&[Allow(Target::ForeignFn), Allow(Target::ForeignStatic)]);
713714
const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::RustcEiiForeignItem;
714715
}
715716

compiler/rustc_attr_parsing/src/attributes/diagnostic/on_const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ impl<S: Stage> AttributeParser<S> for OnConstParser {
1717
template!(List: &[r#"/*opt*/ message = "...", /*opt*/ label = "...", /*opt*/ note = "...""#]),
1818
|this, cx, args| {
1919
if !cx.features().diagnostic_on_const() {
20+
// `UnknownDiagnosticAttribute` is emitted in rustc_resolve/macros.rs
2021
return;
2122
}
2223

compiler/rustc_attr_parsing/src/attributes/diagnostic/on_move.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ impl OnMoveParser {
2424
mode: Mode,
2525
) {
2626
if !cx.features().diagnostic_on_move() {
27+
// `UnknownDiagnosticAttribute` is emitted in rustc_resolve/macros.rs
2728
return;
2829
}
2930

compiler/rustc_attr_parsing/src/attributes/diagnostic/on_unknown.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ impl OnUnknownParser {
1818
mode: Mode,
1919
) {
2020
if !cx.features().diagnostic_on_unknown() {
21+
// `UnknownDiagnosticAttribute` is emitted in rustc_resolve/macros.rs
2122
return;
2223
}
2324
let span = cx.attr_span;

0 commit comments

Comments
 (0)