1
Fork 0

Do not try to reveal hidden types when trying to prove Freeze in the defining scope

This commit is contained in:
Oli Scherer 2024-03-08 12:39:26 +00:00
parent fdff100545
commit acba6449f8
18 changed files with 67 additions and 261 deletions

View file

@ -1268,7 +1268,7 @@ impl<'tcx> Ty<'tcx> {
///
/// Returning true means the type is known to be `Freeze`. Returning
/// `false` means nothing -- could be `Freeze`, might not be.
fn is_trivially_freeze(self) -> bool {
pub fn is_trivially_freeze(self) -> bool {
match self.kind() {
ty::Int(_)
| ty::Uint(_)