about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
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_llvm/src
parent2708ad8bb441fb500bbd2486779c215ffd57bcd2 (diff)
downloadrust-657ecdb75e2a9f8e8295bc75d9fe810f02605130.tar.gz
rust-657ecdb75e2a9f8e8295bc75d9fe810f02605130.zip
Rename `DefPathData::get_name()` to `DefPathData::name()`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs b/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs
index 835d0d2e12d..661d13ead83 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/namespace.rs
@@ -30,7 +30,7 @@ pub fn item_namespace(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope {
 
     let namespace_name = match def_key.disambiguated_data.data {
         DefPathData::CrateRoot => cx.tcx.crate_name(def_id.krate),
-        data => match data.get_name() {
+        data => match data.name() {
             DefPathDataName::Named(name) => name,
             DefPathDataName::Anon { namespace } => {
                 Symbol::intern(&format!("{{{{{}}}}}", namespace))