Skip to content

Commit d3c5817

Browse files
authored
Note that from_res panics on errors
1 parent bb351de commit d3c5817

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,7 @@ impl Disambiguator {
10321032
}
10331033
}
10341034

1035+
/// WARNING: panics on `Res::Err`
10351036
fn from_res(res: Res) -> Self {
10361037
match res {
10371038
Res::Def(kind, _) => Disambiguator::Kind(kind),

0 commit comments

Comments
 (0)