We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd49b9 commit 76e3feeCopy full SHA for 76e3fee
crates/hir/src/attrs.rs
@@ -147,7 +147,7 @@ fn resolve_doc_path(
147
AttrDefId::MacroDefId(_) => return None,
148
};
149
let path = ast::Path::parse(link).ok()?;
150
- let modpath = ModPath::from_src(db.upcast(), path, &Hygiene::new_unhygienic()).unwrap();
+ let modpath = ModPath::from_src(db.upcast(), path, &Hygiene::new_unhygienic())?;
151
let resolved = resolver.resolve_module_path_in_items(db.upcast(), &modpath);
152
let resolved = if resolved == PerNs::none() {
153
resolver.resolve_module_path_in_trait_assoc_items(db.upcast(), &modpath)?
0 commit comments