1
Fork 0

Remove uses of + mode from libstd

More or less the same as my analogous commit for libcore. Had
to remove the forbid(deprecated_modes) pragma from some files -- will
restore it after the snapshot.
This commit is contained in:
Tim Chevalier 2012-10-03 12:21:48 -07:00
parent 654b4d6987
commit f33539e446
21 changed files with 113 additions and 115 deletions

View file

@ -1,6 +1,6 @@
// Rust JSON serialization library
// Copyright (c) 2011 Google Inc.
#[forbid(deprecated_mode)];
// tjc: forbid deprecated modes again after snap
#[forbid(non_camel_case_types)];
//! json serialization
@ -370,7 +370,7 @@ priv impl Parser {
self.ch
}
fn error<T>(+msg: ~str) -> Result<T, Error> {
fn error<T>(msg: ~str) -> Result<T, Error> {
Err(Error { line: self.line, col: self.col, msg: @msg })
}