Ms2ger
b093060c2a
Stop re-exporting AttrStyle's variants and rename them.
2015-10-01 18:03:34 +02:00
Vadim Petrochenkov
f284cbc7af
Cleanup interfaces of Name, SyntaxContext and Ident
...
Make sure Name, SyntaxContext and Ident are passed by value
Make sure Idents don't serve as keys (or parts of keys) in maps, Ident comparison is not well defined
2015-09-24 23:05:02 +03:00
Simonas Kazlauskas
f5a99ae7fb
Remove Visibility field from enum variants
...
Followup on #28440
2015-09-17 10:02:59 +03:00
Sean McArthur
cfcd449c4c
rustc: rename multiple imports in a list
2015-08-08 11:54:15 -07:00
Alex Crichton
5cccf3cd25
syntax: Implement #![no_core]
...
This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of
the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The
`#![no_std]` attribute now injects `extern crate core` at the top of the crate
as well as the libcore prelude into all modules (in the same manner as the
standard library's prelude). The `#![no_core]` attribute disables both std and
core injection.
[rfc]: https://github.com/rust-lang/rfcs/pull/1184
2015-08-03 17:23:01 -07:00
Oliver Schneider
00a5e66f81
remove get_ident
and get_name
, make as_str
sound
2015-07-28 18:07:20 +02:00
mitaa
adfdbc4bd7
Remove ast::LocalSource
with only one used variant
...
`LocalSource` indicated wether a let binding originated from for-loop desugaring to enable specialized error messages, but for-loop expansion has changed and this is now achieved through `MatchSource::ForLoopDesugar`.
2015-07-26 08:56:29 +02:00
Eduard Burtescu
af3795721c
syntax: parse const fn
for free functions and inherent methods.
2015-05-21 11:47:30 -04:00
Manish Goregaokar
5892b40859
Rename AstBuilder::expr_int -> AstBuilder::expr_isize
2015-05-02 13:57:58 +05:30
Ryan Prichard
ef25b7d538
Change the rt::unwind line argument type from usize to u32.
2015-04-11 02:46:57 -07:00
Alex Crichton
54f16b818b
rustc: Remove support for int/uint
...
This commit removes all parsing, resolve, and compiler support for the old and
long-deprecated int/uint types.
2015-03-25 16:39:00 -07:00
Eduard Burtescu
d31b9ebef5
Implement <T>::method
UFCS expression syntax.
2015-02-24 14:16:02 +02:00
Eduard Burtescu
ffb8092ccf
syntax: use a single Path for Trait::Item in QPath.
2015-02-24 14:14:16 +02:00
Eduard Burtescu
a817c69297
syntax: don't store a secondary NodeId for TyPath.
2015-02-24 14:14:16 +02:00
Manish Goregaokar
e711ac7e75
Remove double expr_u32 (fixup #22700 )
2015-02-24 12:08:36 +05:30
Manish Goregaokar
3ca5439009
Rollup merge of #22700 - nick29581:ints_hash, r=alexcrichton
...
fmt and hash are pretty straightforward I think. sync is a bit more complex. I thought one or two of the `isize`s ought to be `i32`s, but that would require a bunch of casting (the root cause being the lack of atomics other than isize/usize).
r? @alexcrichton
2015-02-24 12:08:34 +05:30
Nick Cameron
67b03fbc3d
int audit - libcore::fmt
2015-02-23 16:07:38 +13:00
bors
f0f7ca27de
Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581
...
Please see discussion in #19284 .
2015-02-23 01:53:38 +00:00
Brian Brooks
fc9fa1a563
Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 .
2015-02-21 17:26:29 -05:00
Brian Brooks
1212fd8abc
Resolve includeme.fragment conflict.
2015-02-21 06:56:46 -05:00
Niko Matsakis
68e5bb3f2c
Remove remaining uses of []
. This time I tried to use deref coercions where possible.
2015-02-20 14:08:14 -05:00
Alex Crichton
c62906d19c
rollup merge of #21943 : hugwijst/extctxt_ufcs
...
Add `QPath` construction support to `ExtCtxt`. Allows compiler plugins to generate calls with UFCS.
2015-02-10 08:41:36 -08:00
Nick Cameron
8122ce81d0
Accept quantification of lifetimes outside the self type in where clauses.
...
Closes #20022
2015-02-09 09:29:53 +13:00
Keegan McAllister
67350bc868
Don't use std:: paths in syntax extensions when compiling a #![no_std] crate
...
Fixes #16803 .
Fixes #14342 .
Fixes half of #21827 -- slice syntax is still broken.
2015-02-07 10:49:57 -08:00
GuillaumeGomez
8b12d3ddf9
Libsyntax has been updated
2015-02-06 11:59:10 +01:00
GuillaumeGomez
d58c0a7597
Replace the get method by the deref one on InternedString
2015-02-06 11:59:10 +01:00
Hugo van der Wijst
6f872113ab
Add QPath construction to ExtCtxt for UFCS support.
2015-02-04 22:44:34 +01:00
Niko Matsakis
0431134119
Remove the explicit closure kind syntax from the parser and AST;
...
upgrade the inference based on expected type so that it is able to
infer the fn kind in isolation even if the full signature is not
available (and we could perhaps do better still in some cases, such as
extracting just the types of the arguments but not the return value).
2015-02-03 11:56:16 -05:00
Huon Wilson
2e888d0341
Add the span of the operator itself to ast::BinOp.
2015-01-25 00:33:50 +11:00
Alex Crichton
df1cddf20a
rollup merge of #20179 : eddyb/blind-items
...
Conflicts:
src/librustc/diagnostics.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/libsyntax/parse/parser.rs
2015-01-21 11:56:00 -08:00
Eduard Burtescu
7cece8725b
syntax: fix fallout of merging ast::ViewItem into ast::Item.
2015-01-21 16:27:26 +02:00
Paul Collier
591337431d
libsyntax: int types -> isize
2015-01-18 19:43:44 -08:00
Paul Collier
d5c83652b3
libsyntax: rename functions from uint to usize
2015-01-17 20:47:30 -08:00
Paul Collier
a32249d447
libsyntax: uint types to usize
2015-01-17 23:45:29 +00:00
Huon Wilson
e95779554e
Store deprecated status of i/u-suffixed literals.
2015-01-08 11:02:23 -05:00
Jorge Aparicio
517f1cc63c
use slicing sugar
2015-01-07 17:35:56 -05:00
Alex Crichton
5f27b50080
rollup merge of #20609 : cmr/mem
2015-01-06 15:07:48 -08:00
Nick Cameron
f7ff37e4c5
Replace full slice notation with index calls
2015-01-07 10:46:33 +13:00
Corey Richardson
abcbe27695
syntax/rustc: implement isize/usize
2015-01-06 15:15:07 -05:00
Seo Sanghyeon
f2a06f760b
Make type in ast::Local optional
2015-01-02 20:55:31 +09:00
Nick Cameron
e656081b70
Accept ?Sized
as well as Sized?
...
Includes a bit of refactoring to store `?` unbounds as bounds with a modifier, rather than in their own world, in the AST at least.
2014-12-26 10:16:24 +13:00
Alex Crichton
082bfde412
Fallout of std::str stabilization
2014-12-21 23:31:42 -08:00
Barosl Lee
314ed2df09
Drop the Match prefix from the MatchSource variants
2014-12-20 09:17:14 +09:00
Niko Matsakis
092d04a40a
Rename FnStyle trait to Unsafety.
2014-12-14 11:11:55 -05:00
Nick Cameron
397dda8aa0
Add support for equality constraints on associated types
2014-12-12 19:11:59 +13:00
Corey Farwell
4ef16741e3
Utilize fewer reexports
...
In regards to:
https://github.com/rust-lang/rust/issues/19253#issuecomment-64836729
This commit:
* Changes the #deriving code so that it generates code that utilizes fewer
reexports (in particur Option::* and Result::*), which is necessary to
remove those reexports in the future
* Changes other areas of the codebase so that fewer reexports are utilized
2014-12-05 18:13:04 -05:00
Niko Matsakis
c4a3be6bd1
Rote changes due to the fact that ast paths no longer carry this extraneous bounds.
2014-11-26 11:42:06 -05:00
Adolfo Ochagavía
35316972ff
Remove type parameters from ExprField and ExprTupField
2014-11-23 12:17:43 +01:00
Niko Matsakis
3e2929d362
Merge the ExprFnBlock and ExprUnboxedClosure into one ExprClosure with an optional unboxed closure kind.
2014-11-19 13:35:20 -05:00
Jakub Bukaj
eb01b17b06
Complete the removal of ty_nil, ast::LitNil, ast::TyBot and ast::TyUniq
...
[breaking-change]
This will break any uses of macros that assumed () being a valid literal.
2014-11-16 14:23:15 +01:00