about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-03-24 17:49:58 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-03-24 17:59:18 +0300
commit2cbc25e6fce9bb594ea78ccfd58ef1b6ea42ea38 (patch)
tree96398c53c365693a2e0a0843b957478e22803139 /src/librustc_codegen_utils
parent5bcf9f4f119b8109c6c642dcfeb63fb39c26950a (diff)
downloadrust-2cbc25e6fce9bb594ea78ccfd58ef1b6ea42ea38.tar.gz
rust-2cbc25e6fce9bb594ea78ccfd58ef1b6ea42ea38.zip
Merge `DefPathData::VariantCtor` and `DefPathData::StructCtor`
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs
index 0fa935199f9..ebd48f0ae1e 100644
--- a/src/librustc_codegen_utils/symbol_names.rs
+++ b/src/librustc_codegen_utils/symbol_names.rs
@@ -522,7 +522,7 @@ impl Printer<'tcx, 'tcx> for SymbolPrinter<'_, 'tcx> {
 
         // Skip `::{{constructor}}` on tuple/unit structs.
         match disambiguated_data.data {
-            DefPathData::StructCtor => return Ok(self),
+            DefPathData::Ctor => return Ok(self),
             _ => {}
         }