Do not try to reveal hidden types when trying to prove Freeze in the defining scope
This commit is contained in:
parent
fdff100545
commit
acba6449f8
18 changed files with 67 additions and 261 deletions
|
@ -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(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue