summary refs log tree commit diff
path: root/src/libsyntax/fold.rs
AgeCommit message (Collapse)AuthorLines
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-52/+52
2014-03-28De-@ TokenTree.Eduard Burtescu-3/+5
2014-03-27syntax: add a missing span rewrite in fold.Huon Wilson-1/+1
This was leaving Decls without the new spans; this is a minor change, since literally nothing reads in the code base reads the span of a Decl itself, always just its contents.
2014-03-22Migrate all users of opt_vec to owned_slice, delete opt_vec.Huon Wilson-5/+5
syntax::opt_vec is now entirely unused, and so can go.
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-2/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1/+1
Closes #12771
2014-03-18syntax: Don't parameterize the the pretty printerAlex Crichton-2/+2
The pretty printer constitues an enormous amount of code, there's no reason for it to be generic. This just least to a huge amount of metadata which isn't necessary. Instead, this change migrates the pretty printer to using a trait object instead. Closes #12985
2014-03-17Fix rustdoc and tests.Eduard Burtescu-5/+7
2014-03-15rustc: Remove compiler support for __log_level()Alex Crichton-1/+0
This commit removes all internal support for the previously used __log_level() expression. The logging subsystem was previously modified to not rely on this magical expression. This also removes the only other function to use the module_data map in trans, decl_gc_metadata. It appears that this is an ancient function from a GC only used long ago. This does not remove the crate map entirely, as libgreen still uses it to hook in to the event loop provided by libgreen.
2014-03-12Changed lists of lifetimes in ast and ty to use Vec instead of OptVec.Felix S. Klock II-2/+2
There is a broader revision (that does this across the board) pending in #12675, but that is awaiting the arrival of more data (to decide whether to keep OptVec alive by using a non-Vec internally). For this code, the representation of lifetime lists needs to be the same in both ScopeChain and in the ast and ty structures. So it seemed cleanest to just use `vec_ng::Vec`, now that it has a cheaper empty representation than the current `vec` code.
2014-03-12alpha-rename .ident to .name in Lifetime, including in rustdoc.Felix S. Klock II-1/+1
2014-03-07rename ast::ViewItemExternMod to ast::ViewItemExternCrate, and ↵Liigo Zhuang-2/+2
clean::ExternMod to clean::ExternCrate
2014-03-03syntax: make match arms store the expr directly.Huon Wilson-2/+1
Previously `ast::Arm` was always storing a single `ast::Expr` wrapped in an `ast::Block` (for historical reasons, AIUI), so we might as just store that expr directly. Closes #3085.
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-11/+13
2014-03-01libsyntax: Mechanically change `~[T]` to `Vec<T>`Patrick Walton-4/+4
2014-02-26Replace callee_id with information stored in method_map.Eduard Burtescu-14/+9
2014-02-23Make break and continue hygienicEdward Wang-2/+20
Makes labelled loops hygiene by performing renaming of the labels defined in e.g. `'x: loop { ... }` and then used in break and continue statements within loop body so that they act hygienically when used with macros. Closes #12262.
2014-02-14Removed the obsolete ast::CallSugar (previously used by `do`).Eduard Burtescu-7/+4
2014-02-14Refactored ast_map and friends, mainly to have Paths without storing them.Eduard Burtescu-13/+22
2014-02-13Replace `crate` usage with `krate`Flavio Percoco-2/+2
This patch replaces all `crate` usage with `krate` before introducing the new keyword. This ensures that after introducing the keyword, there won't be any compilation errors. krate might not be the most expressive substitution for crate but it's a very close abbreviation for it. `module` was already used in several places already.
2014-02-11syntax/fold -- remove conflicting (and rather pointless) closuresNiko Matsakis-18/+7
2014-02-07Removed @self and @Trait.Eduard Burtescu-1/+1
2014-02-03syntax: Remove usage of io_error in testsAlex Crichton-2/+4
2014-02-02libsyntax: Fix tests.Patrick Walton-3/+5
2014-02-02librustc: Fix merge fallout.Patrick Walton-5/+3
2014-02-02libsyntax: Remove all `@str` from the ASTPatrick Walton-2/+6
2014-02-02libsyntax: De-`@str` literal strings in the ASTPatrick Walton-1/+3
2014-02-02libsyntax: Introduce an `InternedString` type to reduce `@str` in thePatrick Walton-7/+4
compiler and use it for attributes
2014-01-30Implement default type parameters in generics.Eduard Burtescu-0/+1
2014-01-29Removing support for the do syntax from libsyntax and librustc.Scott Lawrence-1/+0
Fixes #10815.
2014-01-27Demote self to an (almost) regular argument and remove the env param.Eduard Burtescu-7/+2
Fixes #10667 and closes #10259.
2014-01-16Load macros from external modulesSteven Fackler-14/+23
2014-01-14auto merge of #11485 : eddyb/rust/sweep-old-rust, r=nikomatsakisbors-1/+1
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-1/+0
2014-01-12Removed remnants of `@mut` and `~mut` from comments and the type system.Eduard Burtescu-1/+1
2014-01-09auto merge of #11055 : pcwalton/rust/placement-box, r=pcwaltonbors-0/+3
r? @nikomatsakis
2014-01-09librustc: Implement placement `box` for GC and unique pointers.Patrick Walton-0/+3
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-163/+153
2014-01-06Disowned the Visitor.Eduard Burtescu-129/+134
2014-01-03libsyntax: Fix tests.Patrick Walton-1/+1
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-1/+1
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-2/+0
2013-12-29Make ast_fold take &mut selfSteven Fackler-64/+64
2013-12-17Remove obsolete mutability from ast::TySeo Sanghyeon-4/+4
2013-12-08Remove dead codesKiet Tran-22/+0
2013-12-01auto merge of #10750 : Blei/rust/no-at-struct-field, r=alexcrichtonbors-6/+6
2013-12-01ast: Remove one `@` and fix the falloutPhilipp Brüschweiler-6/+6
2013-12-01Box Block, fn_decl, variant and Ty in the AST, as they were inflating ↵Eduard Burtescu-47/+47
critical enum sizes.
2013-11-27Freeze the AST by removing a couple of unused @mut ~[T] from token_tree.Eduard Burtescu-3/+3
2013-11-26Support multiple item macrosSteven Fackler-31/+22
Closes #4375