borrowck changes: some copies, some removed mut annotations, some dvec

This commit is contained in:
Niko Matsakis
2012-06-03 07:36:40 -07:00
parent c3b266f50f
commit 45680c83ab
5 changed files with 42 additions and 40 deletions

View File

@@ -1703,7 +1703,7 @@ fn print_comment(s: ps, cmnt: comments::cmnt) {
// We need to do at least one, possibly two hardbreaks.
let is_semi =
alt s.s.last_token() {
pp::STRING(s, _) { s == ";" }
pp::STRING(s, _) { *s == ";" }
_ { false }
};
if is_semi || is_begin(s) || is_end(s) { hardbreak(s.s); }