Fix build

This commit is contained in:
bjorn3 2020-01-11 14:27:26 +01:00
parent 9dad9cf88d
commit 0080f55df2

View file

@ -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);