Skip to content

Commit 9b18153

Browse files
committed
Update Cargo.lock and some improvements
1 parent 77413d7 commit 9b18153

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ path = "miri/lib.rs"
2323

2424
[dependencies]
2525
byteorder = { version = "1.1", features = ["i128"]}
26-
cargo_metadata = { version = "0.2", optional = true }
26+
cargo_metadata = { version = "0.5", optional = true }
2727
regex = "0.2.2"
2828
lazy_static = "1.0"
2929
env_logger = "0.5.0-rc.1"

miri/bin/cargo-miri.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ fn main() {
121121

122122
let home = option_env!("RUSTUP_HOME").or(option_env!("MULTIRUST_HOME"));
123123
let toolchain = option_env!("RUSTUP_TOOLCHAIN").or(option_env!("MULTIRUST_TOOLCHAIN"));
124-
let sys_root = if let (Some(home), Some(toolchain)) = (home, toolchain) {
124+
let sys_root = if let Ok(sysroot) = ::std::env::var("MIRI_SYSROOT") {
125+
sysroot
126+
} else if let (Some(home), Some(toolchain)) = (home, toolchain) {
125127
format!("{}/toolchains/{}", home, toolchain)
126128
} else {
127129
option_env!("RUST_SYSROOT")

miri/fn_call.rs

-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ impl<'a, 'mir, 'tcx: 'mir + 'a> EvalContextExt<'tcx> for EvalContext<'a, 'mir, '
444444

445445
"sysconf" => {
446446
let name = self.value_to_primval(args[0])?.to_u64()?;
447-
let name_align = self.layout_of(args[0].ty)?.align;
448447

449448
trace!("sysconf() called with name {}", name);
450449
// cache the sysconf integers via miri's global cache

miri/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ pub fn eval_main<'a, 'tcx: 'a>(
173173
}
174174
}
175175
Err(mut e) => {
176+
ecx.tcx.err(&e.to_string());
176177
ecx.report(&mut e, true, None);
177178
}
178179
}

0 commit comments

Comments
 (0)