diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-03-11 13:30:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-11 13:30:53 +0100 |
| commit | 07f33e22bffbf2c1c4aa09a3cd64df62219a087d (patch) | |
| tree | dc6ae5b0a5dae69a4cdab691178045a4445151c5 | |
| parent | 79fa56a02691b2fc73fda54a775e967d57a869b6 (diff) | |
| parent | b827087a41869d4ad01398eefa7b491e2c68b1e9 (diff) | |
| download | rust-07f33e22bffbf2c1c4aa09a3cd64df62219a087d.tar.gz rust-07f33e22bffbf2c1c4aa09a3cd64df62219a087d.zip | |
Rollup merge of #138300 - RalfJung:unqualified-local-imports, r=jieyouxu
add tracking issue for unqualified_local_imports Tracking issue: https://github.com/rust-lang/rust/issues/138299 r? ``````@jieyouxu``````
| -rw-r--r-- | compiler/rustc_feature/src/unstable.rs | 2 | ||||
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-unqualified-local-imports.stderr | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 7741f6668c3..3c61bfd1c93 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -240,7 +240,7 @@ declare_features! ( /// Added for testing unstable lints; perma-unstable. (internal, test_unstable_lint, "1.60.0", None), /// Helps with formatting for `group_imports = "StdExternalCrate"`. - (unstable, unqualified_local_imports, "1.83.0", None), + (unstable, unqualified_local_imports, "1.83.0", Some(138299)), /// Use for stable + negative coherence and strict coherence depending on trait's /// rustc_strict_coherence value. (unstable, with_negative_coherence, "1.60.0", None), diff --git a/tests/ui/feature-gates/feature-gate-unqualified-local-imports.stderr b/tests/ui/feature-gates/feature-gate-unqualified-local-imports.stderr index bc8edd847cc..30e36acb871 100644 --- a/tests/ui/feature-gates/feature-gate-unqualified-local-imports.stderr +++ b/tests/ui/feature-gates/feature-gate-unqualified-local-imports.stderr @@ -5,6 +5,7 @@ LL | #![allow(unqualified_local_imports)] | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: the `unqualified_local_imports` lint is unstable + = note: see issue #138299 <https://github.com/rust-lang/rust/issues/138299> for more information = help: add `#![feature(unqualified_local_imports)]` to the crate attributes to enable = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: `#[warn(unknown_lints)]` on by default |
