rename expose_addr
to expose_provenance
This commit is contained in:
parent
e530b3d19c
commit
53e31dc45c
@ -149,7 +149,7 @@ fn check_rvalue<'tcx>(
|
|||||||
Err((span, "unsizing casts are not allowed in const fn".into()))
|
Err((span, "unsizing casts are not allowed in const fn".into()))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => {
|
Rvalue::Cast(CastKind::PointerExposeProvenance, _, _) => {
|
||||||
Err((span, "casting pointers to ints is unstable in const fn".into()))
|
Err((span, "casting pointers to ints is unstable in const fn".into()))
|
||||||
},
|
},
|
||||||
Rvalue::Cast(CastKind::DynStar, _, _) => {
|
Rvalue::Cast(CastKind::DynStar, _, _) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user