Skip to content

Commit

Permalink
changes for toolchain upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
crabm4n committed May 9, 2024
1 parent d4c78c2 commit 68c05e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl<T: ?Sized> MetaTable<T> {
{
let ty_id = TypeId::of::<R>();
// use self.addr() for unpredictable address to use for checking consistency below
let invalid_ptr = core::ptr::invalid_mut::<R>((self as *mut Self).addr());
let invalid_ptr = core::ptr::without_provenance_mut::<R>((self as *mut Self).addr());
let trait_ptr = <T as CastFrom<R>>::cast(invalid_ptr);
// assert that address not changed (to catch some mistakes in CastFrom impl)
assert_eq!(
Expand Down

0 comments on commit 68c05e7

Please sign in to comment.