about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/debuginfo
diff options
context:
space:
mode:
authormarmeladema <xademax@gmail.com>2020-09-01 00:42:30 +0100
committermarmeladema <xademax@gmail.com>2020-09-25 22:46:15 +0100
commit657ecdb75e2a9f8e8295bc75d9fe810f02605130 (patch)
tree6258865d968825a3ea3532513f3671b70ed47fba /compiler/rustc_codegen_ssa/src/debuginfo
parent2708ad8bb441fb500bbd2486779c215ffd57bcd2 (diff)
downloadrust-657ecdb75e2a9f8e8295bc75d9fe810f02605130.tar.gz
rust-657ecdb75e2a9f8e8295bc75d9fe810f02605130.zip
Rename `DefPathData::get_name()` to `DefPathData::name()`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs2
1 files changed, 1 insertions, 1 deletions
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()