Make the new world order normative. Closes #2908.

This commit is contained in:
Michael Sullivan 2012-07-14 00:31:15 -07:00
parent 92743dc2a6
commit e2af785606
2 changed files with 1 additions and 10 deletions

View File

@ -654,21 +654,12 @@ class parser {
if self.token == token::BINOP(token::SLASH) {
self.bump();
alt copy self.token {
token::AT {
self.bump(); some(vstore_box)
}
token::TILDE {
self.bump(); some(vstore_uniq)
}
token::UNDERSCORE {
self.bump(); some(vstore_fixed(none))
}
token::LIT_INT_UNSUFFIXED(i) if i >= 0i64 {
self.bump(); some(vstore_fixed(some(i as uint)))
}
token::BINOP(token::AND) {
some(vstore_slice(self.parse_region()))
}
_ {
none
}

View File

@ -112,7 +112,7 @@ fn get_lint_dict() -> lint_dict {
(~"old_strs",
@{lint: old_strs,
desc: ~"old (deprecated) strings",
default: warn}),
default: error}),
(~"unrecognized_warning",
@{lint: unrecognized_warning,