We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0bef7 commit d3c0ef0Copy full SHA for d3c0ef0
compiler/rustc_trait_selection/src/traits/query/type_op/prove_predicate.rs
@@ -21,19 +21,9 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ProvePredicate<'tcx> {
21
22
if let ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(term)) =
23
key.value.predicate.kind().skip_binder()
24
+ && term.is_trivially_wf(tcx)
25
{
- match term.as_type()?.kind() {
26
- ty::Param(_)
27
- | ty::Bool
28
- | ty::Char
29
- | ty::Int(_)
30
- | ty::Float(_)
31
- | ty::Str
32
- | ty::Uint(_) => {
33
- return Some(());
34
- }
35
- _ => {}
36
+ return Some(());
37
}
38
39
None
0 commit comments