Box ast::path values

It seems inefficient to copy them around. Let's measure whether that's actually
> the case
This commit is contained in:
Marijn Haverbeke 2011-11-30 13:38:38 +01:00
parent 586a685eec
commit b40c6773c2
20 changed files with 102 additions and 103 deletions

View file

@ -161,10 +161,10 @@ fn constrs_str(constrs: [@constr]) -> str {
ret s;
}
fn ty_constr_to_str<Q>(c: @ast::spanned<ast::constr_general_<ast::path, Q>>)
fn ty_constr_to_str<Q>(c: @ast::spanned<ast::constr_general_<@ast::path, Q>>)
-> str {
ret path_to_str(c.node.path) +
constr_args_to_str::<ast::path>(path_to_str, c.node.args);
constr_args_to_str::<@ast::path>(path_to_str, c.node.args);
}
// Local Variables: