Fix dogfood error of question_mark lint fix
This commit is contained in:
parent
6f01ecfefd
commit
bbb7963735
1 changed files with 2 additions and 3 deletions
|
|
@ -180,9 +180,8 @@ impl<'tcx> Printer<'tcx, 'tcx> for AbsolutePathPrinter<'_, 'tcx> {
|
|||
let mut path = print_prefix(self)?;
|
||||
|
||||
// Skip `::{{constructor}}` on tuple/unit structs.
|
||||
match disambiguated_data.data {
|
||||
DefPathData::Ctor => return Ok(path),
|
||||
_ => {}
|
||||
if let DefPathData::Ctor = disambiguated_data.data {
|
||||
return Ok(path);
|
||||
}
|
||||
|
||||
path.push(disambiguated_data.data.as_interned_str().as_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue