| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-04-29 | Warn on pointless `#[derive]` in more places | Austin Bonander | -2/+19 | |
| This fixes the regression in #49934 and ensures that unused `#[derive]`s on statements, expressions and generic type parameters survive to trip the `unused_attributes` lint. For `#[derive]` on macro invocations it has a hardcoded warning since linting occurs after expansion. This also adds regression testing for some nodes that were already warning properly. closes #49934 | ||||
| 2018-04-14 | Add error codes for libsyntax_ext | Guillaume Gomez | -1/+4 | |
| 2018-04-10 | Auto merge of #49390 - Zoxc:sync-syntax, r=michaelwoerister | bors | -9/+11 | |
| More thread-safety changes r? @michaelwoerister | ||||
| 2018-04-06 | Use `Span::apply_mark` where possible | Vadim Petrochenkov | -1/+1 | |
| 2018-04-06 | Get rid of `SpannedIdent` | Vadim Petrochenkov | -1/+1 | |
| 2018-04-06 | Use `Span` instead of `SyntaxContext` in `Ident` | Vadim Petrochenkov | -2/+2 | |
| 2018-04-03 | expand macro invocations in `extern {}` blocks | Austin Bonander | -0/+28 | |
| 2018-04-02 | Expand attribute macros on statements and expressions. | Austin Bonander | -0/+8 | |
| Retains the `stmt_expr_attributes` feature requirement for attributes on expressions. closes #41475 cc #38356 | ||||
| 2018-03-28 | Make SyntaxExtension thread-safe | John Kåre Alsaker | -9/+11 | |
| 2018-03-18 | Initial implementation of RFC 2151, Raw Identifiers | Lymia Aluysia | -2/+3 | |
| 2018-03-07 | check stability of macro invocations | Austin Bonander | -0/+4 | |
| 2018-03-02 | Replace Rc with Lrc for shared data | John Kåre Alsaker | -6/+7 | |
| 2018-02-07 | libsyntax/ext: trailing commas in builtin macros | Michael Lamparski | -2/+4 | |
| Most notably this changes 'syntax::ext::base::get_single_str_from_tts' to accept a trailing comma, and revises the documentation so that this aspect is not surprising. I made this change under the understanding that this crate is private rustc implementation detail (I hope this is correct!). After reviewing all call sites, I believe the revised semantics are closer to the intended spirit of the function. | ||||
| 2018-01-26 | Do not capture stderr in the compiler. Instead just panic silently for fatal ↵ | John Kåre Alsaker | -1/+1 | |
| errors | ||||
| 2018-01-15 | Point at unused arguments for format string | Esteban Küber | -19/+19 | |
| Avoid overlapping spans by only pointing at the arguments that are not being used in the argument string. Enable libsyntax to have diagnostics with multiple primary spans by accepting `Into<MultiSpan>` instead of `Span`. | ||||
| 2018-01-01 | Fix docs for future pulldown migration | Malo Jaffré | -1/+2 | |
| 2017-12-26 | Do not expand a derive invocation when derive is not allowed | Seiichi Uchida | -0/+12 | |
| 1. Change the return type of `expand_invoc()` and its subroutines to `Option<Expansion>` from `Expansion`. 2. Return `None` when expanding a derive invocation if the item cannot have derive on it (in `expand_derive_invoc()`). | ||||
| 2017-12-19 | Implement non-mod.rs mod statements | Taylor Cramer | -1/+1 | |
| 2017-12-17 | syntax: Rename `P::unwrap` into `P::into_inner` | Vadim Petrochenkov | -2/+2 | |
| 2017-12-09 | Use hygiene to access the injected crate (`core` or `std`) from builtin macros. | Jeffrey Seyfried | -9/+6 | |
| 2017-11-21 | allow loading external files in documentation | QuietMisdreavus | -0/+2 | |
| Partial implementation of https://github.com/rust-lang/rfcs/pull/1990 (needs error reporting work) cc #44732 | ||||
| 2017-09-21 | suggest an outer attribute when `#![derive(...)]` (predictably) fails | Zack M. Davis | -0/+4 | |
| 2017-09-17 | Rollup merge of #44088 - bjorn3:better_trace_macros, r=jseyfried | Tim Neumann | -1/+3 | |
| Fix "new trace_macros doesn't work if there's an error during expansion" Fixes #43493 | ||||
| 2017-09-02 | Better trace-macro and less span_err_fatal | bjorn3 | -1/+3 | |
| 2017-08-30 | Make fields of `Span` private | Vadim Petrochenkov | -2/+2 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -3/+3 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-08-12 | syntax: #[allow_internal_unsafe] bypasses the unsafe_code lint in macros. | Eduard-Mihai Burtescu | -5/+11 | |
| 2017-08-07 | Reexport all SyntaxExtension variants | Oliver Schneider | -1/+1 | |
| 2017-07-27 | Avoid duplicated errors for generic arguments in macro paths | Vadim Petrochenkov | -1/+1 | |
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -1/+1 | |
| 2017-06-26 | Implement `quote!` and other `proc_macro` API. | Jeffrey Seyfried | -1/+4 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -14/+0 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-05-31 | Extend the unused macro lint to macros 2.0 | est31 | -1/+3 | |
| 2017-05-25 | Hygienize `librustc_resolve`. | Jeffrey Seyfried | -0/+11 | |
| 2017-05-19 | Rollup merge of #42006 - jseyfried:fix_include_regression, r=nrc | Mark Simulacrum | -2/+2 | |
| Fix ICE on `include!(line!())` (regression) Fixes #41776. r? @nrc | ||||
| 2017-05-17 | Auto merge of #42049 - Mark-Simulacrum:rollup, r=Mark-Simulacrum | bors | -6/+6 | |
| Rollup of 5 pull requests - Successful merges: #41937, #41957, #42017, #42039, #42046 - Failed merges: | ||||
| 2017-05-15 | adressed comments by @kennytm and @petrochenkov | Andre Bogus | -2/+2 | |
| 2017-05-15 | Fix regression on `include!(line!())`. | Jeffrey Seyfried | -2/+2 | |
| 2017-05-13 | Support #[allow] etc logic on a per macro level | est31 | -1/+1 | |
| 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-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -5/+5 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-05-06 | Group "macro expansion" notes per call span | Esteban Küber | -2/+11 | |
| 2017-05-05 | Use diagnostics for trace_macro instead of println | Esteban Küber | -0/+3 | |
| 2017-03-30 | Improve `Path` spans. | Jeffrey Seyfried | -1/+20 | |
| 2017-03-29 | Merge `ExpnId` and `SyntaxContext`. | Jeffrey Seyfried | -45/+29 | |
| 2017-03-10 | Move `resolve_invoc` from `syntax` to `resolve`. | Jeffrey Seyfried | -3/+9 | |
| 2017-03-10 | Refactor out `ast::ItemKind::MacroDef`. | Jeffrey Seyfried | -4/+2 | |
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -14/+6 | |
| 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 | |
