ljedrz
44d32d4413
Avoid unnecessary pattern matching against Option and Result
2018-08-07 10:24:27 +02:00
ljedrz
08c113abef
Deny bare trait objects in src/libsyntax_ext
2018-07-12 11:58:16 +02:00
varkor
a5328bc17b
Simply joint lifetime/type iteration
2018-06-20 12:21:52 +01:00
varkor
3bcb006fd9
Rename structures in ast
2018-06-20 12:21:52 +01:00
varkor
d643946550
Rename ast::GenericParam and ast::GenericArg
...
It's so confusing to have everything having the same name, at least while refactoring.
2018-06-20 12:19:04 +01:00
varkor
76c0d68745
Rename "parameter" to "arg"
2018-06-20 12:19:04 +01:00
varkor
1ed60a9173
Rename *Parameter to *Param
2018-06-20 12:19:04 +01:00
varkor
494859e8dd
Consolidate PathParameters and AngleBracketedParameterData
2018-06-20 12:19:03 +01:00
Vadim Petrochenkov
43ad972318
Use Span::apply_mark
where possible
2018-04-06 11:48:19 +03:00
Vadim Petrochenkov
5d06c890fe
syntax: Make _
an identifier
2018-03-17 22:08:07 +03:00
Oliver Schneider
c4d5a1e17b
Produce expansion info for more builtin macros
2017-09-04 11:03:19 +02:00
Jeffrey Seyfried
7fdc1fb2e4
Hygienize lifetimes.
2017-05-25 05:52:09 +00:00
Jeffrey Seyfried
e85a0d70b8
Use Symbol
instead of InternedString
in the AST, HIR, and various other places.
2016-11-21 09:00:55 +00:00
Jeffrey Seyfried
d2f8fb0a0a
Move syntax::util::interner
-> syntax::symbol
, cleanup.
2016-11-20 23:40:20 +00:00
Srinivas Reddy Thatiparthy
d652639524
run rustfmt on libsyntax_ext folder
2016-08-12 09:40:12 +05:30
Zack M. Davis
d37edef9dd
prefer if let
to match with None => {}
arm in some places
...
This is a spiritual succesor to #34268/8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.
2016-07-03 16:27:02 -07:00
Jeffrey Seyfried
82a15a6a0a
Rollup merge of #34385 - cgswords:tstream, r=nrc
...
syntax-[breaking-change] cc #31645
(Only breaking because ast::TokenTree is now tokenstream::TokenTree.)
This pull request refactors TokenTrees into their own file as src/libsyntax/tokenstream.rs, moving them out of src/libsyntax/ast.rs, in order to prepare for an accompanying TokenStream implementation (per RFC 1566).
2016-06-26 02:11:59 +00:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04:00
cgswords
d59accfb06
Refactored tokentrees into their own files in preparation for tokenstreams. Modified tests to point to the new file now.
2016-06-21 11:12:36 -07:00
Oliver 'ker' Schneider
73fa9b2da2
[breaking-change] don't glob export ast::Mutablity variants
2016-02-11 12:34:48 +01:00
Seo Sanghyeon
f9ba107824
Move built-in syntax extensions to a separate crate
2015-12-15 15:04:46 +09:00