]> git.lizzy.rs Git - rust.git/commit
Remove `UnsafetyState`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 8 Dec 2022 04:42:12 +0000 (15:42 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 8 Dec 2022 04:42:57 +0000 (15:42 +1100)
commit7a4669285ac270a4a3deb9cf10bc9d5e40e6b2df
treee4e288f27a29a38426eb2ee8bb80efd252fe3fea
parente491d2b24da8c11c902bb836d189590600f26caf
Remove `UnsafetyState`.

`FnCtxt::ps` is the only occurrence. It gets updated during HIR
typechecking, but is never looked at.
compiler/rustc_hir_typeck/src/check.rs
compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs
compiler/rustc_hir_typeck/src/lib.rs