Don't print full paths in overlap errors

This commit is contained in:
Michael Goulet 2022-11-10 04:21:11 +00:00
parent e75aab045f
commit f902b495ba
32 changed files with 157 additions and 156 deletions

View file

@ -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());
}