]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/cstore.rs
No need to have tcx::opt_def_path() now that we store all DefPaths
[rust.git] / src / librustc / middle / cstore.rs
index 88fac105bf55a0f7e82d0697ed23e7043d595d64..9f9c6fd87aa856f590c83daa3d5c46a0198be2e9 100644 (file)
@@ -341,7 +341,7 @@ fn retrace_path(&self,
                     path_data: &[DisambiguatedDefPathData])
                     -> Option<DefId>;
     fn def_key(&self, def: DefId) -> DefKey;
-    fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath>;
+    fn def_path(&self, def: DefId) -> hir_map::DefPath;
     fn struct_field_names(&self, def: DefId) -> Vec<ast::Name>;
     fn item_children(&self, did: DefId) -> Vec<def::Export>;
     fn load_macro(&self, did: DefId, sess: &Session) -> LoadedMacro;
@@ -510,7 +510,7 @@ fn retrace_path(&self,
     }
 
     fn def_key(&self, def: DefId) -> DefKey { bug!("def_key") }
-    fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath> {
+    fn def_path(&self, def: DefId) -> hir_map::DefPath {
         bug!("relative_def_path")
     }
     fn struct_field_names(&self, def: DefId) -> Vec<ast::Name> { bug!("struct_field_names") }