Use span_bug in case of unexpected rib kind
Extremely minor QOL change to improve the ICE output in case this default match case is encountered (an unexpected rib kind).
This commit is contained in:
parent
848090dcd1
commit
e0c9be539a
1 changed files with 1 additions and 1 deletions
|
@ -2111,7 +2111,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
|
|||
let res = match kind {
|
||||
ItemRibKind(..) | AssocItemRibKind => Res::Def(def_kind, def_id.to_def_id()),
|
||||
NormalRibKind => Res::Err,
|
||||
_ => bug!("Unexpected rib kind {:?}", kind),
|
||||
_ => span_bug!(param.ident.span, "Unexpected rib kind {:?}", kind),
|
||||
};
|
||||
self.r.record_partial_res(param.id, PartialRes::new(res));
|
||||
rib.bindings.insert(ident, res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue