diff options
author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-03-24 17:49:58 +0300 |
---|---|---|
committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-03-24 17:59:18 +0300 |
commit | 2cbc25e6fce9bb594ea78ccfd58ef1b6ea42ea38 (patch) | |
tree | 96398c53c365693a2e0a0843b957478e22803139 /src/librustc/ty/mod.rs | |
parent | 5bcf9f4f119b8109c6c642dcfeb63fb39c26950a (diff) | |
download | rust-2cbc25e6fce9bb594ea78ccfd58ef1b6ea42ea38.tar.gz |
Merge `DefPathData::VariantCtor` and `DefPathData::StructCtor`
Diffstat (limited to 'src/librustc/ty/mod.rs')
-rw-r--r-- | src/librustc/ty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index 3ab3ae0c537..880f75ab9dd 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -2960,8 +2960,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { } else { let def_key = self.def_key(id); match def_key.disambiguated_data.data { - // The name of a `StructCtor` or `VariantCtor` is that of its parent. - hir_map::DefPathData::StructCtor | hir_map::DefPathData::VariantCtor => + // The name of a constructor is that of its parent. + hir_map::DefPathData::Ctor => self.item_name(DefId { krate: id.krate, index: def_key.parent.unwrap() |