| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-05-13 | Add lint for unused macros | est31 | -0/+6 | |
| 2017-05-13 | Fix #35829 (syntax extension's `quote_expr!()` does not handle b"…") | kennytm | -36/+20 | |
| * Handles `b"…"`, `br#"…"#` and `...` for `quote_expr!()`. * Refactored the match statement to allow it to complain loudly on any unhandled token. * Similarly, proc_macro's `quote!()` did not handle `br#"…"#` or `r#"…"#`, so this commit fixes it too. | ||||
| 2017-05-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -81/+82 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-05-08 | Rollup merge of #41520 - estebank:trace-macro, r=nikomatsakis | Corey Farwell | -5/+19 | |
| Use diagnostics for trace_macro instead of println When using `trace_macro`, use `span_label`s instead of `println`: ```rust note: trace_macro --> $DIR/trace-macro.rs:14:5 | 14 | println!("Hello, World!"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expands to `println! { "Hello, World!" }` = note: expands to `print! { concat ! ( "Hello, World!" , "\n" ) }` ``` Fix #22597. | ||||
| 2017-05-07 | Auto merge of #41676 - sirideain:expand-macro-recursion-limit, r=jseyfried | bors | -1/+1 | |
| Increase macro recursion limit to 1024 Fixes #22552 | ||||
| 2017-05-06 | Group "macro expansion" notes per call span | Esteban Küber | -9/+18 | |
| 2017-05-05 | Use diagnostics for trace_macro instead of println | Esteban Küber | -1/+6 | |
| 2017-05-02 | Removal pass for anonymous parameters | est31 | -1/+1 | |
| Removes occurences of anonymous parameters from the rustc codebase, as they are to be deprecated. See issue #41686 and RFC 1685. | ||||
| 2017-05-01 | Increase macro recursion limit to 1024 Fixes #22552 | Charlie Sheridan | -1/+1 | |
| 2017-04-26 | Implement a file-path remapping feature in support of debuginfo and ↵ | Michael Woerister | -3/+3 | |
| reproducible builds. | ||||
| 2017-04-20 | Don't panic if an attribute macro fails to resolve at crate root | Austin Bonander | -2/+12 | |
| Adds temporary regression test; this ideally should work as-is (#41430) Closes #41211 | ||||
| 2017-04-17 | Auto merge of #41282 - arielb1:missing-impl-item, r=petrochenkov | bors | -2/+2 | |
| libsyntax/parse: fix missing kind error reporting Fixes #41161. Fixes #41239. | ||||
| 2017-04-17 | libsyntax/parse: improve associated item error reporting | Ariel Ben-Yehuda | -2/+2 | |
| Fixes #41161. Fixes #41239. | ||||
| 2017-04-15 | feature gate :vis matcher | Alex Burka | -22/+45 | |
| 2017-04-15 | widen :vis follow set | Alex Burka | -4/+4 | |
| 2017-04-15 | parse interpolated visibility tokens | Alex Burka | -1/+2 | |
| 2017-04-15 | update :vis implementation to current rust | Alex Burka | -6/+6 | |
| 2017-04-15 | Implementation of the `vis` macro matcher. | Daniel Keep | -1/+15 | |
| 2017-04-12 | First attempt at global_asm! macro | A.J. Gardner | -0/+1 | |
| 2017-04-03 | Fix bug parsing `#[derive]` macro invocations. | Jeffrey Seyfried | -1/+2 | |
| 2017-03-30 | Improve `Path` spans. | Jeffrey Seyfried | -16/+31 | |
| 2017-03-29 | Refactor how spans are combined in the parser. | Jeffrey Seyfried | -5/+4 | |
| 2017-03-29 | Merge `ExpnId` and `SyntaxContext`. | Jeffrey Seyfried | -141/+110 | |
| 2017-03-29 | Move `syntax::ext::hygiene` to `syntax_pos::hygiene`. | Jeffrey Seyfried | -132/+5 | |
| 2017-03-27 | Rollup merge of #40813 - jseyfried:fix_expansion_regression, r=nrc | Alex Crichton | -1/+1 | |
| macros: fix ICE on some nested macro definitions Fixes #40770. r? @nrc | ||||
| 2017-03-27 | Fix various useless derefs and slicings | Oliver Schneider | -1/+1 | |
| 2017-03-25 | Fix ICE with nested macros in certain situations. | Jeffrey Seyfried | -1/+1 | |
| 2017-03-22 | Introduce HirId, a replacement for NodeId after lowering to HIR. | Michael Woerister | -11/+3 | |
| HirId has a more stable representation than NodeId, meaning that modifications to one item don't influence (part of) the IDs within other items. The other part is a DefIndex for which there already is a way of stable hashing and persistence. This commit introduces the HirId type and generates a HirId for every NodeId during HIR lowering, but the resulting values are not yet used anywhere, except in consistency checks. | ||||
| 2017-03-21 | Refactor parsing of trait object types | Vadim Petrochenkov | -3/+3 | |
| 2017-03-19 | Auto merge of #40346 - jseyfried:path_and_tokenstream_attr, r=nrc | bors | -109/+91 | |
| `TokenStream`-based attributes, paths in attribute and derive macro invocations This PR - refactors `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`. - supports macro invocation paths for attribute procedural macros. - e.g. `#[::foo::attr_macro] struct S;`, `#[cfg_attr(all(), foo::attr_macro)] struct S;` - supports macro invocation paths for derive procedural macros. - e.g. `#[derive(foo::Bar, super::Baz)] struct S;` - supports arbitrary tokens as arguments to attribute procedural macros. - e.g. `#[foo::attr_macro arbitrary + tokens] struct S;` - supports using arbitrary tokens in "inert attributes" with derive procedural macros. - e.g. `#[derive(Foo)] struct S(#[inert arbitrary + tokens] i32);` where `#[proc_macro_derive(Foo, attributes(inert))]` r? @nrc | ||||
| 2017-03-14 | Liberalize attributes. | Jeffrey Seyfried | -71/+71 | |
| 2017-03-14 | Refactor `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`. | Jeffrey Seyfried | -39/+21 | |
| 2017-03-14 | Cleanup. | Jeffrey Seyfried | -1/+1 | |
| 2017-03-12 | Rollup merge of #40369 - petrochenkov:segspan, r=eddyb | Corey Farwell | -7/+12 | |
| Give spans to individual path segments in AST And use these spans in path resolution diagnostics. The spans are spans of identifiers in segments, not whole segments. I'm not sure what spans are more useful in general, but identifier spans are a better fit for resolve errors. HIR still doesn't have spans. Fixes https://github.com/rust-lang/rust/pull/38927#discussion_r95336667 https://github.com/rust-lang/rust/pull/38890#issuecomment-271731008 r? @nrc @eddyb | ||||
| 2017-03-11 | Auto merge of #40220 - jseyfried:ast_macro_def, r=nrc | bors | -111/+28 | |
| syntax: add `ast::ItemKind::MacroDef`, simplify hygiene info This PR - adds a new variant `MacroDef` to `ast::ItemKind` for `macro_rules!` and eventually `macro` items, - [breaking-change] forbids macro defs without a name (`macro_rules! { () => {} }` compiles today), - removes `ast::MacroDef`, and - no longer uses `Mark` and `Invocation` to identify and characterize macro definitions. - We used to apply (at least) two `Mark`s to an expanded identifier's `SyntaxContext` -- the definition mark(s) and the expansion mark(s). We now only apply the latter. r? @nrc | ||||
| 2017-03-10 | Give spans to individual path segments in AST | Vadim Petrochenkov | -7/+12 | |
| 2017-03-10 | Expect macro defs in save-analysis and add expn info to spans for attr proc ↵ | Nick Cameron | -1/+13 | |
| macros | ||||
| 2017-03-10 | Avoid using `Mark` and `Invocation` for macro defs. | Jeffrey Seyfried | -16/+5 | |
| 2017-03-10 | Move `resolve_invoc` from `syntax` to `resolve`. | Jeffrey Seyfried | -63/+11 | |
| 2017-03-10 | Refactor out `ast::ItemKind::MacroDef`. | Jeffrey Seyfried | -35/+15 | |
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -107/+93 | |
| 2017-03-03 | Remove lifetime parameter from `syntax::tokenstream::Cursor`. | Jeffrey Seyfried | -1/+1 | |
| 2017-03-02 | Auto merge of #39655 - durka:recursion-limit-suggestion, r=nikomatsakis | bors | -4/+10 | |
| suggest doubling recursion limit in more situations Fixes #38852. r? @bluss | ||||
| 2017-03-02 | note -> help | Alex Burka | -1/+1 | |
| 2017-02-28 | Add warning cycle. | Jeffrey Seyfried | -11/+27 | |
| 2017-02-28 | Merge `repeat_idx` and `repeat_len`. | Jeffrey Seyfried | -17/+15 | |
| 2017-02-28 | Remove `Token::MatchNt`. | Jeffrey Seyfried | -68/+78 | |
| 2017-02-28 | Add `syntax::ext::tt::quoted::{TokenTree, ..}` and remove ↵ | Jeffrey Seyfried | -193/+358 | |
| `tokenstream::TokenTree::Sequence`. | ||||
| 2017-02-28 | Avoid `Token::{OpenDelim, CloseDelim}`. | Jeffrey Seyfried | -16/+22 | |
| 2017-02-28 | Remove `ext::tt::transcribe::tt_next_token`. | Jeffrey Seyfried | -149/+124 | |
