libsyntax: deny deprecated_self in libsyntax
This commit is contained in:
parent
b9d9157883
commit
690caf8ab8
@ -295,12 +295,16 @@ pub impl CodeMap {
|
||||
}
|
||||
|
||||
/// Add a new FileMap to the CodeMap and return it
|
||||
fn new_filemap(+filename: FileName, src: @~str) -> @FileMap {
|
||||
fn new_filemap(&self, +filename: FileName, src: @~str) -> @FileMap {
|
||||
return self.new_filemap_w_substr(filename, FssNone, src);
|
||||
}
|
||||
|
||||
fn new_filemap_w_substr(+filename: FileName, +substr: FileSubstr,
|
||||
src: @~str) -> @FileMap {
|
||||
fn new_filemap_w_substr(
|
||||
&self,
|
||||
+filename: FileName,
|
||||
+substr: FileSubstr,
|
||||
src: @~str
|
||||
) -> @FileMap {
|
||||
let start_pos = if self.files.len() == 0 {
|
||||
0
|
||||
} else {
|
||||
|
@ -900,8 +900,8 @@ fn new_span(@self, span: span) -> span {
|
||||
}
|
||||
|
||||
pub impl ast_fold {
|
||||
fn fold_attributes(attrs: ~[attribute]) -> ~[attribute] {
|
||||
attrs.map(|x| fold_attribute_(*x, self))
|
||||
fn fold_attributes(&self, attrs: ~[attribute]) -> ~[attribute] {
|
||||
attrs.map(|x| fold_attribute_(*x, *self))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#[allow(vecs_implicitly_copyable)];
|
||||
#[allow(non_camel_case_types)];
|
||||
#[allow(deprecated_mode)];
|
||||
#[allow(deprecated_self)];
|
||||
#[deny(deprecated_self)];
|
||||
|
||||
#[no_core];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user