mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 16:37:36 +00:00
Fix build
This commit is contained in:
parent
9dad9cf88d
commit
0080f55df2
@ -363,7 +363,7 @@ fn trans_mono_item<'clif, 'tcx, B: Backend + 'static>(
|
||||
}
|
||||
}
|
||||
|
||||
fn time<R>(sess: &Session, name: &str, f: impl FnOnce() -> R) -> R {
|
||||
fn time<R>(sess: &Session, name: &'static str, f: impl FnOnce() -> R) -> R {
|
||||
println!("[{}] start", name);
|
||||
let before = std::time::Instant::now();
|
||||
let res = sess.time(name, f);
|
||||
|
Loading…
Reference in New Issue
Block a user