Rename DefPathData::get_name()
to DefPathData::name()
This commit is contained in:
parent
2708ad8bb4
commit
657ecdb75e
7 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue