| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-12-08 | Rollup merge of #56248 - estebank:suggest-bare-pub, r=petrochenkov | Mazdak Farrokhzad | -20/+48 | |
| Suggest an appropriate token when encountering `pub Ident<'a>` Fix #55403. Follow up to #45997. | ||||
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -14/+14 | |
| 2018-12-06 | Auto merge of #56392 - petrochenkov:regensym, r=oli-obk | bors | -14/+13 | |
| Delay gensym creation for "underscore items" (`use foo as _`/`const _`) until name resolution So they cannot be cloned by macros. See https://github.com/rust-lang/rust/pull/56303 for the discussion. Mostly fix cross-crate use of underscore items by inverting the "gensyms are lost in metadata" bug as described in https://github.com/rust-lang/rust/pull/56303#issuecomment-442464695. Fix unused import warnings for single-segment imports (first commit) and `use crate_name as _` imports (as specified in https://github.com/rust-lang/rust/pull/56303#issuecomment-442274118). Prohibit accidentally implemented `static _: TYPE = EXPR;` (cc https://github.com/rust-lang/rust/pull/55983). Add more tests for `use foo as _` imports. | ||||
| 2018-12-06 | Rollup merge of #56500 - ljedrz:cleanup_rest_of_const_lifetimes, r=zackmdavis | Pietro Albini | -3/+3 | |
| cleanup: remove static lifetimes from consts A follow-up to https://github.com/rust-lang/rust/pull/56497. | ||||
| 2018-12-06 | Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakis | Pietro Albini | -5/+5 | |
| libsyntax_pos: A few tweaks | ||||
| 2018-12-06 | Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-file, ↵ | bors | -10/+15 | |
| 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-05 | Auto merge of #55466 - sinkuu:cleanup, r=petrochenkov | bors | -47/+32 | |
| syntax: Use iterator and pattern APIs instead of `char_at` Iterating over chars with the `char_at(str, i)` `i += ch.len_utf8()` loop seems unidiomatic. | ||||
| 2018-12-05 | Fix pretty test | Shotaro Yamada | -1/+1 | |
| 2018-12-04 | adds DocTest filename variant, refactors doctest_offset out of source_map, ↵ | Matthew Russo | -5/+7 | |
| fixes remaining test failures | ||||
| 2018-12-04 | updates all Filename variants to take a fingerprint | Matthew Russo | -5/+8 | |
| 2018-12-04 | cleanup: remove static lifetimes from consts | ljedrz | -3/+3 | |
| 2018-12-04 | Use iterator and pattern APIs instead of `char_at` | Shotaro Yamada | -47/+32 | |
| 2018-12-04 | Address review comments | Vadim Petrochenkov | -2/+2 | |
| 2018-12-04 | syntax: Rename some keywords | Vadim Petrochenkov | -3/+3 | |
| `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-03 | Rollup merge of #56438 - yui-knk:remove_not_used_DotEq_token, r=petrochenkov | kennytm | -4/+1 | |
| Remove not used `DotEq` token 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-03 | Rollup merge of #56433 - yui-knk:update_comment_of_parse_visibility, ↵ | kennytm | -3/+4 | |
| r=petrochenkov Add description about `crate` for parse_visibility's comment This rule was introduced by https://github.com/rust-lang/rust/pull/45401. | ||||
| 2018-12-03 | Rollup merge of #56419 - mark-i-m:remove-try, r=Centril | kennytm | -4/+2 | |
| Remove some uses of try! | ||||
| 2018-12-02 | Remove not used `DotEq` token | yui-knk | -4/+1 | |
| 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-02 | Delay gensym creation for "underscore items" until name resolution | Vadim Petrochenkov | -14/+13 | |
| Prohibit `static _` Fis unused import warnings for `use foo as _` Add more tests for `use foo as _` | ||||
| 2018-12-02 | Fix "line longer than 100 chars" | yui-knk | -3/+4 | |
| 2018-12-02 | Add description about `crate` for parse_visibility's comment | yui-knk | -1/+1 | |
| This rule was introduced by https://github.com/rust-lang/rust/pull/45401. | ||||
| 2018-12-01 | remove some uses of try! | Mark Mansi | -4/+2 | |
| 2018-12-01 | resolve: Support aliasing local crate root in extern prelude | Vadim Petrochenkov | -1/+5 | |
| 2018-11-30 | Use appropriate terminology based on heuristic | Esteban Küber | -13/+24 | |
| 2018-11-30 | Suggest an appropriate token when encountering `pub Ident<'a>` | Esteban Küber | -11/+28 | |
| 2018-12-01 | Rollup merge of #56336 - nnethercote:clean-up-pp, r=nikomatsakis | kennytm | -1/+1 | |
| Clean up and streamline the pretty-printer Some minor improvements. | ||||
| 2018-11-29 | Rollup merge of #56330 - estebank:cleanup-span, r=zackmdavis | Guillaume Gomez | -2/+2 | |
| Clean up span in non-trailing `..` suggestion | ||||
| 2018-11-29 | Rollup merge of #56255 - jasonl:update-old-documents, r=michaelwoerister | Guillaume Gomez | -3/+2 | |
| Update outdated code comments in StringReader For the detection of newlines in the lexer, this is now done in `analyze_source_file.rs`. | ||||
| 2018-11-29 | Rollup merge of #56220 - estebank:suggest-lifetime-move, r=nikomatsakis | Guillaume Gomez | -8/+45 | |
| Suggest appropriate place for lifetime when declared after type arguments | ||||
| 2018-11-29 | Use `Cow` in `Token::String`. | Nicholas Nethercote | -1/+1 | |
| `Printer::word` takes a `&str` and converts it into a `String`, which causes an allocation. But that allocation is rarely necessary, because `&str` is almost always a `&'static str` or a `String` that won't be used again. This commit changes `Token::String` so it holds a `Cow<'static, str>` instead of a `String`, which avoids a lot of allocations. | ||||
| 2018-11-28 | Clean up span in non-trailing `..` suggestion | Esteban Küber | -2/+2 | |
| 2018-11-26 | Specify suggestion applicability | Esteban Küber | -1/+2 | |
| 2018-11-27 | resolve: Implement edition hygiene for imports and absolute paths | Vadim Petrochenkov | -16/+13 | |
| Use per-span hygiene in a few other places in resolve Prefer `rust_2015`/`rust_2018` helpers to comparing editions | ||||
| 2018-11-26 | Update outdated code comments in StringReader | Jason Langenauer | -3/+2 | |
| 2018-11-26 | Emit one diagnostic for multiple misplaced lifetimes | Esteban Küber | -12/+19 | |
| 2018-11-25 | Move lifetimes before the *first* type argument | Esteban Küber | -1/+3 | |
| 2018-11-25 | Suggest appropriate place for lifetime when declared after type arguments | Esteban Küber | -8/+35 | |
| 2018-11-22 | Rollup merge of #56002 - Axary:master, r=estebank | Guillaume Gomez | -2/+13 | |
| fix #55972: Erroneous self arguments on bare functions emit subpar compilation error #55972 r? @estebank | ||||
| 2018-11-20 | improve error note | Axary | -1/+1 | |
| 2018-11-19 | Auto merge of #55971 - SergioBenitez:skip-non-semantic, r=alexcrichton | bors | -2/+3 | |
| Ignore non-semantic tokens for 'probably_eq' streams. Improves the situation in #43081 by skipping typically non-semantic tokens when checking for 'probably_eq'. r? @alexcrichton | ||||
| 2018-11-16 | Ignore non-semantic tokens for 'probably_eq' streams. | Sergio Benitez | -2/+3 | |
| 2018-11-16 | fix tidy (remove whitespace) | Axary | -1/+1 | |
| 2018-11-16 | improve error when self is used as not the first argument | Axary | -8/+9 | |
| 2018-11-16 | add a note to the error message | Axary | -1/+4 | |
| 2018-11-16 | eat CloseDelim | Axary | -2/+9 | |
| 2018-11-14 | Clean up some non-mod-rs stuff. | Eric Huss | -15/+1 | |
| 2018-11-12 | Change `Lit::short_name` to `Lit::literal_name`. | Nicholas Nethercote | -8/+8 | |
| This avoids a moderately hot allocation in `parse_lit_token`. | ||||
| 2018-11-08 | Rollup merge of #55777 - nnethercote:less-P-in-ast, r=petrochenkov | Mark Rousskov | -1/+1 | |
| 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 | -1/+1 | |
| 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). | ||||
