John Gallagher
1426f5834c
Add abstract, final, and override to reserved keywords
2014-10-07 22:17:54 -04:00
bors
3b945dcae6
auto merge of #17787 : bgamari/rust/fix-quote-method, r=huonw
...
The previous fix introduced in 75d49c8203 neglected to parse outer attributes as described in #17782 .
2014-10-07 23:12:08 +00:00
Brian Anderson
2288f33230
Update html_root_url for 0.12.0 release
2014-10-07 11:18:50 -07:00
Vadim Chugunov
fc60797f7f
Fix the most egregious instances of "local ambiguity: multiple parsing options..." error in macros, which often occurs when trying to match parts of Rust syntax.
...
For example, this matcher: `fn $name:ident( $($param:ident : $pty:ty),* )` would fail when parsing `fn foo()`, because macro parser wouldn't realize that an ident cannot start with `)`.
This resolves #5902 , and at least partially mitigates #9364 and #3232 .
2014-10-07 02:13:05 -07:00
Nick Cameron
cd21e4a72c
Rename slice::Slice
2014-10-07 15:49:53 +13:00
Nick Cameron
2d3823441f
Put slicing syntax behind a feature gate.
...
[breaking-change]
If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07 15:49:53 +13:00
Nick Cameron
59976942ea
Use slice syntax instead of slice_to, etc.
2014-10-07 15:49:53 +13:00
Ben Gamari
a5a11a8ef0
syntax: Parse outer attributes in quote_method!
...
Fixes #17782 .
2014-10-06 10:53:05 -04:00
bors
0e2f0acf22
auto merge of #17781 : P1start/rust/bitflags-lints, r=alexcrichton
...
Closes #17773 .
2014-10-06 07:37:19 +00:00
P1start
8e58771965
Remove the #[allow(non_uppercase_statics)] attr from bitflags!
2014-10-06 16:43:34 +13:00
P1start
cc31d9cabc
Give a more descriptive error when marking non-test items as #[test]
...
Closes #14772 .
2014-10-05 14:16:32 +13:00
Felix Raimundo
e69f2ab8c0
Changed extern crate foo as bar; error message
...
Closes #17709
2014-10-04 19:51:22 +02:00
Björn Steinbrink
2d93a0406b
Register new snapshots
2014-10-04 15:44:50 +02:00
Alex Crichton
79d0e82f73
rollup merge of #17729 : alexcrichton/issue-17718-start
2014-10-03 07:38:29 -07:00
Alex Crichton
2a11f2b544
rollup merge of #17215 : P1start/lints
2014-10-03 07:38:12 -07:00
P1start
042cdeefc7
Correct error message for invalid ref/mut bindings
...
Closes #15914 .
2014-10-03 20:39:56 +13:00
P1start
94bcd3539c
Set the non_uppercase_statics lint to warn by default
2014-10-03 20:39:56 +13:00
bors
9a2286d3a1
auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichton
...
@steveklabnik, are you interested in looking this over?
2014-10-03 07:33:26 +00:00
Alex Crichton
7e22af3582
syntax: Enable parsing of const globals
...
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-02 19:37:06 -07:00
Alex Crichton
7ae802f57b
rollup merge of #17666 : eddyb/take-garbage-out
...
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-02 14:53:18 -07:00
Aaron Turon
d2ea0315e0
Revert "Use slice syntax instead of slice_to, etc."
...
This reverts commit 40b9f5ded5 .
2014-10-02 11:48:07 -07:00
Aaron Turon
7bf56df4c8
Revert "Put slicing syntax behind a feature gate."
...
This reverts commit 95cfc35607 .
2014-10-02 11:47:51 -07:00
Eduard Burtescu
aa59693565
syntax: remove ObsoleteManaged{Type,Expr}.
2014-10-02 17:02:04 +03:00
Eduard Burtescu
db55e70c97
syntax: mark the managed_boxes feature as Removed.
2014-10-02 17:02:03 +03:00
Eduard Burtescu
d1a57e479c
syntax: ast: remove TyBox and UnBox.
2014-10-02 16:36:01 +03:00
Eduard Burtescu
a99e626d07
syntax: remove unused imports of Gc and GC.
2014-10-02 16:36:01 +03:00
Nick Cameron
95cfc35607
Put slicing syntax behind a feature gate.
...
[breaking-change]
If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02 13:23:36 +13:00
Nick Cameron
40b9f5ded5
Use slice syntax instead of slice_to, etc.
2014-10-02 13:19:45 +13:00
Keegan McAllister
dfcfd008fa
Update some old references to rust.md
2014-10-01 13:21:52 -07:00
bors
b224dfe1a6
auto merge of #17678 : fhahn/rust/issue-17628-infinite-recursion, r=alexcrichton
...
This is a patch for #17628 , thanks to @kmcallister for your helpful hints!
2014-10-01 19:37:18 +00:00
Florian Hahn
49e976d771
Limit recursion depth for macro expansions, closes #17628
2014-10-01 11:46:04 +02:00
bors
ff2616e847
auto merge of #17630 : sfackler/rust/cfg-warnings, r=brson
...
Closes #17490
2014-10-01 09:22:15 +00:00
bors
60e7317345
auto merge of #17501 : pcwalton/rust/improve-method-lookup-autoderef, 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-01 07:22:18 +00:00
bors
2f15dcd4d3
auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
r? @nick29581
2014-10-01 03:17:24 +00:00
bors
57a05cf49b
auto merge of #17634 : jakub-/rust/if_let, r=kballard
...
Continuation of https://github.com/rust-lang/rust/pull/16741 .
2014-09-30 23:17:20 +00:00
Patrick Walton
496cc4c0d4
librustc: Fix up mutability in method autoderefs if incorrect, and
...
prefer `Deref` over `DerefMut` in all other circumstances.
Closes #12825 .
2014-09-30 14:38:04 -07:00
Steven Fackler
92013a849d
Turn on cfg format warnings
2014-09-30 12:52:00 -07:00
Jakub Wieczorek
5254ccc7c1
Update after the fall out from the syntax::ptr changes
2014-09-30 18:54:03 +02:00
Kevin Ballard
13e00e4a3d
Update based on PR feedback
2014-09-30 18:54:03 +02:00
Kevin Ballard
8a60952100
Move if let behind a feature gate
2014-09-30 18:54:03 +02:00
Kevin Ballard
976438f78f
Produce a better error for irrefutable if let patterns
...
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-30 18:54:02 +02:00
Kevin Ballard
0e6ff432dc
Desugar 'if let' into the appropriate 'match'
2014-09-30 18:54:02 +02:00
Kevin Ballard
5d8cfd53b5
Teach libsyntax about if let
2014-09-30 18:54:02 +02:00
Patrick Walton
416144b827
librustc: Forbid .. in range patterns.
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
[breaking-change]
2014-09-30 09:11:26 -07:00
Patrick Walton
78e2503db3
librustc: Stop looking in metadata in type contents.
...
4x improvement in pre-trans compile time for rustc.
2014-09-30 05:52:08 -07:00
Alex Crichton
7784a8d397
rollup merge of #17592 : kmcallister/inline-asm-loc
2014-09-29 08:14:23 -07:00
Alex Crichton
792e32bcfc
rollup merge of #17576 : kmcallister/hide-quotes
2014-09-29 08:12:51 -07:00
Alex Crichton
655b7269c8
rollup merge of #17519 : pcwalton/unboxed-closure-move-syntax
2014-09-29 08:10:44 -07:00
bors
40b86baca0
auto merge of #17409 : farcaller/rust/patch-1, r=huonw
...
Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
2014-09-29 10:08:04 +00:00
Vladimir Pouzanov
75d49c8203
Fixed quote_method!() implementation
...
Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
2014-09-29 09:45:36 +01:00