]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir/src/definitions.rs
Auto merge of #96659 - thatzopoulos:issue-90679-fix, r=Mark-Simulacrum
[rust.git] / compiler / rustc_hir / src / definitions.rs
index 4908992085a6e12de70bf3f25fc513d71c4f0ff2..bce9ba12ac0c424045e391a05f420f714307d4f7 100644 (file)
@@ -353,11 +353,6 @@ pub fn new(stable_crate_id: StableCrateId, crate_span: Span) -> Definitions {
         }
     }
 
-    /// Retrieves the root definition.
-    pub fn get_root_def(&self) -> LocalDefId {
-        LocalDefId { local_def_index: CRATE_DEF_INDEX }
-    }
-
     /// Adds a definition with a parent definition.
     pub fn create_def(
         &mut self,