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 c846d9f commit bed395eCopy full SHA for bed395e
compiler/rustc_trait_selection/src/traits/query/type_op/prove_predicate.rs
@@ -16,6 +16,9 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ProvePredicate<'tcx> {
16
// we have to prove. No need to canonicalize and all that for
17
// such cases.
18
if let ty::PredicateKind::Trait(trait_ref) = key.value.predicate.kind().skip_binder() {
19
+ if trait_ref.implicit == ty::ImplicitBound::Yes {
20
+ return Some(());
21
+ }
22
if let Some(sized_def_id) = tcx.lang_items().sized_trait() {
23
if trait_ref.def_id() == sized_def_id {
24
if trait_ref.self_ty().is_trivially_sized(tcx) {
0 commit comments