Note that from_res
panics on errors
This commit is contained in:
parent
bb351defba
commit
d3c581751b
@ -1032,6 +1032,7 @@ impl Disambiguator {
|
||||
}
|
||||
}
|
||||
|
||||
/// WARNING: panics on `Res::Err`
|
||||
fn from_res(res: Res) -> Self {
|
||||
match res {
|
||||
Res::Def(kind, _) => Disambiguator::Kind(kind),
|
||||
|
Loading…
Reference in New Issue
Block a user