Note that from_res
panics on errors
This commit is contained in:
parent
bb351defba
commit
d3c581751b
1 changed files with 1 additions and 0 deletions
|
@ -1032,6 +1032,7 @@ impl Disambiguator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// WARNING: panics on `Res::Err`
|
||||||
fn from_res(res: Res) -> Self {
|
fn from_res(res: Res) -> Self {
|
||||||
match res {
|
match res {
|
||||||
Res::Def(kind, _) => Disambiguator::Kind(kind),
|
Res::Def(kind, _) => Disambiguator::Kind(kind),
|
||||||
|
|
Loading…
Reference in a new issue