diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-19 06:35:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-19 06:35:36 +0200 |
| commit | fdd2f4bde8452e806288f7aa8d42f10bdb4369c0 (patch) | |
| tree | 76f08e259118127d7e086e94bfdfa65f410d6ccf /compiler/rustc_trait_selection/src | |
| parent | e85b0267a47e136ac77c827f82d2277125fae426 (diff) | |
| parent | 238756e45d88a603c143b89f7408717516a03e03 (diff) | |
Rollup merge of #110510 - bryangarza:issue-110467-safe-transmute, r=compiler-errors
Fix ICE for transmutability in candidate assembly Don't skip transmutability check just because there may be generics in the ParamEnv. Fixes #110467
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs index 1f5bbc178f7..a019d00461b 100644 --- a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs +++ b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs @@ -775,7 +775,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { obligation: &TraitObligation<'tcx>, candidates: &mut SelectionCandidateSet<'tcx>, ) { - if obligation.has_non_region_param() { + if obligation.predicate.has_non_region_param() { return; } |
