add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed'
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user