mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Convert inline(always) to inline in CodegenRust and jstraceable.
This results in a 14% compile time improvement. See https://gist.github.com/brson/b48dd03b06c406be68e6
This commit is contained in:
parent
68d977c5f0
commit
172fbcad27
2 changed files with 11 additions and 11 deletions
|
@ -50,7 +50,7 @@ pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item:
|
|||
args: vec!(ty::Ptr(box ty::Literal(ty::Path::new(vec!("js","jsapi","JSTracer"))),
|
||||
ty::Raw(ast::MutMutable))),
|
||||
ret_ty: ty::nil_ty(),
|
||||
attributes: vec![quote_attr!(cx, #[inline(always)])],
|
||||
attributes: vec![quote_attr!(cx, #[inline])],
|
||||
is_unsafe: false,
|
||||
combine_substructure: combine_substructure(box jstraceable_substructure)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue