Make AssertRecoverSafe's field public
It's basically the very definition of a newtype, so we might as well make things easy on people and let them construct and access it directly.
This commit is contained in:
parent
b12b4e4e32
commit
74d00bde8e
3 changed files with 10 additions and 8 deletions
|
@ -257,10 +257,10 @@ fn runtest(test: &str, cratename: &str, cfgs: Vec<String>, libs: SearchPaths,
|
|||
}
|
||||
|
||||
match {
|
||||
let b_sess = AssertRecoverSafe::new(&sess);
|
||||
let b_cstore = AssertRecoverSafe::new(&cstore);
|
||||
let b_cfg = AssertRecoverSafe::new(cfg.clone());
|
||||
let b_control = AssertRecoverSafe::new(&control);
|
||||
let b_sess = AssertRecoverSafe(&sess);
|
||||
let b_cstore = AssertRecoverSafe(&cstore);
|
||||
let b_cfg = AssertRecoverSafe(cfg.clone());
|
||||
let b_control = AssertRecoverSafe(&control);
|
||||
|
||||
panic::recover(|| {
|
||||
driver::compile_input(&b_sess, &b_cstore, (*b_cfg).clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue