Skip to content

Commit

Permalink
Rollup merge of rust-lang#83643 - JohnTitor:is-freeze-no-longer-uses-…
Browse files Browse the repository at this point in the history
…span, r=RalfJung

Remove a FIXME resolved by rust-lang#73578

r? ``@RalfJung``
  • Loading branch information
Dylan-DPC authored Mar 29, 2021
2 parents 6b5ba53 + 48f9f08 commit fca8e7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_middle/src/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ impl<'tcx> ty::TyS<'tcx> {
/// optimization as well as the rules around static values. Note
/// that the `Freeze` trait is not exposed to end users and is
/// 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 {
self.is_trivially_freeze() || tcx_at.is_freeze_raw(param_env.and(self))
}
Expand Down

0 comments on commit fca8e7d

Please sign in to comment.