about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-02-04 09:03:31 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-05-31 18:24:53 +0300
commit408bf9de3459ffbf3b5f8844895d4f0147faad9a (patch)
tree459ad8af6c682b404ef32b24b11503d1b6714f02 /src/librustc_codegen_utils
parent2092963a1851efca5222bd816557055988ce8f90 (diff)
downloadrust-408bf9de3459ffbf3b5f8844895d4f0147faad9a.tar.gz
rust-408bf9de3459ffbf3b5f8844895d4f0147faad9a.zip
rustc_codegen_utils: don't ignore `Ctor` path components in symbols.
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names/v0.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_codegen_utils/symbol_names/v0.rs b/src/librustc_codegen_utils/symbol_names/v0.rs
index 6d37d4cafc3..dc985c8126c 100644
--- a/src/librustc_codegen_utils/symbol_names/v0.rs
+++ b/src/librustc_codegen_utils/symbol_names/v0.rs
@@ -586,13 +586,11 @@ impl Printer<'tcx, 'tcx> for SymbolMangler<'_, 'tcx> {
         disambiguated_data: &DisambiguatedDefPathData,
     ) -> Result<Self::Path, Self::Error> {
         let ns = match disambiguated_data.data {
-            // Avoid putting the burden on demanglers to ignore this.
-            DefPathData::Ctor => return print_prefix(self),
-
             // Uppercase categories are more stable than lowercase ones.
             DefPathData::TypeNs(_) => 't',
             DefPathData::ValueNs(_) => 'v',
             DefPathData::ClosureExpr => 'C',
+            DefPathData::Ctor => 'c',
             DefPathData::AnonConst => 'k',
             DefPathData::ImplTrait => 'i',