Merge remote-tracking branch 'origin/master' into mut-visitor
This commit is contained in:
commit
aad47db21b
7 changed files with 13 additions and 13 deletions
|
|
@ -35,7 +35,7 @@ script:
|
|||
- set -e
|
||||
- |
|
||||
# Test and install plain miri
|
||||
cargo build --release --all-features &&
|
||||
cargo build --release --all-features --all-targets &&
|
||||
cargo test --release --all-features &&
|
||||
cargo install --all-features --force --path .
|
||||
- |
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ nightly).
|
|||
|
||||
## Running Miri on your own project('s test suite)
|
||||
|
||||
Install Miri as a cargo subcommand with `cargo install +nightly --all-features
|
||||
Install Miri as a cargo subcommand with `cargo +nightly install --all-features
|
||||
--path .`. Be aware that if you used `rustup override set` to fix a particular
|
||||
Rust version for the miri directory, that will *not* apply to your own project
|
||||
directory! You have to use a consistent Rust version for building miri and your
|
||||
|
|
|
|||
|
|
@ -37,10 +37,10 @@ build: false
|
|||
test_script:
|
||||
- set RUSTFLAGS=-g
|
||||
- set RUST_BACKTRACE=1
|
||||
- cargo build --release
|
||||
- cargo test --release
|
||||
- cargo build --release --all-targets --all-features
|
||||
- cargo test --release --all-features
|
||||
- set MIRI_SYSROOT=%USERPROFILE%\.xargo\HOST
|
||||
- cargo test --release
|
||||
- cargo test --release --all-features
|
||||
|
||||
notifications:
|
||||
- provider: Email
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#![feature(test, rustc_private)]
|
||||
|
||||
extern crate test;
|
||||
use test::Bencher;
|
||||
use crate::test::Bencher;
|
||||
mod helpers;
|
||||
use helpers::*;
|
||||
use crate::helpers::*;
|
||||
|
||||
#[bench]
|
||||
fn fib(bencher: &mut Bencher) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use self::miri::eval_main;
|
|||
use self::rustc_driver::{driver, Compilation};
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
use test::Bencher;
|
||||
use crate::test::Bencher;
|
||||
|
||||
pub struct MiriCompilerCalls<'a>(Rc<RefCell<&'a mut Bencher>>);
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ pub fn run(filename: &str, bencher: &mut Bencher) {
|
|||
let entry_def_id = tcx.hir.local_def_id(entry_node_id);
|
||||
|
||||
bencher.borrow_mut().iter(|| {
|
||||
eval_main(tcx, entry_def_id, None);
|
||||
eval_main(tcx, entry_def_id, false);
|
||||
});
|
||||
|
||||
state.session.abort_if_errors();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#![feature(test, rustc_private)]
|
||||
|
||||
extern crate test;
|
||||
use test::Bencher;
|
||||
use crate::test::Bencher;
|
||||
mod helpers;
|
||||
use helpers::*;
|
||||
use crate::helpers::*;
|
||||
|
||||
#[bench]
|
||||
fn repeat(bencher: &mut Bencher) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#![feature(test, rustc_private)]
|
||||
|
||||
extern crate test;
|
||||
use test::Bencher;
|
||||
use crate::test::Bencher;
|
||||
mod helpers;
|
||||
use helpers::*;
|
||||
use crate::helpers::*;
|
||||
|
||||
#[bench]
|
||||
fn noop(bencher: &mut Bencher) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue