mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fmt
This commit is contained in:
parent
a519c9b6b7
commit
b0d7ccb133
@ -2156,7 +2156,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
}
|
||||
}
|
||||
if let Some(default_trait) = self.tcx.get_diagnostic_item(sym::Default)
|
||||
&& self.infcx
|
||||
&& self
|
||||
.infcx
|
||||
.type_implements_trait(default_trait, [adt_ty], self.param_env)
|
||||
.may_apply()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user