]> git.lizzy.rs Git - rust.git/commitdiff
Return Err() if resolve() is called before modules are set up
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 24 Jan 2018 10:24:45 +0000 (15:54 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 24 Jan 2018 10:24:50 +0000 (15:54 +0530)
src/librustdoc/clean/mod.rs

index ae4ff10243e3bcf73f8d861505040d789711a352..d37015c99642aa816885263a390e43f63e6eebb6 100644 (file)
@@ -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(())
     }
 }