Skip to content

Commit

Permalink
Note that from_res panics on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 authored Aug 26, 2020
1 parent bb351de commit d3c5817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d3c5817

Please sign in to comment.