From 657ecdb75e2a9f8e8295bc75d9fe810f02605130 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Tue, 1 Sep 2020 00:42:30 +0100 Subject: Rename `DefPathData::get_name()` to `DefPathData::name()` --- compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_codegen_ssa/src/debuginfo') diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index e227f9df000..5642cc526ae 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -232,7 +232,7 @@ pub fn push_debuginfo_type_name<'tcx>( output.push_str(&tcx.crate_name(def_id.krate).as_str()); for path_element in tcx.def_path(def_id).data { output.push_str("::"); - match path_element.data.get_name() { + match path_element.data.name() { DefPathDataName::Named(name) => output.push_str(&name.as_str()), DefPathDataName::Anon { namespace } => { write!(output, "{{{{{}}}}}", namespace).unwrap() -- cgit 1.4.1-3-g733a5