| // Ensure that we don't get a cycle error from trying to determine whether an |
| // opaque type implements `Freeze` in safety checking, when it doesn't matter. |
| // No need to check for `Freeze` here, there's no |
| // `rustc_layout_scalar_valid_range_start` involved. |
| fn not_restricted(c: bool) -> impl Sized { |
| let x = AnyValue(not_restricted(false)); |
| #[rustc_layout_scalar_valid_range_start(1)] |
| // No need to check for `Freeze` here, we're not borrowing the field. |
| fn not_field(c: bool) -> impl Sized { |
| let x = unsafe { NonZero(not_field(false)) }; |