Skip to content

Commit

Permalink
Updated to nightly-2022-10-09, changing `CastKind{Misc => PtrToPtr}…
Browse files Browse the repository at this point in the history
…` as `CastKind::Misc` is gone and this one is a ptr-to-ptr cast.
  • Loading branch information
kkysen committed Feb 1, 2023
1 parent 78d36f2 commit 7fd06e3
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 146 deletions.
2 changes: 1 addition & 1 deletion dynamic_instrumentation/src/point/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn cast_ptr_to_usize<'tcx>(
source_info: SourceInfo::outermost(DUMMY_SP),
kind: StatementKind::Assign(Box::new((
casted_local.into(),
Rvalue::Cast(CastKind::Misc, ptr, thin_raw_ptr_ty),
Rvalue::Cast(CastKind::PtrToPtr, ptr, thin_raw_ptr_ty),
))),
};
new_stmts.push(cast_stmt);
Expand Down
Loading

0 comments on commit 7fd06e3

Please sign in to comment.