mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Remove a FIXME resolved by #73578
This commit is contained in:
parent
40334da7a6
commit
48f9f0864b
@ -699,7 +699,6 @@ impl<'tcx> ty::TyS<'tcx> {
|
|||||||
/// optimization as well as the rules around static values. Note
|
/// optimization as well as the rules around static values. Note
|
||||||
/// that the `Freeze` trait is not exposed to end users and is
|
/// that the `Freeze` trait is not exposed to end users and is
|
||||||
/// effectively an implementation detail.
|
/// effectively an implementation detail.
|
||||||
// FIXME: use `TyCtxtAt` instead of separate `Span`.
|
|
||||||
pub fn is_freeze(&'tcx self, tcx_at: TyCtxtAt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool {
|
pub fn is_freeze(&'tcx self, tcx_at: TyCtxtAt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool {
|
||||||
self.is_trivially_freeze() || tcx_at.is_freeze_raw(param_env.and(self))
|
self.is_trivially_freeze() || tcx_at.is_freeze_raw(param_env.and(self))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user