Return Err() if resolve() is called before modules are set up
This commit is contained in:
parent
f7ba00c636
commit
6b26b7472b
1 changed files with 1 additions and 3 deletions
|
|
@ -904,9 +904,7 @@ fn resolve(cx: &DocContext, path_str: &str, is_val: bool) -> Result<hir::Path, (
|
|||
&path_str, is_val)
|
||||
})
|
||||
} else {
|
||||
// FIXME(Manishearth) this branch doesn't seem to ever be hit, really
|
||||
cx.resolver.borrow_mut()
|
||||
.resolve_str_path_error(DUMMY_SP, &path_str, is_val)
|
||||
Err(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue