Add debug assertions to implements_trait
Improve debug assertions for `make_projection`
This commit is contained in:
parent
29730969b1
commit
71cc39e1f2
6 changed files with 117 additions and 93 deletions
|
|
@ -57,7 +57,7 @@ pub(super) fn check<'tcx>(
|
|||
cx.tcx
|
||||
.get_diagnostic_item(sym::Default)
|
||||
.map_or(false, |default_trait_id| {
|
||||
implements_trait(cx, output_ty, default_trait_id, args)
|
||||
implements_trait(cx, output_ty, default_trait_id, &[])
|
||||
})
|
||||
} else {
|
||||
false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue