Fix dogfood error of question_mark lint fix

This commit is contained in:
flip1995 2019-03-27 13:22:40 +01:00
parent 6f01ecfefd
commit bbb7963735
No known key found for this signature in database
GPG Key ID: 693086869D506637
1 changed files with 2 additions and 3 deletions

View File

@ -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());