diff options
| author | Michael Goulet <michael@errs.io> | 2022-11-10 04:21:11 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-11-10 05:41:09 +0000 |
| commit | f902b495ba8379b31bf06089ec025b805b587bd7 (patch) | |
| tree | 44d18fcaaf19dcd6647c5c61dc9723a9e0014d52 /compiler/rustc_errors/src/lib.rs | |
| parent | e75aab045fc476f176a58c408f6b06f0e275c6e1 (diff) | |
| download | rust-f902b495ba8379b31bf06089ec025b805b587bd7.tar.gz rust-f902b495ba8379b31bf06089ec025b805b587bd7.zip | |
Don't print full paths in overlap errors
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index a8fd1a17a51..170d4341ae7 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1254,6 +1254,10 @@ impl HandlerInner { } if diagnostic.has_future_breakage() { + // Future breakages aren't emitted if they're Level::Allowed, + // but they still need to be constructed and stashed below, + // so they'll trigger the good-path bug check. + self.suppressed_expected_diag = true; self.future_breakage_diagnostics.push(diagnostic.clone()); } |
