| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-07-05 | Merge remote-tracking branch 'origin/master' into proc_macro_api | Alex Crichton | -7/+8 | |
| 2017-07-02 | Output line column info when panicking | est31 | -5/+6 | |
| 2017-06-29 | Make `$crate` a keyword | Vadim Petrochenkov | -2/+2 | |
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -50/+30 | |
| 2017-06-26 | Implement `quote!` and other `proc_macro` API. | Jeffrey Seyfried | -2/+5 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -87/+75 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-19 | Add compile_error! | Wesley Wiser | -0/+1 | |
| Related to #40872 | ||||
| 2017-06-08 | Speed up expansion. | Mark Simulacrum | -27/+34 | |
| This reduces duplication, thereby increasing expansion speed. | ||||
| 2017-05-31 | Extend the unused macro lint to macros 2.0 | est31 | -4/+7 | |
| 2017-05-27 | Auto merge of #42103 - jorendorff:master, r=estebank | bors | -3/+12 | |
| trace_macro: Show both the macro call and its expansion. #42072. See #42072 for the initial motivation behind this. The change is not the minimal fix, but I want this behavior almost every time I use `trace_macros`. | ||||
| 2017-05-25 | Hygienize lifetimes. | Jeffrey Seyfried | -6/+6 | |
| 2017-05-25 | Hygienize `librustc_resolve`. | Jeffrey Seyfried | -18/+44 | |
| 2017-05-25 | Declarative macros 2.0 without hygiene. | Jeffrey Seyfried | -7/+8 | |
| 2017-05-25 | Refactor out `ast::MacroDef`. | Jeffrey Seyfried | -1/+1 | |
| 2017-05-24 | Rollup merge of #42071 - nrc:parse-mods, r=nikomatsakis | Mark Simulacrum | -4/+8 | |
| Add an option to the parser to avoid parsing out of line modules This is useful if parsing from stdin or a String and don't want to try and read in a module from another file. Instead we just leave a stub in the AST. | ||||
| 2017-05-19 | Rollup merge of #42006 - jseyfried:fix_include_regression, r=nrc | Mark Simulacrum | -5/+5 | |
| Fix ICE on `include!(line!())` (regression) Fixes #41776. r? @nrc | ||||
| 2017-05-19 | trace_macro: Show both the macro call and its expansion. #42072. | Jason Orendorff | -3/+12 | |
| 2017-05-18 | Add an option to the parser to avoid parsing out of line modules | Nick Cameron | -4/+8 | |
| This is useful if parsing from stdin or a String and don't want to try and read in a module from another file. Instead we just leave a stub in the AST. | ||||
| 2017-05-17 | Auto merge of #41961 - kennytm:fix-35829, r=petrochenkov | bors | -36/+20 | |
| Fix #35829 (`quote!()` does not handle `br#"…"#`) Fix issue #35829 (syntax extension's `quote_expr!()` does not handle `b"…"` and proc_macro's `quote!()` does not handle `r#"…"#`) * 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 PR fixes it too. | ||||
| 2017-05-17 | Auto merge of #42049 - Mark-Simulacrum:rollup, r=Mark-Simulacrum | bors | -84/+90 | |
| Rollup of 5 pull requests - Successful merges: #41937, #41957, #42017, #42039, #42046 - Failed merges: | ||||
| 2017-05-16 | Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov | Mark Simulacrum | -84/+90 | |
| Fix some clippy warnings in libsyntax This is mostly removing stray ampersands, needless returns and lifetimes. Basically a lot of small changes. | ||||
| 2017-05-16 | Auto merge of #41907 - est31:macro_unused, r=jseyfried | bors | -3/+11 | |
| Add lint for unused macros Addresses parts of #34938, to add a lint for unused macros. We now output warnings by default when we encounter a macro that we didn't use for expansion. Issues to be resolved before this PR is ready for merge: - [x] fix the NodeId issue described above - [x] remove all unused macros from rustc and the libraries or set `#[allow(unused_macros)]` next to them if they should be kept for some reason. This is needed for successful boostrap and bors to accept the PR. -> #41934 - [x] ~~implement the full extent of #34938, that means the macro match arm checking as well.~~ *let's not do this for now* | ||||
| 2017-05-16 | Rollup merge of #42005 - jseyfried:fix_macro_regression, r=nrc | Mark Simulacrum | -5/+6 | |
| Fix regression in `macro_rules!` name matching Fixes #41803. r? @nrc | ||||
| 2017-05-15 | adressed comments by @kennytm and @petrochenkov | Andre Bogus | -26/+31 | |
| 2017-05-15 | Fix regression on `include!(line!())`. | Jeffrey Seyfried | -5/+5 | |
| 2017-05-15 | Fix regression in `macro_rules!` name matching. | Jeffrey Seyfried | -5/+6 | |
| 2017-05-15 | Address review comments | est31 | -4/+2 | |
| 2017-05-13 | Support #[allow] etc logic on a per macro level | est31 | -3/+7 | |
| This commit extends the current unused macro linter to support directives like #[allow(unused_macros)] or #[deny(unused_macros)] directly next to the macro definition, or in one of the modules the macro is inside. Before, we only supported such directives at a per crate level, due to the crate's NodeId being passed to session.add_lint. We also had to implement handling of the macro's NodeId in the lint visitor. | ||||
| 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 | |
