about summary refs log tree commit diff
path: root/src/libsyntax/print
AgeCommit message (Collapse)AuthorLines
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-49/+49
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-1/+1
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-6/+6
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-12librustc: Make `self` and `static` into keywordsPatrick Walton-0/+1
2013-05-10Remove the '<->' operator from the languageAlex Crichton-6/+0
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-2/+2
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-4/+1
They're still parsed though, to get through bootstrapping.
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-28/+1
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-02Remove 'Local Variable' commentsBrendan Zabarauskas-21/+0
2013-05-01allow parsing attributes on struct fieldsErick Tryzelaar-0/+1
2013-05-01rustc: remove the rest of dropErick Tryzelaar-7/+0
Removes: ast::struct_def::dtor syntax::ast::ii_dtor syntax::visit::fk_dtor syntax::ast_map::node_dtor syntax:struct_dtor
2013-04-30new borrow checker (mass squash)Niko Matsakis-3/+9
2013-04-29librustc: Change labels to use the lifetime notation `'`.Patrick Walton-4/+13
2013-04-29librustc: Remove the concept of modes from the compiler.Patrick Walton-14/+0
This commit does not remove `ty::arg`, although that should be possible to do now.
2013-04-27only use #[no_core] in libcoreDaniel Micay-13/+0
2013-04-22auto merge of #6007 : pcwalton/rust/use-mod, r=brsonbors-4/+1
r? @brson
2013-04-22librustc: Remove `use mod` from the languagePatrick Walton-4/+1
2013-04-20syntax: remove unused 'mut' variablesAlex Crichton-4/+4
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-26/+26
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-1/+1
pub mod or pub fn).
2013-04-12auto merge of #5827 : ↵bors-0/+4
nikomatsakis/rust/issue-5656-change-meaning-of-borrowed-self, r=pcwalton See #5656 for details. r? @pcwalton
2013-04-10Issue #5656: Make &self not mean "&'self self"Niko Matsakis-0/+4
Fixes #5656. Fixes #5541.
2013-04-10syntax: match variants use 4 space indent by defaultErick Tryzelaar-8/+7
2013-04-10path -> PathJohn Clements-2/+2
2013-04-05Refactor so that references to traits are not represented using a type with aNiko Matsakis-2/+6
bare function store (which is not in fact a kind of value) but rather ty::TraitRef. Removes many uses of fail!() and other telltale signs of type-semantic mismatch. cc #4183 (not a fix, but related)
2013-03-31Fix warningsBrian Anderson-2/+1
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-17/+47
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-29librustc: Remove `fail_unless!`Patrick Walton-14/+14
2013-03-28Removing unused importsAlex Crichton-3/+3
2013-03-28auto merge of #5593 : luqmana/rust/inline-asm, r=catamorphismbors-6/+6
Clean things up a bit. Also, allow selecting intel syntax in addition to the default AT&T dialect.
2013-03-28librustc: Remove common fields and nested enums from the languagePatrick Walton-3/+0
2013-03-27auto merge of #5578 : erickt/rust/incoming, r=jbclements,ericktbors-28/+13
Hey folks, This patch series does some work on the json decoder, specifically with auto decoding of enums. Previously, we would take this code: ``` enum A { B, C(~str, uint) } ``` and would encode a value of this enum to either `["B", []]` or `["C", ["D", 123]]`. I've changed this to `"B"` or `["C", "D", 123]`. This matches the style of the O'Caml json library [json-wheel](http://mjambon.com/json-wheel.html). I've added tests to make sure all this work. In order to make this change, I added passing a `&[&str]` vec to `Decode::emit_enum_variant` so the json decoder can convert the name of a variant into it's position. I also changed the impl of `Encodable` for `Option<T>` to have the right upper casing. I also did some work on the parser, which allows for `fn foo<T: ::cmp::Eq>() { ... }` statements (#5572), fixed the pretty printer properly expanding `debug!("...")` expressions, and removed `ast::expr_vstore_fixed`, which doesn't appear to be used anymore.
2013-03-27libsyntax: use a struct for inline asm in ast.Luqman Aden-6/+6
2013-03-27auto merge of #5558 : nikomatsakis/rust/issue-4920-autoref-index-operator, ↵bors-3/+2
r=nikomatsakis Per discussion on IRC. r? @pcwalton
2013-03-27Fix pretty-printer test failure by carrying the bound lifetime names throughNiko Matsakis-3/+9
the types. Initially I thought it would be necessary to thread this data through not only the AST but the types themselves, but then I remembered that the pretty printer only cares about the AST. Regardless, I have elected to leave the changes to the types intact since they will eventually be needed. I left a few FIXMEs where it didn't seem worth finishing up since the code wasn't crucial yet.
2013-03-27syntax: Remove deprecated expr_vstore_fixedErick Tryzelaar-12/+3
2013-03-27syntax: fix pretty printing __log stmtsErick Tryzelaar-14/+8
2013-03-27syntax: pass some values around by referenceErick Tryzelaar-2/+2
2013-03-27remove sty_by_ref, though traces still remain due to dtorsNiko Matsakis-3/+2
2013-03-25rustdoc: Show puritySeo Sanghyeon-20/+11
2013-03-23libsyntax: Fix `static` in pretty printer. rs=burningtreePatrick Walton-10/+0
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-4/+4
2013-03-22auto merge of #5488 : pcwalton/rust/depure, r=pcwaltonbors-2/+2
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-2/+2
2013-03-22auto merge of #5483 : pcwalton/rust/static-syntax, r=graydonbors-1/+1
r? @nikomatsakis
2013-03-22syntax: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-21librustc: Replace the `&static` bound with `'static`Patrick Walton-1/+1
2013-03-21auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclementsbors-4/+3
Adds an assert_eq! macro that asserts that its two arguments are equal. Error messages can therefore be somewhat more informative than a simple assert, because the error message includes "expected" and "given" values.
2013-03-20change some uses of fail_unless to assert_eqJohn Clements-4/+3
2013-03-20libsyntax: Never use `::<>` in the type grammarPatrick Walton-6/+2