Fix unsafe_op_in_unsafe_fn in compiler
This commit is contained in:
parent
71eb49c318
commit
28503d69ac
15 changed files with 386 additions and 311 deletions
|
@ -67,7 +67,7 @@ fn erase(context: &ImplicitCtxt<'_, '_>) -> *const () {
|
|||
|
||||
#[inline]
|
||||
unsafe fn downcast<'a, 'tcx>(context: *const ()) -> &'a ImplicitCtxt<'a, 'tcx> {
|
||||
&*(context as *const ImplicitCtxt<'a, 'tcx>)
|
||||
unsafe { &*(context as *const ImplicitCtxt<'a, 'tcx>) }
|
||||
}
|
||||
|
||||
/// Sets `context` as the new current `ImplicitCtxt` for the duration of the function `f`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue