| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-07-05 | Merge remote-tracking branch 'origin/master' into proc_macro_api | Alex Crichton | -1/+1 | |
| 2017-06-29 | Change some terminology around keywords and reserved identifiers | petrochenkov | -1/+1 | |
| 2017-06-26 | Address review comments. | Jeffrey Seyfried | -1/+1 | |
| 2017-06-26 | Implement `quote!` and other `proc_macro` API. | Jeffrey Seyfried | -4/+8 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -20/+22 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-06 | Auto merge of #41990 - ↵ | bors | -0/+9 | |
| qnighy:disallow-underscore-suffix-for-string-like-literals, r=nikomatsakis Disallow underscore suffix for string-like literals. This patch turns string/bytestring/char/byte literals followed by an underscore, like `"Foo"_`, to an error. `scan_optional_raw_name` will parse `_` as a valid raw name, but it will be rejected by the parser. I also considered just stopping parsing when the suffix is `_`, but in that case `"Foo"_` will be lexed as two valid tokens. Fixes the latter half of #41723. | ||||
| 2017-05-31 | Add warning cycle #42326. | Masaki Hara | -1/+14 | |
| 2017-05-20 | remove "much" from unicode diagnostic | Andy Russell | -1/+1 | |
| 2017-05-16 | Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov | Mark Simulacrum | -62/+62 | |
| Fix some clippy warnings in libsyntax This is mostly removing stray ampersands, needless returns and lifetimes. Basically a lot of small changes. | ||||
| 2017-05-14 | Disallow underscore suffix for string-like literals. | Masaki Hara | -5/+1 | |
| 2017-05-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -62/+62 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-05-12 | Disallow ._ in float literal. | Masaki Hara | -3/+1 | |
| 2017-05-08 | Allow bare CR in ////-style comment. | Masaki Hara | -1/+1 | |
| 2017-05-04 | Remove use of `Self: Sized` from libsyntax | Tommy Ip | -1/+1 | |
| The bound is not required for compiling but it prevents using `next_token()` from a trait object. Fixes #33506. | ||||
| 2017-04-26 | Implement a file-path remapping feature in support of debuginfo and ↵ | Michael Woerister | -18/+18 | |
| reproducible builds. | ||||
| 2017-03-29 | Refactor how spans are combined in the parser. | Jeffrey Seyfried | -21/+25 | |
| 2017-03-18 | Parse 0e+10 as a valid floating-point literal | topecongiro | -1/+1 | |
| Fixes issue #40408. | ||||
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -13/+11 | |
| 2017-02-28 | Add warning cycle. | Jeffrey Seyfried | -0/+2 | |
| 2017-02-28 | rustc_save_analysis: don't pollute the codemap with fake files. | Eduard Burtescu | -8/+38 | |
| 2017-01-23 | Remove `open_span` and `close_span` from `Delimited`. | Jeffrey Seyfried | -5/+1 | |
| 2017-01-17 | Fix fallout in `rustdoc`. | Jeffrey Seyfried | -3/+3 | |
| 2017-01-17 | Refactor the parser to consume token trees. | Jeffrey Seyfried | -74/+0 | |
| 2017-01-17 | Introduce `string_reader.parse_all_token_trees()`. | Jeffrey Seyfried | -8/+180 | |
| 2017-01-17 | Give the `StringReader` a `sess: &ParseSess`. | Jeffrey Seyfried | -57/+50 | |
| 2016-11-30 | Rename 'librustc_unicode' crate to 'libstd_unicode'. | Corey Farwell | -1/+1 | |
| Fixes #26554. | ||||
| 2016-11-21 | Fix fallout in `rustdoc` and tests. | Jeffrey Seyfried | -4/+5 | |
| 2016-11-20 | Move `syntax::util::interner` -> `syntax::symbol`, cleanup. | Jeffrey Seyfried | -33/+34 | |
| 2016-11-04 | Remove field `TtReader::next_tok`. | Jeffrey Seyfried | -2/+2 | |
| 2016-11-03 | Move doc comment desugaring into the parser. | Jeffrey Seyfried | -1/+1 | |
| 2016-11-03 | Avoid recontructing the `Parser` in `macro_parser.rs`. | Jeffrey Seyfried | -21/+0 | |
| 2016-10-20 | Refactor parser lookahead buffer and increase its size | Vadim Petrochenkov | -0/+6 | |
| 2016-10-19 | Rollup merge of #37208 - jseyfried:fix_partially_consumed_tokens_in_macros, ↵ | Eduard-Mihai Burtescu | -3/+24 | |
| r=nrc macros: fix partially consumed tokens in macro matchers Fixes #37175. This PR also avoids re-transcribing the tokens consumed by a matcher (and cloning the `TtReader` once per matcher), which improves expansion performance of the test case from #34630 by ~8%. r? @nrc | ||||
| 2016-10-18 | Fix some pretty printing tests | Vadim Petrochenkov | -16/+30 | |
| 2016-10-17 | Fix partially consumed tokens in macro matchers. | Jeffrey Seyfried | -3/+24 | |
| 2016-10-05 | Clarify StringReader::bump. | Nicholas Nethercote | -13/+16 | |
| This commit renames the variables to make it clearer which char each one refers to. It also slightly reorders and rearranges some statements. | ||||
| 2016-10-05 | Rename StringReader::curr as ch. | Nicholas Nethercote | -99/+99 | |
| Likewise, rename StringReader::curr_is as ch_is. This is a [breaking-change] for libsyntax. | ||||
| 2016-10-05 | Rename StringReader::last_pos as pos. | Nicholas Nethercote | -100/+100 | |
| This is a [breaking-change] for libsyntax. | ||||
| 2016-10-05 | Rename StringReader::pos as next_pos. | Nicholas Nethercote | -18/+18 | |
| This is a [breaking-change] for libsyntax. | ||||
| 2016-10-03 | Simplify `start_bpos` calculation in scan_comment(). | Nicholas Nethercote | -5/+1 | |
| The two branches of this `if` compute the same value. This commit gets rid of the first branch, which makes this calculation identical to the one in scan_block_comment(). | ||||
| 2016-10-03 | Streamline StringReader::bump. | Nicholas Nethercote | -3/+1 | |
| First, assert! is redundant w.r.t. the unwrap() immediately afterwards. Second, `byte_offset_diff` is effectively computed as `current_byte_offset + ch.len_utf8() - current_byte_offset` (with `next` as an intermediate) which is silly and can be simplified. | ||||
| 2016-09-23 | reviewer comments and rebasing | Nick Cameron | -23/+0 | |
| 2016-09-22 | Adds a `ProcMacro` form of syntax extension | Nick Cameron | -6/+52 | |
| This commit adds syntax extension forms matching the types for procedural macros 2.0 (RFC #1566), these still require the usual syntax extension boiler plate, but this is a first step towards proper implementation and should be useful for macros 1.1 stuff too. Supports both attribute-like and function-like macros. | ||||
| 2016-08-07 | Fix old call in lexer tests | Jonathan Turner | -3/+1 | |
| 2016-07-14 | Remove BasicEmitter | Jonathan Turner | -1/+1 | |
| 2016-07-03 | prefer `if let` to match with `None => {}` arm in some places | Zack M. Davis | -8/+5 | |
| This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block. | ||||
| 2016-06-23 | make old school mode a bit more configurable | Jonathan Turner | -1/+4 | |
| 2016-06-23 | Address more travis errors | Jonathan Turner | -1/+1 | |
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -25/+27 | |
| 2016-06-16 | Add an abs_path member to FileMap, use it when writing debug info. | Ted Mielczarek | -2/+2 | |
| When items are inlined from extern crates, the filename in the debug info is taken from the FileMap that's serialized in the rlib metadata. Currently this is just FileMap.name, which is whatever path is passed to rustc. Since libcore and libstd are built by invoking rustc with relative paths, they wind up with relative paths in the rlib, and when linked into a binary the debug info uses relative paths for the names, but since the compilation directory for the final binary, tools trying to read source filenames will wind up with bad paths. We noticed this in Firefox with source filenames from libcore/libstd having bad paths. This change stores an absolute path in FileMap.abs_path, and uses that if available for writing debug info. This is not going to magically make debuggers able to find the source, but it will at least provide sensible paths. | ||||
