mirror of
https://github.com/typst/typst
synced 2025-07-18 18:13:02 +08:00
Restore timing scopes for native show rules (#6616)
This commit is contained in:
parent
8e0e0f1a3b
commit
7897e86bcc
@ -374,9 +374,11 @@ fn visit_show_rules<'a>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apply a built-in show rule.
|
// Apply a built-in show rule.
|
||||||
ShowStep::Builtin(rule) => rule
|
ShowStep::Builtin(rule) => {
|
||||||
.apply(&output, s.engine, chained)
|
let _scope = typst_timing::TimingScope::new(output.elem().name());
|
||||||
.map(|content| content.spanned(output.span())),
|
rule.apply(&output, s.engine, chained)
|
||||||
|
.map(|content| content.spanned(output.span()))
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Errors in show rules don't terminate compilation immediately. We just
|
// Errors in show rules don't terminate compilation immediately. We just
|
||||||
|
Loading…
x
Reference in New Issue
Block a user