diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:42:21 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:42:21 -0500 |
| commit | 56dcbd17fdad5d39b7b02e22a7490d2468718d08 (patch) | |
| tree | b846c1e3a491e54feca36375f4894e5cc882528e /src/libsyntax | |
| parent | c6c786671d692d7b13c2e5c68a53001327b4b125 (diff) | |
| download | rust-56dcbd17fdad5d39b7b02e22a7490d2468718d08.tar.gz rust-56dcbd17fdad5d39b7b02e22a7490d2468718d08.zip | |
sed -i -s 's/\bmod,/self,/g' **/*.rs
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_map/mod.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/ext/deriving/generic/mod.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 10 | ||||
| -rw-r--r-- | src/libsyntax/ptr.rs | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/libsyntax/ast_map/mod.rs b/src/libsyntax/ast_map/mod.rs index b1799fc2718..ea61415d61f 100644 --- a/src/libsyntax/ast_map/mod.rs +++ b/src/libsyntax/ast_map/mod.rs @@ -20,13 +20,13 @@ use fold::Folder; use parse::token; use print::pprust; use ptr::P; -use visit::{mod, Visitor}; +use visit::{self, Visitor}; use arena::TypedArena; use std::cell::RefCell; use std::fmt; use std::io::IoResult; -use std::iter::{mod, repeat}; +use std::iter::{self, repeat}; use std::mem; use std::slice; diff --git a/src/libsyntax/ext/deriving/generic/mod.rs b/src/libsyntax/ext/deriving/generic/mod.rs index acfb020fab6..55443dedfca 100644 --- a/src/libsyntax/ext/deriving/generic/mod.rs +++ b/src/libsyntax/ext/deriving/generic/mod.rs @@ -196,7 +196,7 @@ use attr; use attr::AttrMetaMethods; use ext::base::ExtCtxt; use ext::build::AstBuilder; -use codemap::{mod, DUMMY_SP}; +use codemap::{self, DUMMY_SP}; use codemap::Span; use fold::MoveMap; use owned_slice::OwnedSlice; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e2f86f8fd39..95badb5df25 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -65,8 +65,8 @@ use ast::{ViewItem, ViewItem_, ViewItemExternCrate, ViewItemUse}; use ast::{ViewPath, ViewPathGlob, ViewPathList, ViewPathSimple}; use ast::{Visibility, WhereClause}; use ast; -use ast_util::{mod, as_prec, ident_to_path, operator_prec}; -use codemap::{mod, Span, BytePos, Spanned, spanned, mk_sp, DUMMY_SP}; +use ast_util::{self, as_prec, ident_to_path, operator_prec}; +use codemap::{self, Span, BytePos, Spanned, spanned, mk_sp, DUMMY_SP}; use diagnostic; use ext::tt::macro_parser; use parse; @@ -75,7 +75,7 @@ use parse::classify; use parse::common::{SeqSep, seq_sep_none, seq_sep_trailing_allowed}; use parse::lexer::{Reader, TokenAndSpan}; use parse::obsolete::*; -use parse::token::{mod, MatchNt, SubstNt, InternedString}; +use parse::token::{self, MatchNt, SubstNt, InternedString}; use parse::token::{keywords, special_idents}; use parse::{new_sub_parser_from_file, ParseSess}; use print::pprust; diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 64eb4192bf0..8e5766bdacc 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -11,7 +11,7 @@ pub use self::AnnNode::*; use abi; -use ast::{mod, FnUnboxedClosureKind, FnMutUnboxedClosureKind}; +use ast::{self, FnUnboxedClosureKind, FnMutUnboxedClosureKind}; use ast::{FnOnceUnboxedClosureKind}; use ast::{MethodImplItem, RegionTyParamBound, TraitTyParamBound, TraitBoundModifier}; use ast::{RequiredMethod, ProvidedMethod, TypeImplItem, TypeTraitItem}; @@ -19,17 +19,17 @@ use ast::{UnboxedClosureKind}; use ast_util; use owned_slice::OwnedSlice; use attr::{AttrMetaMethods, AttributeMethods}; -use codemap::{mod, CodeMap, BytePos}; +use codemap::{self, CodeMap, BytePos}; use diagnostic; -use parse::token::{mod, BinOpToken, Token}; +use parse::token::{self, BinOpToken, Token}; use parse::lexer::comments; use parse; -use print::pp::{mod, break_offset, word, space, zerobreak, hardbreak}; +use print::pp::{self, break_offset, word, space, zerobreak, hardbreak}; use print::pp::{Breaks, Consistent, Inconsistent, eof}; use ptr::P; use std::{ascii, mem}; -use std::io::{mod, IoResult}; +use std::io::{self, IoResult}; use std::iter; pub enum AnnNode<'a> { diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index a989b323723..6eee1d903ea 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -36,7 +36,7 @@ //! implementation changes (using a special thread-local heap, for example). //! Moreover, a switch to, e.g. `P<'a, T>` would be easy and mostly automated. -use std::fmt::{mod, Show}; +use std::fmt::{self, Show}; use std::hash::Hash; use std::ops::Deref; use std::ptr; |
