about summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2014-10-07auto merge of #17787 : bgamari/rust/fix-quote-method, r=huonwbors-7/+9
The previous fix introduced in 75d49c8203405ab0af7a2b8b8698af02868fdbc2 neglected to parse outer attributes as described in #17782.
2014-10-07Rename slice::SliceNick Cameron-1/+1
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-1/+8
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07Use slice syntax instead of slice_to, etc.Nick Cameron-2/+2
2014-10-06syntax: Parse outer attributes in quote_method!Ben Gamari-7/+9
Fixes #17782.
2014-10-06auto merge of #17781 : P1start/rust/bitflags-lints, r=alexcrichtonbors-19/+19
Closes #17773.
2014-10-06Remove the #[allow(non_uppercase_statics)] attr from bitflags!P1start-19/+19
2014-10-05Give a more descriptive error when marking non-test items as #[test]P1start-12/+25
Closes #14772.
2014-10-04Register new snapshotsBjörn Steinbrink-6/+2
2014-10-03rollup merge of #17729 : alexcrichton/issue-17718-startAlex Crichton-3/+21
2014-10-03rollup merge of #17215 : P1start/lintsAlex Crichton-5/+15
2014-10-03Correct error message for invalid `ref`/`mut` bindingsP1start-3/+4
Closes #15914.
2014-10-03Set the `non_uppercase_statics` lint to warn by defaultP1start-2/+11
2014-10-03auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichtonbors-1/+1
@steveklabnik, are you interested in looking this over?
2014-10-02syntax: Enable parsing of `const` globalsAlex Crichton-3/+21
This rewrites them to the current `ItemStatic` production of the compiler, but I want to get this into a snapshot. It will be illegal to use a `static` in a pattern of a `match` statement, so all those current uses will need to be rewritten to `const` once it's implemented. This requires that the stage0 snapshot is able to parse `const`. cc #17718
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-55/+4
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-2/+2
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-8/+1
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02syntax: remove ObsoleteManaged{Type,Expr}.Eduard Burtescu-24/+0
2014-10-02syntax: mark the managed_boxes feature as Removed.Eduard Burtescu-1/+1
2014-10-02syntax: ast: remove TyBox and UnBox.Eduard Burtescu-31/+5
2014-10-02syntax: remove unused imports of Gc and GC.Eduard Burtescu-1/+0
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-1/+8
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-2/+2
2014-10-01Update some old references to rust.mdKeegan McAllister-1/+1
2014-10-01auto merge of #17678 : fhahn/rust/issue-17628-infinite-recursion, r=alexcrichtonbors-0/+12
This is a patch for #17628, thanks to @kmcallister for your helpful hints!
2014-10-01Limit recursion depth for macro expansions, closes #17628Florian Hahn-0/+12
2014-10-01auto merge of #17630 : sfackler/rust/cfg-warnings, r=brsonbors-9/+0
Closes #17490
2014-10-01auto merge of #17501 : pcwalton/rust/improve-method-lookup-autoderef, ↵bors-0/+5
r=nikomatsakis prefer `Deref` over `DerefMut` in all other circumstances. Because the compiler now prefers `Deref`, this can break code that looked like: let mut foo = bar.borrow_mut(); (*foo).call_something_that_requires_mutable_self(); Replace this code with: let mut foo = bar.baz(); (&mut *foo).call_something_that_requires_mutable_self(); Closes #12825. [breaking-change] r? @nikomatsakis
2014-10-01auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581bors-9/+4
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. r? @nick29581
2014-09-30auto merge of #17634 : jakub-/rust/if_let, r=kballardbors-22/+186
Continuation of https://github.com/rust-lang/rust/pull/16741.
2014-09-30librustc: Fix up mutability in method autoderefs if incorrect, andPatrick Walton-0/+5
prefer `Deref` over `DerefMut` in all other circumstances. Closes #12825.
2014-09-30Turn on cfg format warningsSteven Fackler-9/+0
2014-09-30Update after the fall out from the syntax::ptr changesJakub Wieczorek-30/+36
2014-09-30Update based on PR feedbackKevin Ballard-22/+20
2014-09-30Move `if let` behind a feature gateKevin Ballard-0/+6
2014-09-30Produce a better error for irrefutable `if let` patternsKevin Ballard-10/+17
Modify ast::ExprMatch to include a new value of type ast::MatchSource, making it easy to tell whether the match was written literally or produced via desugaring. This allows us to customize error messages appropriately.
2014-09-30Desugar 'if let' into the appropriate 'match'Kevin Ballard-1/+90
2014-09-30Teach libsyntax about `if let`Kevin Ballard-13/+71
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-9/+4
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-30librustc: Stop looking in metadata in type contents.Patrick Walton-2/+2
4x improvement in pre-trans compile time for rustc.
2014-09-29rollup merge of #17592 : kmcallister/inline-asm-locAlex Crichton-6/+33
2014-09-29rollup merge of #17576 : kmcallister/hide-quotesAlex Crichton-67/+55
2014-09-29rollup merge of #17519 : pcwalton/unboxed-closure-move-syntaxAlex Crichton-33/+34
2014-09-29auto merge of #17409 : farcaller/rust/patch-1, r=huonwbors-2/+6
Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
2014-09-29Fixed quote_method!() implementationVladimir Pouzanov-2/+6
Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
2014-09-28Keep ExpnId abstract by providing conversionsKeegan McAllister-5/+18
2014-09-28auto merge of #17527 : sfackler/rust/cfg-syntax, r=alexcrichtonbors-35/+72
We'll need a snapshot before we can convert the codebase over and turn on the deprecation warnings. cc #17490 This is sitting on top of #17506
2014-09-27Convert cfg syntax to new systemSteven Fackler-35/+72
This removes the ability to use `foo(bar)` style cfgs. Switch them to `foo_bar` or `foo="bar"` instead. [breaking-change]
2014-09-27Translate inline assembly errors back to source locationsKeegan McAllister-5/+19
Fixes #17552.