| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-12-27 | Fix `trace_macros` and `log_syntax` | Vadim Petrochenkov | -12/+18 | |
| 2018-12-27 | Get rid of `Block::recovered` | Vadim Petrochenkov | -1/+0 | |
| 2018-12-27 | Do not abort compilation if expansion produces errors | Vadim Petrochenkov | -14/+11 | |
| Fix a number of uncovered deficiencies in diagnostics | ||||
| 2018-12-25 | Remove licenses | Mark Rousskov | -110/+0 | |
| 2018-12-19 | Remove `eliminate_crate_var` and special pretty-printing for `$crate` | Vadim Petrochenkov | -6/+1 | |
| 2018-12-17 | Auto merge of #56737 - nnethercote:TokenStream-improvements, r=petrochenkov | bors | -3/+3 | |
| `TokenStream` improvements Some `TokenStream` improvements: shrinking `TokenStream` and some other types, and some other code clean-ups. | ||||
| 2018-12-15 | Rollup merge of #56679 - euclio:external-doc-parse, r=estebank | Pietro Albini | -12/+56 | |
| overhaul external doc attribute diagnostics This PR improves the error handling and spans for the external doc attribute. Many cases that silently failed before now emit errors, spans are tightened, and the errors have help and suggestions. I tried to address all the cases that users ran into in the tracking issue. cc #44732 r? @QuietMisdreavus | ||||
| 2018-12-12 | Rename `TokenStream::concat` and remove `TokenStream::concat_rc_vec`. | Nicholas Nethercote | -3/+3 | |
| `TokenStream::new` is a better name for the former, and the latter is now just equivalent to `TokenStream::Stream`. | ||||
| 2018-12-10 | improve diagnostics for invalid external docs | Andy Russell | -10/+26 | |
| 2018-12-10 | reject invalid external doc attributes | Andy Russell | -2/+30 | |
| Also, provide a suggestion for the correct syntax. | ||||
| 2018-12-10 | Remove `tokenstream::Delimited`. | Nicholas Nethercote | -32/+31 | |
| Because it's an extra type layer that doesn't really help; in a couple of places it actively gets in the way, and overall removing it makes the code nicer. It does, however, move `tokenstream::TokenTree` further away from the `TokenTree` in `quote.rs`. More importantly, this change reduces the size of `TokenStream` from 48 bytes to 40 bytes on x86-64, which is enough to slightly reduce instruction counts on numerous benchmarks, the best by 1.5%. Note that `open_tt` and `close_tt` have gone from being methods on `Delimited` to associated methods of `TokenTree`. | ||||
| 2018-12-08 | Auto merge of #56578 - alexreg:cosmetic-1, r=alexreg | bors | -20/+20 | |
| Various minor/cosmetic improvements to code r? @Centril 😄 | ||||
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -20/+20 | |
| 2018-12-07 | use top level `fs` functions where appropriate | Andy Russell | -54/+47 | |
| This commit replaces many usages of `File::open` and reading or writing with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code complexity, and will improve performance for most reads, since the functions allocate the buffer to be the size of the file. I believe that this commit will not impact behavior in any way, so some matches will check the error kind in case the file was not valid UTF-8. Some of these cases may not actually care about the error. | ||||
| 2018-12-07 | Unsupport `#[derive(Trait)]` sugar for `#[derive_Trait]` legacy plugin ↵ | Vadim Petrochenkov | -21/+0 | |
| attributes | ||||
| 2018-12-06 | Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakis | Pietro Albini | -12/+9 | |
| libsyntax_pos: A few tweaks | ||||
| 2018-12-06 | Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-file, ↵ | bors | -7/+11 | |
| r=michaelwoerister 53956 panic on include bytes of own file fix #53956 When using `include_bytes!` on a source file in the project, compiler would panic on subsequent compilations because `expand_include_bytes` would overwrite files in the source_map with no source. This PR changes `expand_include_bytes` to check source_map and use the already existing src, if any. | ||||
| 2018-12-04 | adds DocTest filename variant, refactors doctest_offset out of source_map, ↵ | Matthew Russo | -0/+1 | |
| fixes remaining test failures | ||||
| 2018-12-04 | updates all Filename variants to take a fingerprint | Matthew Russo | -4/+4 | |
| 2018-12-04 | new_source_file no longer enters duplicate files, expand_include_bytes ↵ | Matthew Russo | -3/+6 | |
| includes the source if it can convert bytes to string | ||||
| 2018-12-04 | Remove redundant clone | Shotaro Yamada | -1/+1 | |
| 2018-12-04 | Address review comments | Vadim Petrochenkov | -9/+7 | |
| 2018-12-04 | syntax: Remove `#[non_exhaustive]` from `Edition` | Vadim Petrochenkov | -1/+0 | |
| `Edition` is not a public API, we want users to break when a new edition is added | ||||
| 2018-12-04 | syntax: Rename some keywords | Vadim Petrochenkov | -2/+2 | |
| `CrateRoot` -> `PathRoot`, `::` doesn't necessarily mean crate root now `SelfValue` -> `SelfLower`, `SelfType` -> `SelfUpper`, both `self` and `Self` can be used in type and value namespaces now | ||||
| 2018-12-02 | Remove not used `DotEq` token | yui-knk | -1/+0 | |
| Currently libproc_macro does not use `DotEq` token. https://github.com/rust-lang/rust/pull/49545 changed libproc_macro to not generate `DotEq` token. | ||||
| 2018-12-01 | Rollup merge of #56268 - nnethercote:fold_opt_expr-recycle, r=petrochenkov | kennytm | -36/+48 | |
| Reuse the `P` in `InvocationCollector::fold_{,opt_}expr`. This requires adding a new method, `P::filter_map`. This commit reduces instruction counts for various benchmarks by up to 0.7%. | ||||
| 2018-11-27 | remove some unused vars | Mark Mansi | -6/+6 | |
| 2018-11-27 | remove feature gate | Mark Mansi | -39/+7 | |
| 2018-11-27 | Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakis | bors | -14/+54 | |
| Point at end of macro arm when encountering EOF Fix #52866. | ||||
| 2018-11-23 | Reword EOF in macro arm message | Esteban Küber | -1/+4 | |
| 2018-11-23 | Keep label on moved spans and point at macro invocation on parse error | Esteban Küber | -8/+12 | |
| 2018-11-23 | Point at macro arm when it doesn't expand to an expression | Esteban Küber | -3/+7 | |
| 2018-11-23 | Reword incorrect macro invocation primary label | Esteban Küber | -8/+20 | |
| 2018-11-23 | Add label when replacing primary DUMMY_SP in macro expansion | Esteban Küber | -0/+1 | |
| 2018-11-23 | Point at end of macro arm when encountering EOF | Esteban Küber | -2/+18 | |
| Fix #52866 | ||||
| 2018-11-21 | macro_literal_matcher: fixes per petrochenkov's review | Dan Aloni | -3/+3 | |
| 2018-11-21 | Stabilize macro_literal_matcher | Dan Aloni | -18/+13 | |
| 2018-11-20 | Reuse the `P` in `InvocationCollector::fold_{,opt_}expr`. | Nicholas Nethercote | -36/+48 | |
| This requires adding a new method, `P::filter_map`. This commit reduces instruction counts for various benchmarks by up to 0.7%. | ||||
| 2018-11-18 | resolve: Check resolution consistency for import paths and multi-segment ↵ | Vadim Petrochenkov | -0/+7 | |
| macro paths | ||||
| 2018-11-13 | Rollup merge of #55870 - waywardmonkeys:typo-fixes, r=wesleywiser | kennytm | -2/+2 | |
| Fix typos. | ||||
| 2018-11-12 | Make `MatcherPos::stack` a `SmallVec`. | Niko Matsakis | -34/+57 | |
| This avoids some allocations. | ||||
| 2018-11-11 | Fix typos. | Bruce Mitchener | -2/+2 | |
| 2018-11-08 | Rollup merge of #55777 - nnethercote:less-P-in-ast, r=petrochenkov | Mark Rousskov | -4/+4 | |
| Use `Lit` rather than `P<Lit>` in `ast::ExprKind`. Because it results in fewer allocations and small speedups on some benchmarks. | ||||
| 2018-11-08 | Use `Lit` rather than `P<Lit>` in `ast::ExprKind`. | Nicholas Nethercote | -4/+4 | |
| Because it results in fewer allocations and small speedups on some benchmarks. | ||||
| 2018-11-07 | Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco | kennytm | -1/+1 | |
| refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests). | ||||
| 2018-11-06 | refactor: use shorthand fields | teresy | -1/+1 | |
| 2018-11-05 | Auto merge of #55451 - estebank:arg-doc, r=pnkfelix | bors | -3/+3 | |
| Custom diagnostic when trying to doc comment argument When writing ``` pub fn f( /// Comment id: u8, ) {} ``` Produce a targeted diagnostic ``` error: documentation comments cannot be applied to method arguments --> $DIR/fn-arg-doc-comment.rs:2:5 | LL | /// Comment | ^^^^^^^^^^^ doc comments are not allowed here ``` Fix #54801. | ||||
| 2018-11-03 | Added support for trait aliases as object types. | Alexander Regueiro | -1/+1 | |
| 2018-11-01 | Rollup merge of #55558 - nnethercote:tweak-MatcherPos-matches, r=petrochenkov | Pietro Albini | -6/+13 | |
| Tweak `MatcherPos::matches` These changes reduce instruction counts on `sentry-cli-check` incremental builds by up to 2%. | ||||
| 2018-11-01 | Rollup merge of #55542 - ljedrz:syntax_alloc_improvements, r=kennytm | Pietro Albini | -0/+2 | |
| syntax: improve a few allocations Add 2 `reserve`s and a `with_capacity` where the final vector size is known. | ||||
