Skip to content

Commit 7960c88

Browse files
committed
Auto merge of #120924 - xFrednet:rfc-2383-stabilization-party, r=Urgau,blyxyas
Let's `#[expect]` some lints: Stabilize `lint_reasons` (RFC 2383) Let's give this another try! The [previous stabilization attempt](rust-lang/rust#99063) was stalled by some unresolved questions. These have been discussed in a [lang team](rust-lang/lang-team#191) meeting. The last open question, regarding the semantics of the `#[expect]` attribute was decided on in rust-lang/rust#115980 I've just updated the [stabilization report](rust-lang/rust#54503 (comment)) with the discussed questions and decisions. Luckily, the decision is inline with the current implementation. This hopefully covers everything. Let's hope that the CI will be green like the spring. fixes #115980 fixes #54503 --- r? `@wesleywiser` Tacking Issue: rust-lang/rust#54503 Stabilization Report: rust-lang/rust#54503 (comment) Documentation Update: rust-lang/reference#1237 <!-- For Clippy: changelog: [`allow_attributes`]: Is now available on stable, since the `lint_reasons` feature was stabilized changelog: [`allow_attributes_without_reason`]: Is now available on stable, since the `lint_reasons` feature was stabilized --> --- Roses are red, Violets are blue, Let's expect lints, With reason clues
2 parents 7534703 + 770b139 commit 7960c88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/hir-expand/src/inert_attr_macro.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
142142
allow, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#),
143143
DuplicatesOk, @only_local: true,
144144
),
145-
gated!(
146-
expect, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#), DuplicatesOk,
147-
lint_reasons, experimental!(expect)
145+
ungated!(
146+
expect, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#),
147+
DuplicatesOk, @only_local: true,
148148
),
149149
ungated!(
150150
forbid, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#),

0 commit comments

Comments
 (0)