X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir%2Fsrc%2Fdefinitions.rs;h=bce9ba12ac0c424045e391a05f420f714307d4f7;hb=4c09a3345ab10b9a10a284cea1a1f3673bc9a414;hp=4908992085a6e12de70bf3f25fc513d71c4f0ff2;hpb=1dc672a766832287f2f998a1cdde76ea74cd480d;p=rust.git diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs index 4908992085a..bce9ba12ac0 100644 --- a/compiler/rustc_hir/src/definitions.rs +++ b/compiler/rustc_hir/src/definitions.rs @@ -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,