File tree 1 file changed +16
-1
lines changed
compiler/rustc_next_trait_solver/src/solve/assembly
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -391,9 +391,24 @@ where
391
391
392
392
match assemble_from {
393
393
AssembleCandidatesFrom :: All => {
394
- self . assemble_impl_candidates ( goal, & mut candidates) ;
395
394
self . assemble_builtin_impl_candidates ( goal, & mut candidates) ;
395
+
396
+ // UwU
397
+ if !matches ! ( self . typing_mode( ) , TypingMode :: Coherence ) {
398
+ if candidates. iter ( ) . any ( |cand| {
399
+ matches ! (
400
+ cand. source,
401
+ CandidateSource :: ParamEnv ( ParamEnvSource :: NonGlobal )
402
+ | CandidateSource :: AliasBound
403
+ | CandidateSource :: BuiltinImpl ( BuiltinImplSource :: Trivial )
404
+ )
405
+ } ) {
406
+ return candidates;
407
+ }
408
+ }
409
+
396
410
self . assemble_object_bound_candidates ( goal, & mut candidates) ;
411
+ self . assemble_impl_candidates ( goal, & mut candidates) ;
397
412
}
398
413
AssembleCandidatesFrom :: EnvAndBounds => { }
399
414
}
You can’t perform that action at this time.
0 commit comments