add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed'
This commit is contained in:
parent
57d3c58ed6
commit
1f21b96dce
15 changed files with 68 additions and 47 deletions
|
@ -482,9 +482,9 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
|
|||
/// In the meantime, though, callsites are required to deal with the "bug"
|
||||
/// locally in whichever way makes the most sense.
|
||||
#[track_caller]
|
||||
pub fn delay_as_bug(&mut self) {
|
||||
pub fn delay_as_bug(&mut self) -> G {
|
||||
self.downgrade_to_delayed_bug();
|
||||
self.emit();
|
||||
self.emit()
|
||||
}
|
||||
|
||||
forward!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue