diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-01-23 23:11:37 +0000 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-02-23 03:46:51 +0000 |
| commit | f24ff1815f421ac369729633373b7e809a293232 (patch) | |
| tree | e43472d9d3a42306c0b50958ec5cb9f60ef35a04 /compiler/rustc_resolve | |
| parent | 5bd1ec3283874b97b27da4539b2950fbd01c4b0e (diff) | |
| download | rust-f24ff1815f421ac369729633373b7e809a293232.tar.gz rust-f24ff1815f421ac369729633373b7e809a293232.zip | |
rustc_errors: add `downgrade_to_delayed_bug` to `Diagnostic` itself.
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index f20cf29cc89..159afa1bbbe 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -1066,7 +1066,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { }) .unwrap_or(false) { - err.delay_as_bug(); + err.downgrade_to_delayed_bug(); // We already suggested changing `:` into `::` during parsing. return false; } @@ -1472,7 +1472,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { .borrow_mut() .insert(colon_sp) { - err.delay_as_bug(); + err.downgrade_to_delayed_bug(); } } if let Ok(base_snippet) = base_snippet { |
