Make some rustc code conform to strict provenance.
There's some really bad stuff around `ty` and pointer tagging stuff that was too much work to handle here.
This commit is contained in:
parent
c7de289e1c
commit
68643603ad
3 changed files with 13 additions and 10 deletions
|
@ -6,6 +6,7 @@
|
|||
#![feature(once_cell)]
|
||||
#![feature(nll)]
|
||||
#![feature(associated_type_bounds)]
|
||||
#![feature(strict_provenance)]
|
||||
#![recursion_limit = "256"]
|
||||
#![allow(rustc::potential_query_instability)]
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ impl<'a, 'tcx: 'a> MonoItemExt<'a, 'tcx> for MonoItem<'tcx> {
|
|||
fn to_raw_string(&self) -> String {
|
||||
match *self {
|
||||
MonoItem::Fn(instance) => {
|
||||
format!("Fn({:?}, {})", instance.def, instance.substs.as_ptr() as usize)
|
||||
format!("Fn({:?}, {})", instance.def, instance.substs.as_ptr().addr())
|
||||
}
|
||||
MonoItem::Static(id) => format!("Static({:?})", id),
|
||||
MonoItem::GlobalAsm(id) => format!("GlobalAsm({:?})", id),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue