We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac2f84 commit 66090efCopy full SHA for 66090ef
compiler/rustc_trait_selection/src/traits/query/type_op/prove_predicate.rs
@@ -30,6 +30,23 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ProvePredicate<'tcx> {
30
}
31
32
33
+ if let ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(arg)) =
34
+ key.value.predicate.kind().skip_binder()
35
+ {
36
+ match arg.as_type()?.kind() {
37
+ ty::Param(_)
38
+ | ty::Bool
39
+ | ty::Char
40
+ | ty::Int(_)
41
+ | ty::Float(_)
42
+ | ty::Str
43
+ | ty::Uint(_) => {
44
+ return Some(());
45
+ }
46
+ _ => {}
47
48
49
+
50
None
51
52
0 commit comments