| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-11-04 | Auto merge of #54861 - rep-nop:find_main_in_doctest, r=estebank | bors | -9/+64 | |
| rustdoc: Replaces fn main search and extern crate search with proper parsing during doctests. Fixes #21299. Fixes #33731. Let me know if there's any additional changes you'd like made! | ||||
| 2018-11-03 | Extended elaboration for trait aliases to include arbitrary bounds. | Alexander Regueiro | -5/+5 | |
| 2018-11-03 | Added support for trait aliases as object types. | Alexander Regueiro | -1/+1 | |
| 2018-11-02 | implement existing parser fns in terms of fallible fns | QuietMisdreavus | -14/+4 | |
| 2018-11-01 | buffer errors from initial tokenization when parsing | QuietMisdreavus | -3/+68 | |
| 2018-10-29 | Rename other occs of (Code/File)Map to Source(Map/File) #51574 | David Lavati | -58/+58 | |
| 2018-10-29 | Fix regression | Esteban Küber | -1/+1 | |
| 2018-10-29 | Rollup merge of #55384 - nnethercote:better-integer_lit-float_lit, ↵ | Pietro Albini | -4/+19 | |
| r=michaelwoerister Avoid unnecessary allocations in `float_lit` and `integer_lit`. This commit avoids an allocation when parsing any float and integer literals that don't involved underscores. This reduces the number of allocations done for the `tuple-stress` benchmark by 10%, reducing its instruction count by just under 1%. | ||||
| 2018-10-28 | Use token description in "expected/found" parse messages | Esteban Küber | -23/+25 | |
| 2018-10-28 | Provide specific label for patern parsing error | Esteban Küber | -18/+24 | |
| 2018-10-28 | Point at `match` when a parse failure ocurrs inside of it | Esteban Küber | -1/+5 | |
| 2018-10-28 | Produce targeted diagnostic when using doc comments on fn args | Esteban Küber | -1/+36 | |
| Before parsing argument names and types, try to consume an incorrectly included doc comment or attribute in order to recover and continue parsing the rest of the fn definition. | ||||
| 2018-10-28 | Auto merge of #55192 - cramertj:nested-mod, r=petrochenkov | bors | -0/+11 | |
| Fix ordering of nested modules in non-mod.rs mods Flatten relative offset into directory path before adding inline (mod x { ... }) module names to the current directory path. Fix #55094 | ||||
| 2018-10-26 | Avoid unnecessary allocations in `float_lit` and `integer_lit`. | Nicholas Nethercote | -4/+19 | |
| This commit avoids an allocation when parsing any float and integer literals that don't involved underscores. This reduces the number of allocations done for the `tuple-stress` benchmark by 10%, reducing its instruction count by just under 1%. | ||||
| 2018-10-26 | rebasing and reviewer changes | Nick Cameron | -1/+1 | |
| Primarily refactoring `(Ident, Option<NodeId>)` to `Segment` | ||||
| 2018-10-26 | Give each PathSegment a NodeId | Nick Cameron | -2/+2 | |
| 2018-10-21 | Fix a few tests with target-specific output | Vadim Petrochenkov | -1/+1 | |
| Enable one fully ignored test | ||||
| 2018-10-19 | Prefer unwrap_or_else to unwrap_or in case of function calls/allocations | ljedrz | -1/+1 | |
| 2018-10-18 | Fix ordering of nested modules in non-mod.rs mods | Taylor Cramer | -0/+11 | |
| Flatten relative offset into directory path before adding inline (mod x { ... }) module names to the current directory path. Fix #55094 | ||||
| 2018-10-14 | Support underscore as constant name | Donato Sciarra | -1/+7 | |
| Issue: 54912 | ||||
| 2018-10-12 | Rollup merge of #54967 - holmgr:master, r=estebank | kennytm | -0/+5 | |
| Remove incorrect span for second label inner macro invocation A fix for issue #54841 | ||||
| 2018-10-12 | Auto merge of #53933 - GuillaumeGomez:codeblock-error-display, r=QuietMisdreavus | bors | -0/+13 | |
| Improve error display for codeblocks in rustdoc Part of #53919. r? @QuietMisdreavus | ||||
| 2018-10-11 | Auto merge of #54850 - mcr431:fix-54707-trait-function-from-macro, ↵ | bors | -0/+17 | |
| r=nikomatsakis Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls Previously parsing trait items only handled opening brace token and semicolon, I added a branch to the match statement that will also handle interpolated blocks. | ||||
| 2018-10-10 | Rollup merge of #54893 - dsciarra:issue-54379, r=pnkfelix | Manish Goregaokar | -0/+3 | |
| Fixes #47311. r? @nrc | ||||
| 2018-10-10 | Rollup merge of #54862 - Havvy:cfg_attr_multi, r=petrochenkov | Manish Goregaokar | -1/+1 | |
| Fixes #47311. r? @nrc | ||||
| 2018-10-10 | Remove incorrect span for second label inner macro invocation | holmgr | -0/+5 | |
| 2018-10-08 | parse_trait_item_ now handles interpolated blocks as function body decls | Matthew Russo | -0/+17 | |
| 2018-10-07 | Fix internal compiler error on malformed match arm pattern. | Donato Sciarra | -0/+3 | |
| Issue: 54379 | ||||
| 2018-10-05 | cfg_attr_multi: Basic implementation | Havvy (Ryan Scheel) | -1/+1 | |
| Does not implement the warning or a feature flag. | ||||
| 2018-10-05 | Rollup merge of #54833 - abonander:issue-54441, r=petrochenkov | Pietro Albini | -12/+11 | |
| make `Parser::parse_foreign_item()` return a foreign item or error Fixes `Parser::parse_foreign_item()` to follow the convention of `parse_trait_item()` and `parse_impl_item()` in that it *must* parse an item or return an error, and then the caller is responsible for detecting the closing delimiter. This prevents it from looping endlessly on an unexpected token in `ext/expand.rs` where it was also leaking memory by continually pushing to `Parser::expected_tokens` via `Parser::check_keyword()`. closes #54441 r? @petrochenkov cc @dtolnay | ||||
| 2018-10-05 | add suggestion for inverted function parameters | Andy Russell | -1/+20 | |
| Fixes #54065. | ||||
| 2018-10-05 | make `Parser::parse_foreign_item()` return a foreign item or error | Austin Bonander | -12/+11 | |
| closes #54441 | ||||
| 2018-09-29 | Add a sentence before rustc errors | Guillaume Gomez | -1/+3 | |
| 2018-09-29 | Improve error display for codeblocks in rustdoc | Guillaume Gomez | -0/+11 | |
| 2018-09-27 | Auto merge of #52319 - tinco:issue_12590, r=pnkfelix | bors | -5/+12 | |
| Track whether module declarations are inline (fixes #12590) To track whether module declarations are inline I added a field `inline: bool` to `ast::Mod`. The main use case is for pretty to know whether it should render the items associated with the module, but perhaps there are use cases for this information to not be forgotten in the AST. | ||||
| 2018-09-23 | Fixed off-by-one span. | David Wood | -1/+1 | |
| Fixes the off-by-one span issue where closure argument spans were pointing to the token after the argument. | ||||
| 2018-09-22 | Rollup merge of #54415 - petrochenkov:norollback, r=estebank | Pietro Albini | -36/+26 | |
| parser: Tweak function parameter parsing to avoid rollback on succesfull path Since rollback is not perfect and may e.g. leave non-fatal errors after it, we need to make sure compilation fails if it happens. So in particular case of `fn parse_arg_general` we need to parse the "good" `TYPE` first and only then rollback and recover erroneous `PAT: TYPE` if necessary. Found when working on https://github.com/rust-lang/rfcs/pull/2544#issuecomment-423293222. r? @ghost | ||||
| 2018-09-22 | Rollup merge of #54409 - estebank:remove-in, r=pnkfelix | Pietro Albini | -9/+25 | |
| Detect `for _ in in bar {}` typo Fix #36611, #52964, without modifying the parsing of emplacement `in` to avoid further problems like #50832. | ||||
| 2018-09-22 | Rollup merge of #54261 - varkor:dyn-keyword-2018, r=petrochenkov | Pietro Albini | -2/+4 | |
| Make `dyn` a keyword in the 2018 edition Proposed in https://github.com/rust-lang/rust/issues/44662#issuecomment-421596088. | ||||
| 2018-09-20 | Detect `for _ in in bar {}` typo | Esteban Küber | -9/+25 | |
| 2018-09-21 | parser: Tweak function parameter parsing to avoid rollback on succesfull path | Vadim Petrochenkov | -36/+26 | |
| 2018-09-17 | Whitespace fix again. | Vitaly _Vi Shukela | -5/+5 | |
| 2018-09-17 | Fill in suggestions Applicability according to @estebank | Vitaly _Vi Shukela | -5/+6 | |
| Also fix some formatting along the way. | ||||
| 2018-09-16 | Treat `dyn` as a keyword in the 2018 edition | varkor | -2/+4 | |
| 2018-09-16 | Remove usages of span_suggestion without Applicability | Vitaly _Vi Shukela | -1/+5 | |
| Use Applicability::Unspecified for all of them instead. | ||||
| 2018-09-15 | issue 54109: use short suggestions | Vitaly _Vi Shukela | -4/+4 | |
| 2018-09-13 | Use span_suggestion_with_applicability for "and/or" hinter | Vitaly _Vi Shukela | -4/+24 | |
| Advised by @estebank. | ||||
| 2018-09-13 | Suggest && and || instead of 'and' and 'or' | Vitaly _Vi Shukela | -0/+13 | |
| Closes #54109. | ||||
| 2018-09-10 | pretty=expanded should expand mod declarations | Tinco Andringa | -3/+3 | |
| 2018-09-10 | Track whether module declarations are inline (fixes #12590) | Tinco Andringa | -5/+12 | |
