Remove an unnecessary span_delayed_bug
in Resolver::valid_res_from_ribs
.
`Resolver::report_error` always emits (this commit makes that clearer), so the `span_delayed_bug` is unnecessary.
This commit is contained in:
parent
c743e4a855
commit
d0267cb26b
2 changed files with 8 additions and 5 deletions
|
@ -554,8 +554,12 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
///
|
||||
/// This takes the error provided, combines it with the span and any additional spans inside the
|
||||
/// error and emits it.
|
||||
pub(crate) fn report_error(&mut self, span: Span, resolution_error: ResolutionError<'a>) {
|
||||
self.into_struct_error(span, resolution_error).emit();
|
||||
pub(crate) fn report_error(
|
||||
&mut self,
|
||||
span: Span,
|
||||
resolution_error: ResolutionError<'a>,
|
||||
) -> ErrorGuaranteed {
|
||||
self.into_struct_error(span, resolution_error).emit()
|
||||
}
|
||||
|
||||
pub(crate) fn into_struct_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue