diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-10 03:23:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-10 03:23:53 -0400 |
| commit | 6bcc39c7fe4f3c62226b03be320ec3ab4c063a1f (patch) | |
| tree | 615b85b880a6fa8d508cacd94672527f307e32f7 /compiler/rustc_lint_defs | |
| parent | 643efdaa823b21e0423c6614f74a8b014c67520b (diff) | |
| parent | b286bc3141936114edcc7d124b2488e63ef4eb6f (diff) | |
| download | rust-6bcc39c7fe4f3c62226b03be320ec3ab4c063a1f.tar.gz rust-6bcc39c7fe4f3c62226b03be320ec3ab4c063a1f.zip | |
Rollup merge of #143011 - LorrensP-2158466:warn-ambiguity-into-error, r=petrochenkov
Make lint `ambiguous_glob_imports` deny-by-default and report-in-deps This pr aims to finish the second part of rust-lang/rust#114095. It converts the `ambiguous_glob_imports` lint from a warning to an error. Currently, only the lint definition and the related tests are changed, a crater run should provide us with information on whether we should go for this.
Diffstat (limited to 'compiler/rustc_lint_defs')
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index b37548b281c..15f0bad226d 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -4343,11 +4343,12 @@ declare_lint! { /// /// [future-incompatible]: ../index.md#future-incompatible-lints pub AMBIGUOUS_GLOB_IMPORTS, - Warn, + Deny, "detects certain glob imports that require reporting an ambiguity error", @future_incompatible = FutureIncompatibleInfo { reason: FutureIncompatibilityReason::FutureReleaseError, reference: "issue #114095 <https://github.com/rust-lang/rust/issues/114095>", + report_in_deps: true, }; } |
