Skip to content

Commit

Permalink
Remove crashes, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Oct 3, 2024
1 parent 5b1a2b8 commit bc5f952
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,8 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
) -> GetSafeTransmuteErrorAndReason {
use rustc_transmute::Answer;

// We don't assemble a transmutability candidate for types that are generic
// and we should have ambiguity for types that still have non-region infer.
if obligation.predicate.has_non_region_param() || obligation.has_non_region_infer() {
return GetSafeTransmuteErrorAndReason::Default;
}
Expand Down
8 changes: 0 additions & 8 deletions tests/crashes/125881.rs

This file was deleted.

29 changes: 0 additions & 29 deletions tests/crashes/126377.rs

This file was deleted.

17 changes: 0 additions & 17 deletions tests/crashes/130413.rs

This file was deleted.

0 comments on commit bc5f952

Please sign in to comment.