| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-12-17 | syntax: Rename `P::unwrap` into `P::into_inner` | Vadim Petrochenkov | -7/+7 | |
| 2017-12-14 | Use PathBuf instead of String where applicable | Oliver Schneider | -3/+11 | |
| 2017-12-09 | Use hygiene to access the injected crate (`core` or `std`) from builtin macros. | Jeffrey Seyfried | -2/+0 | |
| 2017-11-21 | allow loading external files in documentation | QuietMisdreavus | -1/+87 | |
| Partial implementation of https://github.com/rust-lang/rfcs/pull/1990 (needs error reporting work) cc #44732 | ||||
| 2017-11-14 | avoid the pprust infrastructure in macro expansion | Ariel Ben-Yehuda | -3/+24 | |
| This changes macro expansion to format the path of a macro directly instead of usng the pprust infrastructure. The pprust infrastructure tries to perform line-breaking in a slow fashion, which is undesired when formatting the path of a macro. This should to speed up expansion by a fair amount (I saw 20% on a profiler on `rustc_mir`, and 50% of the time marked as "expansion" in the profiler/time-passes is actually spent loading dependencies). | ||||
| 2017-10-03 | Rename FileMap::path and change to an Option | Philip Craig | -2/+2 | |
| 2017-09-30 | Don't use remapped path when loading modules and include files | Philip Craig | -4/+2 | |
| 2017-09-27 | Apply attr proc macros before cfg processing | Tomas Nilsson | -14/+25 | |
| Now items are not fully configured until right before expanding derives. | ||||
| 2017-09-25 | Fix bug in collecting trait and impl items with derives. | Jeffrey Seyfried | -7/+1 | |
| 2017-09-21 | suggest an outer attribute when `#![derive(...)]` (predictably) fails | Zack M. Davis | -5/+13 | |
| 2017-09-21 | only set non-ADT derive error once per attribute, not per trait | Zack M. Davis | -0/+18 | |
| A slight eccentricity of this change is that now non-ADT-derive errors prevent derive-macro-not-found errors from surfacing (see changes to the gating-of-derive compile-fail tests). Resolves #43927. | ||||
| 2017-09-17 | Rollup merge of #44088 - bjorn3:better_trace_macros, r=jseyfried | Tim Neumann | -1/+14 | |
| 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/+2 | |
| 2017-08-30 | Make fields of `Span` private | Vadim Petrochenkov | -7/+6 | |
| 2017-08-27 | Fix error | bjorn3 | -1/+0 | |
| 2017-08-25 | Fix #43493 (new trace_macros doesn't work if there's an error during expansion) | bjorn3 | -0/+13 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -7/+8 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-08-12 | syntax: #[allow_internal_unsafe] bypasses the unsafe_code lint in macros. | Eduard-Mihai Burtescu | -7/+20 | |
| 2017-08-07 | Reexport all SyntaxExtension variants | Oliver Schneider | -9/+9 | |
| 2017-07-28 | syntax: Add `tokens: Option<TokenStream>` to Item | Alex Crichton | -0/+1 | |
| This commit adds a new field to the `Item` AST node in libsyntax to optionally contain the original token stream that the item itself was parsed from. This is currently `None` everywhere but is intended for use later with procedural macros. | ||||
| 2017-07-25 | Stabilize the `compile_error_macro` feature | Alex Crichton | -1/+0 | |
| Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872 | ||||
| 2017-07-20 | Use the macro structure spans instead of the invocation | Esteban Küber | -0/+1 | |
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -30/+10 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -20/+16 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-19 | Add compile_error! | Wesley Wiser | -0/+1 | |
| Related to #40872 | ||||
| 2017-05-31 | Extend the unused macro lint to macros 2.0 | est31 | -2/+3 | |
| 2017-05-25 | Hygienize `librustc_resolve`. | Jeffrey Seyfried | -15/+27 | |
| 2017-05-17 | Auto merge of #42049 - Mark-Simulacrum:rollup, r=Mark-Simulacrum | bors | -15/+11 | |
| Rollup of 5 pull requests - Successful merges: #41937, #41957, #42017, #42039, #42046 - Failed merges: | ||||
| 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-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -15/+11 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-05-08 | Rollup merge of #41520 - estebank:trace-macro, r=nikomatsakis | Corey Farwell | -1/+1 | |
| 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-06 | Group "macro expansion" notes per call span | Esteban Küber | -1/+1 | |
| 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 | -1/+1 | |
| 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-12 | First attempt at global_asm! macro | A.J. Gardner | -0/+1 | |
| 2017-03-29 | Merge `ExpnId` and `SyntaxContext`. | Jeffrey Seyfried | -65/+46 | |
| 2017-03-29 | Move `syntax::ext::hygiene` to `syntax_pos::hygiene`. | Jeffrey Seyfried | -3/+3 | |
| 2017-03-21 | Refactor parsing of trait object types | Vadim Petrochenkov | -1/+1 | |
| 2017-03-14 | Liberalize attributes. | Jeffrey Seyfried | -45/+49 | |
| 2017-03-14 | Refactor `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`. | Jeffrey Seyfried | -34/+8 | |
| 2017-03-11 | Auto merge of #40220 - jseyfried:ast_macro_def, r=nrc | bors | -79/+10 | |
| 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 | 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 | -7/+3 | |
| 2017-03-10 | Move `resolve_invoc` from `syntax` to `resolve`. | Jeffrey Seyfried | -60/+2 | |
| 2017-03-10 | Refactor out `ast::ItemKind::MacroDef`. | Jeffrey Seyfried | -12/+5 | |
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -20/+19 | |
| 2017-03-03 | Remove lifetime parameter from `syntax::tokenstream::Cursor`. | Jeffrey Seyfried | -1/+1 | |
