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:
parent
654b4d6987
commit
f33539e446
21 changed files with 113 additions and 115 deletions
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue