Commit Graph

32490 Commits

Author SHA1 Message Date
Florian Hahn
89b09440d8 Allow syntax extensions to return multiple items, closes #16723.
This patch replaces `MacItem` with `MacItems`.
2014-09-19 11:10:54 +02:00
Ahmed Charles
0f6cbcaa88 Move uses of enum to bitflags!.
There are still others, but this is the first batch.
2014-09-18 20:35:24 -07:00
Nick Cameron
ce0907e46e Add enum variants to the type namespace
Change to resolve and update compiler and libs for uses.

[breaking-change]

Enum variants are now in both the value and type namespaces. This means that
if you have a variant with the same name as a type in scope in a module, you
will get a name clash and thus an error. The solution is to either rename the
type or the variant.
2014-09-19 15:11:00 +12:00
Nick Cameron
cf9c586fcc reviewer changes 2014-09-19 14:30:54 +12:00
Brian Anderson
0a83d02efc Ignore two gdb tests on windows that are failing on the bots 2014-09-18 18:35:41 -07:00
Patrick Walton
7c00d77e8b librustc: Implement the syntax in the RFC for unboxed closure sugar.
Part of issue #16640. I am leaving this issue open to handle parsing of
higher-rank lifetimes in traits.

This change breaks code that used unboxed closures:

* Instead of `F:|&: int| -> int`, write `F:Fn(int) -> int`.

* Instead of `F:|&mut: int| -> int`, write `F:FnMut(int) -> int`.

* Instead of `F:|: int| -> int`, write `F:FnOnce(int) -> int`.

[breaking-change]
2014-09-18 16:31:58 -07:00
Patrick Walton
5aa264a14f libsyntax: Disallow keywords followed by ::.
This breaks code that looked like:

    mymacro!(static::foo);

... where `mymacro!` expects a path or expression. Change such macros to
not accept keywords followed by `::`.

Closes #17298.

[breaking-change]
2014-09-18 16:26:47 -07:00
Nick Cameron
31a7e38759 Implement slicing syntax.
`expr[]`, `expr[expr..]`, `expr[..expr]`,`expr[expr..expr]`

Uses the Slice and SliceMut traits.

Allows ... as well as .. in range patterns.
2014-09-19 11:15:49 +12:00
bors
af3889f697 auto merge of #17330 : brson/rust/bot-house-cleaning, r=alexcrichton
Both these things were transitionary until bot upgrades.
2014-09-18 21:20:38 +00:00
Patrick Walton
9c41064308 jemalloc: Un-revert accidentally reverted jemalloc 2014-09-18 13:40:15 -07:00
Julian Orth
39116d0191 fix for vim < 7.4.355 2014-09-18 22:16:47 +02:00
Brian Anderson
d53f80dcd6 mk: Remove check-fast target 2014-09-18 11:49:03 -07:00
Brian Anderson
48b5378b5a configure: Remove support for i686-pc-mingw32 triple 2014-09-18 11:49:03 -07:00
bors
482e7788c7 auto merge of #17249 : vadimcn/rust/env-keys, r=alexcrichton
Closes #16937
2014-09-18 17:05:35 +00:00
Daniel Micay
360a29d9c9 stop disabling ASLR in normal Windows builds
Closes #16514
2014-09-18 12:58:48 -04:00
klutzy
0d70d57617 std::rt::backtrace: Fix backtrace on Win64
`struct CONTEXT` and its substructs require 16-byte alignment.
2014-09-18 22:53:38 +09:00
gamazeps
50d179d001 Doc says to avoid mixing allocator instead of forbiding it 2014-09-18 14:16:26 +02:00
Eduard Burtescu
74b8868b5f rustc: remove Gc<Def> and depth from DefUpvar. 2014-09-18 14:36:36 +03:00
Eduard Burtescu
7c5df404b0 rustc: move freevar finding to resolve. 2014-09-18 14:36:36 +03:00
Eduard Burtescu
5c192ae123 rustc: move type definitions from middle::freevars to middle::ty. 2014-09-18 14:36:36 +03:00
Eduard Burtescu
6536a0c0d6 rustc: add a closure depth to DefUpvar. 2014-09-18 14:36:36 +03:00
Eduard Burtescu
6543c5b9a4 rustc: remove BindingMode from DefLocal. 2014-09-18 14:36:35 +03:00
Eduard Burtescu
1813b8cf55 rustc: remove DefArg and DefBinding in favor of DefLocal. 2014-09-18 14:36:35 +03:00
Eduard Burtescu
f1a8f53cf1 Fix fallout in tests from removing the use of Gc in ExpnInfo. 2014-09-18 14:36:18 +03:00
Eduard Burtescu
e35e47f5c1 rustc: fix fallout from removing the use of Gc for ExpnInfo. 2014-09-18 14:36:18 +03:00
Eduard Burtescu
07f4fda598 syntax: use an index in CodeMap instead of Gc for ExpnInfo. 2014-09-18 14:36:18 +03:00
bors
d485e87c57 auto merge of #17364 : thestinger/rust/debuginfo, r=pnkfelix
Closes #13611
2014-09-18 11:05:38 +00:00
gamazeps
6a37692ecb Document that CStrings live in the libc heap
Closes issue #17067 and improves pr #17355
2014-09-18 12:13:30 +02:00
bors
49dd8e8c36 auto merge of #17349 : aturon/rust/rt-experimental, r=alexcrichton
The `std::rt` module was marked `unstable` [a while back](b6d4d117f4), and this change was not reverted when we moved to an `experimental` baseline for `std`.
2014-09-18 08:25:38 +00:00
Vadim Chugunov
8b84911120 Pacify lint gods. 2014-09-17 23:40:27 -07:00
bors
35be9b817d auto merge of #17341 : alexcrichton/rust/unignore, r=brson
I've confirmed that these are working on the snapshot builders

Closes #16919
2014-09-18 05:50:38 +00:00
Daniel Micay
98fff20a7c stop clamping the DWARF version to 3 on Linux
Closes #13611
2014-09-18 01:10:12 -04:00
bors
28407b6ff0 auto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brson
Everyone agreed.  Fix #17064, fix #17072 

@brson OK?
2014-09-18 03:20:39 +00:00
Stuart Pernsteiner
ed476b02a6 support LTO against libraries built with codegen-units > 1 2014-09-17 16:58:20 -07:00
bors
9508faa227 auto merge of #16377 : pcwalton/rust/associated-items, r=nikomatsakis
This is waiting on an RFC, but this basic functionality should be
straightforward. The implementation essentially desugars during type
collection and AST type conversion time into the parameter scheme we
have now.

r? @nikomatsakis
2014-09-17 23:45:36 +00:00
Patrick Walton
78a841810e librustc: Implement associated types behind a feature gate.
The implementation essentially desugars during type collection and AST
type conversion time into the parameter scheme we have now. Only fully
qualified names--e.g. `<T as Foo>::Bar`--are supported.
2014-09-17 16:38:57 -07:00
Felix Raimundo
9ce2c51c46 Document that CStrings live in the libc heap
Insists on the fact that the memory is managed by malloc
and not jemalloc
Closes #17067
2014-09-18 00:35:26 +02:00
bors
8067f4425d auto merge of #17331 : kballard/rust/rust_log_pattern_inverted, r=alexcrichton
RUST_LOG supports regex filtering of log messages with a syntax like
`RUST_LOG=main/foo` to use the regex filter 'foo'. Unfortunately, the
filter was inverted, so `RUST_LOG=main/foo` would actually show all
messages except the ones containing 'foo'.
2014-09-17 21:15:38 +00:00
Kevin Ballard
e7b257089c Fix the inverted RUST_LOG filter
RUST_LOG supports regex filtering of log messages with a syntax like
`RUST_LOG=main/foo` to use the regex filter 'foo'. Unfortunately, the
filter was inverted, so `RUST_LOG=main/foo` would actually show all
messages except the ones containing 'foo'.
2014-09-17 13:26:26 -07:00
Pablo Brasero
17674e02fc Fix warning and make code follow the text better 2014-09-17 21:05:16 +01:00
Aaron Turon
4ef9e1eca2 Remove unstable marker from std::rt
The `std::rt` module was marked `unstable` [a while
back](b6d4d117f4),
and this change was not reverted when we moved to an `experimental`
baseline for `std`.
2014-09-17 11:55:07 -07:00
bors
b88d1030e1 auto merge of #17343 : alexcrichton/rust/rollup, r=alexcrichton 2014-09-17 18:26:14 +00:00
Keegan McAllister
5b42f79ff0 Pop the expansion context after expanding a method macro
We were leaving these on the stack, causing spurious backtraces.

I've confirmed that this test fails without the fix.
2014-09-17 11:18:53 -07:00
Keegan McAllister
f85e4f75b9 Add a forbid-output property in cfail tests 2014-09-17 11:18:14 -07:00
Alex Crichton
3a54a4ee6b Test fixes from the rollup 2014-09-17 09:37:39 -07:00
bors
4d2af38611 auto merge of #16836 : P1start/rust/closure_ret_bang, r=alexcrichton
Fixes #13490.
2014-09-17 15:51:11 +00:00
Alex Crichton
665e759d5a rollup merge of #17333 : mo/drop_unused_diagnostic_codes 2014-09-17 08:50:16 -07:00
Alex Crichton
60d2689ab2 rollup merge of #17329 : alexcrichton/snapshots 2014-09-17 08:50:05 -07:00
Alex Crichton
3cf43aeb4f rollup merge of #17326 : brson/wintest 2014-09-17 08:50:04 -07:00
Alex Crichton
4a7665c808 rollup merge of #17312 : Manishearth/builtin-shrink 2014-09-17 08:49:46 -07:00