| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2015-12-15 | Move built-in syntax extensions to a separate crate | Seo Sanghyeon | -43/+0 | |
| 2015-11-06 | remove `Tt` prefix from TokenType variants | Oliver Schneider | -4/+4 | |
| [breaking change] | ||||
| 2015-09-08 | Allow tracking issues for lang features. | Huon Wilson | -0/+1 | |
| This is similar to the libs version, which allow an `issue` field in the `#[unstable]` attribute. cc #28244 | ||||
| 2015-04-21 | syntax: Remove uses of #[feature(slice_patterns)] | Erick Tryzelaar | -4/+3 | |
| 2015-02-16 | Address the other cases of #22234; fix #22234. | Felix S. Klock II | -0/+10 | |
| The other cases: `concat_idents!`, `log_syntax!`, and `trace_macros!`, (these macros, with `asm!`, are handled (eagerly) in feature_gate.rs). | ||||
| 2014-10-28 | Convert some token functions into methods | Brendan Zabarauskas | -3/+3 | |
| 2014-10-26 | Use standard capitalisation for TokenTree variants | Brendan Zabarauskas | -2/+2 | |
| 2014-10-26 | Rename TokenTree variants for clarity | Brendan Zabarauskas | -2/+2 | |
| This should be clearer, and fits in better with the `TTNonterminal` variant. Renames: - `TTTok` -> `TTToken` - `TTDelim` -> `TTDelimited` - `TTSeq` -> `TTSequence` | ||||
| 2014-08-27 | Implement generalized object and type parameter bounds (Fixes #16462) | Niko Matsakis | -1/+1 | |
| 2014-05-06 | librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, except | Patrick Walton | -1/+2 | |
| for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change] | ||||
| 2014-04-16 | syntax: unify all MacResult's into a single trait. | Huon Wilson | -2/+2 | |
| There's now one unified way to return things from a macro, instead of being able to choose the `AnyMacro` trait or the `MRItem`/`MRExpr` variants of the `MacResult` enum. This does simplify the logic handling the expansions, but the biggest value of this is it makes macros in (for example) type position easier to implement, as there's this single thing to modify. By my measurements (using `-Z time-passes` on libstd and librustc etc.), this appears to have little-to-no impact on expansion speed. There are presumably larger costs than the small number of extra allocations and virtual calls this adds (notably, all `macro_rules!`-defined macros have not changed in behaviour, since they had to use the `AnyMacro` trait anyway). | ||||
| 2014-03-22 | syntax: allow `trace_macros!` and `log_syntax!` in item position. | Huon Wilson | -22/+10 | |
| Previously trace_macros!(true) fn main() {} would complain about `trace_macros` being an expression macro in item position. This is a pointless limitation, because the macro is purely compile-time, with no runtime effect. (And similarly for log_syntax.) This also changes the behaviour of `trace_macros!` very slightly, it used to be equivalent to macro_rules! trace_macros { (true $($_x: tt)*) => { true }; (false $($_x: tt)*) => { false } } I.e. you could invoke it with arbitrary trailing arguments, which were ignored. It is changed to accept only exactly `true` or `false` (with no trailing arguments) and expands to `()`. | ||||
| 2014-03-17 | De-@ codemap and diagnostic. | Eduard Burtescu | -1/+1 | |
| 2014-03-01 | libsyntax: Fix errors arising from the automated `~[T]` conversion | Patrick Walton | -1/+1 | |
| 2014-02-18 | Avoid returning original macro if expansion fails. | Douglas Young | -1/+1 | |
| Closes #11692. Instead of returning the original expression, a dummy expression (with identical span) is returned. This prevents infinite loops of failed expansions as well as odd double error messages in certain situations. | ||||
| 2014-02-07 | Removed @self and @Trait. | Eduard Burtescu | -3/+2 | |
| 2014-01-18 | syntax::ext: replace span_fatal with span_err in many places. | Huon Wilson | -1/+2 | |
| This means that compilation continues for longer, and so we can see more errors per compile. This is mildly more user-friendly because it stops users having to run rustc n times to see n macro errors: just run it once to see all of them. | ||||
| 2014-01-09 | libsyntax: Renamed types, traits and enum variants to CamelCase. | Eduard Burtescu | -3/+3 | |
| 2014-01-03 | libsyntax: De-`@mut` `StringReader`, `TtReader`, and `reader` | Patrick Walton | -1/+1 | |
| 2014-01-02 | libsyntax: Make the parser mutable | Patrick Walton | -2/+2 | |
| 2013-12-29 | Start passing around &mut ExtCtxt | Steven Fackler | -1/+1 | |
| 2013-12-28 | Stop using @ExtCtxt | Steven Fackler | -1/+1 | |
| 2013-09-01 | Modernized a few type names in rustc and syntax | Marvin Löbel | -2/+2 | |
| 2013-08-11 | libsyntax: Update from `@Object` to `@mut Object` as required | Niko Matsakis | -1/+1 | |
| 2013-07-17 | librustc: Remove all uses of "copy". | Patrick Walton | -5/+1 | |
| 2013-07-17 | librustc: Add a lint mode for unnecessary `copy` and remove a bunch of them. | Patrick Walton | -5/+3 | |
| 2013-07-12 | Remove the global 'vec::to_owned' function | Alex Crichton | -3/+1 | |
| 2013-06-25 | great renaming propagation: syntax | Corey Richardson | -3/+2 | |
| 2013-06-13 | Revert "std: convert {vec,str}::to_owned to methods." | Brian Anderson | -1/+2 | |
| This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs | ||||
| 2013-06-12 | std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵ | Huon Wilson | -2/+0 | |
| .as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str). | ||||
| 2013-06-12 | std: convert {vec,str}::to_owned to methods. | Huon Wilson | -1/+1 | |
| 2013-06-05 | removed unused imports (and one unused argument) | John Clements | -1/+0 | |
| 2013-06-05 | remove interner from tt_reader | John Clements | -1/+0 | |
| 2013-06-05 | just use TLS interner | John Clements | -1/+2 | |
| 2013-05-29 | librustc: Stop reexporting the standard modules from prelude. | Patrick Walton | -0/+2 | |
| 2013-05-25 | Use an enum for keywords and intern them to improve parser performance | Björn Steinbrink | -2/+3 | |
| Currently, keywords are stored in hashsets that are recreated for every Parser instance, which is quite expensive since macro expansion creates lots of them. Additionally, the parser functions that look for a keyword currently accept a string and have a runtime check to validate that they actually received a keyword. By creating an enum for the keywords and inserting them into the ident interner, we can avoid the creation of the hashsets and get static checks for the keywords. For libstd, this cuts the parse+expansion part from ~2.6s to ~1.6s. | ||||
| 2013-05-22 | libextra: Rename the actual metadata names of libcore to libstd and libstd ↵ | Patrick Walton | -0/+2 | |
| to libextra | ||||
| 2013-05-22 | syntax/ext: modernise ext_ctxt to be CamelCase and use new. | Huon Wilson | -2/+2 | |
| 2013-05-20 | Remove all unnecessary allocations (as flagged by lint) | Alex Crichton | -1/+1 | |
| 2013-05-15 | Allow static strings to be used with keyword checks | Björn Steinbrink | -2/+2 | |
| 2013-05-10 | renamed vec::from_slice to vec::to_owned | Youngsoo Son | -1/+1 | |
| 2013-04-27 | only use #[no_core] in libcore | Daniel Micay | -2/+0 | |
| 2013-03-13 | librustc: Don't accept `as Trait` anymore; fix all occurrences of it. | Patrick Walton | -3/+5 | |
| 2013-03-04 | Adding missing imports for tests, and gate off others | Alex Crichton | -1/+0 | |
| 2013-03-02 | librustc: Stop parsing `fn@`, `fn~`, and `fn&` | Patrick Walton | -1/+1 | |
| 2013-02-26 | libsyntax: add some more explicit copies | Erick Tryzelaar | -1/+5 | |
| 2013-02-25 | libsyntax: is_keyword should take a &~str | Erick Tryzelaar | -2/+2 | |
| 2013-02-25 | libsyntax: convert visit to pass ty_params by reference | Erick Tryzelaar | -5/+9 | |
| 2013-02-21 | Get rid of structural records in libsyntax and the last bit in librustc. | Luqman Aden | -1/+1 | |
| 2013-01-29 | libsyntax: De-export libsyntax. rs=deexporting | Patrick Walton | -2/+2 | |
