File tree 3 files changed +10
-6
lines changed 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -295,12 +295,16 @@ pub impl CodeMap {
295
295
}
296
296
297
297
/// Add a new FileMap to the CodeMap and return it
298
- fn new_filemap( +filename : FileName , src: @~str ) -> @FileMap {
298
+ fn new_filemap( & self , +filename : FileName , src: @~str ) -> @FileMap {
299
299
return self . new_filemap_w_substr( filename, FssNone , src) ;
300
300
}
301
301
302
- fn new_filemap_w_substr( +filename : FileName , +substr : FileSubstr ,
303
- src: @~str ) -> @FileMap {
302
+ fn new_filemap_w_substr(
303
+ & self ,
304
+ +filename : FileName ,
305
+ +substr : FileSubstr ,
306
+ src: @~str
307
+ ) -> @FileMap {
304
308
let start_pos = if self . files. len( ) == 0 {
305
309
0
306
310
} else {
Original file line number Diff line number Diff line change @@ -900,8 +900,8 @@ impl ast_fold for AstFoldFns {
900
900
}
901
901
902
902
pub impl ast_fold {
903
- fn fold_attributes ( attrs : ~[ attribute ] ) -> ~[ attribute ] {
904
- attrs. map( |x| fold_attribute_( * x, self ) )
903
+ fn fold_attributes ( & self , attrs : ~[ attribute ] ) -> ~[ attribute ] {
904
+ attrs. map( |x| fold_attribute_( * x, * self ) )
905
905
}
906
906
}
907
907
Original file line number Diff line number Diff line change 22
22
#[allow(vecs_implicitly_copyable)];
23
23
#[allow(non_camel_case_types)];
24
24
#[allow(deprecated_mode)];
25
- #[allow (deprecated_self)];
25
+ #[deny (deprecated_self)];
26
26
27
27
#[no_core];
28
28
You can’t perform that action at this time.
0 commit comments