diff options
Diffstat (limited to 'benches/rust.rs')
-rw-r--r-- | benches/rust.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/benches/rust.rs b/benches/rust.rs index 54542932..50e1a7f6 100644 --- a/benches/rust.rs +++ b/benches/rust.rs @@ -5,7 +5,6 @@ #![cfg_attr(not(syn_only), feature(rustc_private))] #![recursion_limit = "1024"] -#![allow(clippy::cast_lossless, clippy::unnecessary_wraps)] #[macro_use] #[path = "../tests/macros/mod.rs"] @@ -59,7 +58,7 @@ mod librustc_parse { } } - rustc_span::create_session_if_not_set_then(Edition::Edition2018, |_| { + rustc_span::with_session_globals(Edition::Edition2018, || { let cm = Lrc::new(SourceMap::new(FilePathMapping::empty())); let emitter = Box::new(SilentEmitter); let handler = Handler::with_emitter(false, None, emitter); @@ -117,7 +116,7 @@ fn main() { macro_rules! testcases { ($($(#[$cfg:meta])* $name:ident,)*) => { - [ + vec![ $( $(#[$cfg])* (stringify!($name), $name::bench as fn(&str) -> Result<(), ()>), |