Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,7 @@ declare_lint! {
/// ### Example
///
/// ```rust
/// #[cfg(FALSE)]
/// #[cfg(feature = "nightly")]
/// macro foo() {}
/// ```
///
Expand All @@ -3182,22 +3182,22 @@ declare_lint! {
/// ( $($tokens:tt)* ) => { $($tokens)* }
/// }
///
/// #[cfg(FALSE)]
/// #[cfg(feature = "nightly")]
/// identity! {
/// macro foo() {}
/// }
/// ```
///
/// This is a [future-incompatible] lint to transition this
/// to a hard error in the future. See [issue #65860] for more details.
/// to a hard error in the future. See [issue #154045] for more details.
///
/// [issue #65860]: https://github.com/rust-lang/rust/issues/65860
/// [issue #154045]: https://github.com/rust-lang/rust/issues/154045
/// [future-incompatible]: ../index.md#future-incompatible-lints
pub UNSTABLE_SYNTAX_PRE_EXPANSION,
Warn,
"unstable syntax can change at any point in the future, causing a hard error!",
@future_incompatible = FutureIncompatibleInfo {
reason: fcw!(FutureReleaseError #65860),
reason: fcw!(FutureReleaseError #154045),
};
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/cfg/cfg-false-feature.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | let box _ = Box::new(0);
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: trait aliases are experimental
--> $DIR/cfg-false-feature.rs:12:1
Expand All @@ -20,7 +20,7 @@ LL | trait A = Clone;
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | auto trait Foo {}
= help: add `#![feature(auto_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 1 warning emitted

4 changes: 2 additions & 2 deletions tests/ui/feature-gates/soft-feature-gate-box_patterns.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | let box x;
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: box pattern syntax is experimental
--> $DIR/soft-feature-gate-box_patterns.rs:14:18
Expand All @@ -20,7 +20,7 @@ LL | let Packet { box x };
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

4 changes: 2 additions & 2 deletions tests/ui/feature-gates/soft-feature-gate-decl_macro.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | macro make() {}
= help: add `#![feature(decl_macro)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: `macro` is experimental
--> $DIR/soft-feature-gate-decl_macro.rs:13:1
Expand All @@ -20,7 +20,7 @@ LL | macro create { () => {} }
= help: add `#![feature(decl_macro)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | impl !Trait for () {}
= help: add `#![feature(negative_impls)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 1 warning emitted

4 changes: 2 additions & 2 deletions tests/ui/feature-gates/soft-feature-gate-trait_alias.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | trait Trait =;
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: trait aliases are experimental
--> $DIR/soft-feature-gate-trait_alias.rs:13:1
Expand All @@ -20,7 +20,7 @@ LL | trait Trait<T> = Bound where T: Bound;
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

2 changes: 1 addition & 1 deletion tests/ui/feature-gates/soft-feature-gate-try_blocks.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | try {}
= help: add `#![feature(try_blocks)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 1 warning emitted

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | macro b() {}
= help: add `#![feature(decl_macro)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: `macro` is experimental
--> $DIR/soft-syntax-gates-without-errors.rs:21:5
Expand All @@ -20,7 +20,7 @@ LL | macro e() {}
= help: add `#![feature(decl_macro)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

2 changes: 1 addition & 1 deletion tests/ui/or-patterns/or-patterns-syntactic-pass.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | let (box 0 | 1); // Unstable; we *can* change the precedence if we want
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 1 warning emitted

4 changes: 2 additions & 2 deletions tests/ui/pattern/rest-pat-syntactic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | let box ..;
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: box pattern syntax is experimental
--> $DIR/rest-pat-syntactic.rs:62:17
Expand All @@ -20,7 +20,7 @@ LL | box ..,
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 2 warnings emitted

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | default type Ty = ();
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:24:5
Expand All @@ -20,7 +20,7 @@ LL | default const CT: () = ();
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:40:1
Expand All @@ -32,7 +32,7 @@ LL | default impl Trait for () {}
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:27:5
Expand All @@ -44,7 +44,7 @@ LL | default fn fn_();
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:35:1
Expand All @@ -56,7 +56,7 @@ LL | default fn fn_() {}
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 5 warnings emitted

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LL | default type Ty = ();
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:24:5
Expand All @@ -20,7 +20,7 @@ LL | default const CT: () = ();
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: specialization is experimental
--> $DIR/soft-feature-gate-specialization.rs:40:1
Expand All @@ -32,7 +32,7 @@ LL | default impl Trait for () {}
= help: add `#![feature(specialization)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= warning: unstable syntax can change at any point in the future, causing a hard error!
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
= note: for more information, see issue #154045 <https://github.com/rust-lang/rust/issues/154045>

warning: 3 warnings emitted

Loading