Skip to content

Commit af1a19d

Browse files
committed
Auto merge of #963 - rust-lang:rustup, r=RalfJung
Update to latest nightly
2 parents 402129c + c424e06 commit af1a19d

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ before_script:
3333
# Install Rust ("stable" toolchain for better caching, it is just used to build rustup-toolchain-install-master)
3434
- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain stable
3535
- export PATH=$HOME/.cargo/bin:$PATH
36+
- rustup default stable
37+
- rustup uninstall beta
3638
- rustup update
3739
# Install "master" toolchain
3840
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
3941
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src
4042
- rustup default master
4143
- rustc --version
44+
- cargo --version
4245

4346
script:
4447
- ./travis.sh

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ cargo_miri = ["cargo_metadata", "directories", "rustc_version"]
5959
rustc_tests = []
6060

6161
[dev-dependencies]
62-
compiletest_rs = { version = "0.3.22", features = ["tmp", "stable"] }
62+
compiletest_rs = { version = "0.3.23", features = ["tmp"] }
6363
colored = "1.6"

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ea3ba36f3f4b7f0168a27d23c499efeb2304e2d5
1+
dc45735f29788924b9fc351d100e5bf3ebdca162

src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
211211
fn visit_value(&mut self, v: MPlaceTy<'tcx, Tag>) -> InterpResult<'tcx>
212212
{
213213
trace!("UnsafeCellVisitor: {:?} {:?}", *v, v.layout.ty);
214-
let is_unsafe_cell = match v.layout.ty.sty {
214+
let is_unsafe_cell = match v.layout.ty.kind {
215215
ty::Adt(adt, _) => Some(adt.did) == self.ecx.tcx.lang_items().unsafe_cell_type(),
216216
_ => false,
217217
};

src/stacked_borrows.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ impl<'tcx> Stacks {
435435

436436
Stacks {
437437
stacks: RefCell::new(RangeMap::new(size, stack)),
438-
global: extra,
438+
global: extra,
439439
}
440440
}
441441

@@ -460,7 +460,7 @@ impl Stacks {
460460
pub fn new_allocation(
461461
id: AllocId,
462462
size: Size,
463-
extra: MemoryExtra,
463+
extra: MemoryExtra,
464464
kind: MemoryKind<MiriMemoryKind>,
465465
) -> (Self, Tag) {
466466
let (tag, perm) = match kind {
@@ -616,7 +616,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
616616
// Cannot use `builtin_deref` because that reports *immutable* for `Box`,
617617
// making it useless.
618618
fn qualify(ty: ty::Ty<'_>, kind: RetagKind) -> Option<(RefKind, bool)> {
619-
match ty.sty {
619+
match ty.kind {
620620
// References are simple.
621621
ty::Ref(_, _, MutMutable) =>
622622
Some((RefKind::Unique { two_phase: kind == RetagKind::TwoPhase}, kind == RetagKind::FnEntry)),

0 commit comments

Comments
 (0)