mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 02:49:34 +01:00
Don't use deprecated method to create compiletest config
This commit is contained in:
parent
bbc873622d
commit
21d1f6b9ad
1 changed files with 2 additions and 1 deletions
|
@ -3,10 +3,11 @@ extern crate compiletest_rs as compiletest;
|
|||
use std::path::PathBuf;
|
||||
|
||||
use compiletest::common::Mode;
|
||||
use compiletest::Config;
|
||||
|
||||
#[test]
|
||||
fn cfail() {
|
||||
let mut config = compiletest::default_config();
|
||||
let mut config = Config::default();
|
||||
config.mode = Mode::CompileFail;
|
||||
config.src_base = PathBuf::from(format!("tests/cfail"));
|
||||
config.target_rustcflags = Some(
|
||||
|
|
Loading…
Reference in a new issue