varkor
17726f6b52
Rename Lit.node
to Lit.kind
2019-09-26 18:21:09 +01:00
varkor
95f6d72a60
Rename Expr.node
to Expr.kind
...
For both `ast::Expr` and `hir::Expr`.
2019-09-26 18:21:09 +01:00
Matthew Jasper
8ab67c8f56
Remove with_legacy_ctxt
2019-09-15 09:15:38 +01:00
Aleksey Kladov
613649584a
use consistent naming for buildin expansion functions
2019-09-03 21:15:45 +03:00
Aleksey Kladov
fa893a3225
use TokenStream rather than &[TokenTree] for built-in macros
...
That way, we don't loose the jointness info
2019-09-03 21:15:45 +03:00
Vadim Petrochenkov
0fb01d219c
Audit uses of apply_mark
in built-in macros
...
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API.
The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-23 01:44:33 +03:00
Vadim Petrochenkov
376636e517
syntax: Remove DummyResult::expn_only
2019-08-13 20:53:49 +03:00
Mark Rousskov
0f985817bd
Replace AstBuilder with inherent methods
2019-07-31 08:55:37 -04:00
Vadim Petrochenkov
09703e3843
Adjust other names after the Mark
renaming
2019-07-19 12:01:49 +03:00
Vadim Petrochenkov
2af47facc3
syntax: Treat error literals in more principled way
2019-06-07 18:01:50 +03:00
Taiki Endo
94f121ff3f
libsyntax_ext => 2018
2019-02-04 21:49:54 +09:00
Yuki Okushi
a4ff1dcc53
Mark incorrect recovered char
literals as TyErr
to avoid type errors
2019-01-20 14:51:54 +09:00
Vadim Petrochenkov
df4690ddf4
Improve error recovery for some built-in macros
2018-12-30 01:43:35 +03:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
ljedrz
57a5a9b054
Prefer to_string() to format!()
2018-07-27 11:11:18 +02:00
Esteban Küber
fbce952193
review comments: modify note wording and change println
...
- Don't print the newline on its own to avoid the possibility of
printing it out of order due to `stdout` locking.
- Modify wording of `concat!()` with non-literals to not mislead into
believing that only `&str` literals are accepted.
- Add test for `concat!()` with non-literals.
2018-07-19 23:18:07 -07:00
Esteban Küber
f53c145ef1
Improve suggestion for missing fmt str in println
...
Avoid using `concat!(fmt, "\n")` to improve the diagnostics being
emitted when the first `println!()` argument isn't a formatting string
literal.
2018-07-19 23:18:07 -07:00
ljedrz
08c113abef
Deny bare trait objects in src/libsyntax_ext
2018-07-12 11:58:16 +02:00
csmoe
790c09e849
suggest on new snippet
2018-07-11 18:53:37 +08:00
csmoe
88f475c808
suggests with whole macro call
2018-07-06 22:31:55 +08:00
csmoe
c999b253b7
add span note
2018-07-04 09:01:11 +08:00
csmoe
b79a83b4e4
Suggestion for print
2018-07-03 20:39:17 +08:00
Vadim Petrochenkov
43ad972318
Use Span::apply_mark
where possible
2018-04-06 11:48:19 +03:00
Oliver Schneider
c4d5a1e17b
Produce expansion info for more builtin macros
2017-09-04 11:03:19 +02: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
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 Schneider
498a2e416e
[breaking-change] don't pub export ast::IntLitType variants
2016-02-11 12:34:48 +01:00
Oliver Schneider
69072c4f5d
[breaking-change] don't pub export ast::Lit_ variants
2016-02-11 12:34:48 +01:00
Oliver Schneider
bfa66bb389
[breaking-change] remove the sign from integer literals in the ast
2016-02-11 12:34:48 +01:00
Oliver Schneider
80bf9ae18a
[breaking-change] don't glob export ast::Expr_ 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