Fix dogfood error of question_mark lint fix
This commit is contained in:
@@ -180,9 +180,8 @@ impl<'tcx> Printer<'tcx, 'tcx> for AbsolutePathPrinter<'_, 'tcx> {
|
|||||||
let mut path = print_prefix(self)?;
|
let mut path = print_prefix(self)?;
|
||||||
|
|
||||||
// Skip `::{{constructor}}` on tuple/unit structs.
|
// Skip `::{{constructor}}` on tuple/unit structs.
|
||||||
match disambiguated_data.data {
|
if let DefPathData::Ctor = disambiguated_data.data {
|
||||||
DefPathData::Ctor => return Ok(path),
|
return Ok(path);
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
path.push(disambiguated_data.data.as_interned_str().as_str());
|
path.push(disambiguated_data.data.as_interned_str().as_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user