We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
::{{constructor}}
1 parent 716394d commit 32ee368Copy full SHA for 32ee368
compiler/rustc_mir/src/interpret/intrinsics/type_name.rs
@@ -1,5 +1,5 @@
1
use rustc_hir::def_id::CrateNum;
2
-use rustc_hir::definitions::{DefPathData, DisambiguatedDefPathData};
+use rustc_hir::definitions::DisambiguatedDefPathData;
3
use rustc_middle::mir::interpret::Allocation;
4
use rustc_middle::ty::{
5
self,
@@ -127,11 +127,6 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> {
127
) -> Result<Self::Path, Self::Error> {
128
self = print_prefix(self)?;
129
130
- // Skip `::{{constructor}}` on tuple/unit structs.
131
- if disambiguated_data.data == DefPathData::Ctor {
132
- return Ok(self);
133
- }
134
-
135
write!(self.path, "::{}", disambiguated_data.data).unwrap();
136
137
Ok(self)
0 commit comments