about summary refs log tree commit diff
path: root/src/libsyntax/ast_util.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-1/+1
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-10syntax: Use the new `for` protocolAlex Crichton-0/+9
2013-05-09libsyntax: rename vec::each(var) to var.eachYoungmin Yoo-1/+1
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-1/+1
They're still parsed though, to get through bootstrapping.
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-41/+7
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-03rustc: Handle struct patterns where the expected type is an enumTim Chevalier-3/+3
Previously, rustc would ICE if you matched on an enum-typed thing with a structure pattern. Error out correctly.
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-8/+0
2013-05-01auto merge of #6148 : erickt/rust/remove-drop, r=pcwaltonbors-27/+1
The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work. As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.
2013-05-01remove some warningsErick Tryzelaar-1/+1
2013-05-01rustc: remove the rest of dropErick Tryzelaar-26/+0
Removes: ast::struct_def::dtor syntax::ast::ii_dtor syntax::visit::fk_dtor syntax::ast_map::node_dtor syntax:struct_dtor
2013-05-01Revert rename of Div to QuotBrendan Zabarauskas-3/+3
2013-04-30new borrow checker (mass squash)Niko Matsakis-7/+17
2013-04-29librustc: Remove the concept of modes from the compiler.Patrick Walton-1/+1
This commit does not remove `ty::arg`, although that should be possible to do now.
2013-04-28get rid of prec.rsJohn Clements-0/+4
prec.rs no longer had much to do with precedence; the token->binop function fits better in token.rs, and the one-liner defining the precedence of 'as' can go next to the other precedence stuff in ast_util.rs
2013-04-28simplify, based on invariant that items_allowed != foreign_items_allowedJohn Clements-1/+0
2013-04-27only use #[no_core] in libcoreDaniel Micay-7/+0
2013-04-22librustc: Remove `use mod` from the languagePatrick Walton-2/+3
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-4/+4
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-11/+11
2013-04-16added MTWT functionsJohn Clements-0/+275
2013-04-10path -> PathJohn Clements-3/+3
2013-04-05Rather than storing a list of ty::method per trait, store one ty::methodNiko Matsakis-1/+1
per method and list of def-ids per trait.
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-24/+23
2013-03-22syntax: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-1/+1
2013-03-11Implement vector destructuring from tailSeo Sanghyeon-4/+7
2013-03-07librustc: Remove record patterns from the compilerPatrick Walton-1/+1
2013-03-05core: convert vec::{last,last_opt} to return referencesErick Tryzelaar-1/+1
2013-03-05auto merge of #5212 : thestinger/rust/iter, r=graydonbors-1/+1
A small step towards fixing #2827
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-03-03replace option::iter with a BaseIter implDaniel Micay-1/+1
2013-03-02libsyntax: Remove `fn@`, `fn~`, and `fn&` from libsyntax. rs=defunPatrick Walton-53/+22
2013-03-01Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-1/+1
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-1/+1
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-15/+28
2013-02-27auto merge of #5141 : nikomatsakis/rust/region-syntax-expl-lifetimes, ↵bors-16/+29
r=nikomatsakis Major changes are: - replace ~[ty_param] with Generics structure, which includes both OptVec<TyParam> and OptVec<Lifetime>; - the use of syntax::opt_vec to avoid allocation for empty lists; cc #4846 r? @graydon
2013-02-27Introduce lifetime declarations into the lists of type parameters.Niko Matsakis-16/+29
Major changes are: - replace ~[ty_param] with Generics structure, which includes both OptVec<TyParam> and OptVec<Lifetime>; - the use of syntax::opt_vec to avoid allocation for empty lists; cc #4846
2013-02-27Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-2/+2
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-2/+2
2013-02-25libsyntax: add some explicit copiesErick Tryzelaar-2/+2
2013-02-25libsyntax: progress on making syntax::visit vecs_implicitly_copyable-freeErick Tryzelaar-10/+10
2013-02-25libsyntax: convert visit to pass ty_params by referenceErick Tryzelaar-23/+22
2013-02-20librustc: Get rid of structural records save for front/test.rs.Luqman Aden-2/+2
2013-02-19libsyntax: make enum variants take refsErick Tryzelaar-2/+2
2013-02-17libsyntax: Update view_item_use/import to reflect actual usageLuqman Aden-2/+2
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-2/+2
slipped through. r=tjc
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-3/+3
2013-02-04libsyntax: Add explicit self to ast_util. rs=explicit-selfingPatrick Walton-22/+22