tidy
This commit is contained in:
parent
087c0d7ea9
commit
258ebfe476
1 changed files with 1 additions and 4 deletions
|
@ -4974,10 +4974,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
}
|
||||
Some(Node::Ctor(hir::VariantData::Tuple(fields, _))) => {
|
||||
sugg_call = fields.iter().map(|_| "_").collect::<Vec<_>>().join(", ");
|
||||
match def_id
|
||||
.as_local()
|
||||
.map(|def_id| hir.def_kind(def_id))
|
||||
{
|
||||
match def_id.as_local().map(|def_id| hir.def_kind(def_id)) {
|
||||
Some(DefKind::Ctor(hir::def::CtorOf::Variant, _)) => {
|
||||
msg = "instantiate this tuple variant";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue