Skip to content

Commit a048b16

Browse files
And the tools too
1 parent 9bc75fd commit a048b16

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/borrow_tracker/stacked_borrows/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl NewPermission {
9090
}
9191
}
9292
}
93-
ty::RawPtr(ty::TypeAndMut { mutbl: Mutability::Mut, .. }) => {
93+
ty::RawPtr(_, Mutability::Mut) => {
9494
assert!(protector.is_none()); // RetagKind can't be both FnEntry and Raw.
9595
// Mutable raw pointer. No access, not protected.
9696
NewPermission::Uniform {
@@ -114,7 +114,7 @@ impl NewPermission {
114114
// This fixes https://github.com/rust-lang/rust/issues/55005.
115115
}
116116
}
117-
ty::RawPtr(ty::TypeAndMut { mutbl: Mutability::Not, .. }) => {
117+
ty::RawPtr(_, Mutability::Not) => {
118118
assert!(protector.is_none()); // RetagKind can't be both FnEntry and Raw.
119119
// `*const T`, when freshly created, are read-only in the frozen part.
120120
NewPermission::FreezeSensitive {

src/machine.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use rand::rngs::StdRng;
1212
use rand::Rng;
1313
use rand::SeedableRng;
1414

15-
use rustc_ast::ast::Mutability;
1615
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1716
#[allow(unused)]
1817
use rustc_data_structures::static_assert_size;
@@ -22,7 +21,7 @@ use rustc_middle::{
2221
ty::{
2322
self,
2423
layout::{LayoutCx, LayoutError, LayoutOf, TyAndLayout},
25-
Instance, Ty, TyCtxt, TypeAndMut,
24+
Instance, Ty, TyCtxt,
2625
},
2726
};
2827
use rustc_span::def_id::{CrateNum, DefId};

0 commit comments

Comments
 (0)