| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-07-03 | Migrate compile-pass annotations to build-pass | Yuki Okushi | -1/+1 | |
| 2019-06-30 | Feature gate `rustc` attributes harder | Vadim Petrochenkov | -2/+14 | |
| 2019-06-30 | Make sure `#[rustc_doc_only_macro]` and other rustc attributes are registered | Vadim Petrochenkov | -15/+10 | |
| 2019-06-04 | Remove asterisk suggestion for move errors in borrowck | Kenny Goodin | -22/+22 | |
| As per issue #54985 removes the not useful suggestion to remove asterisk in move errors. Includes minor changes to tests in the `ui` suite to account for the removed suggestion. | ||||
| 2019-06-03 | Update tests for changes to cannot move errors | Matthew Jasper | -831/+365 | |
| 2019-05-29 | Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centril | bors | -10/+10 | |
| Warn on bare_trait_objects by default The `bare_trait_objects` lint is set to `warn` by default. Most ui tests have been updated to use `dyn` to avoid creating noise in stderr files. r? @Centril cc #54910 | ||||
| 2019-05-29 | Rollup merge of #61217 - estebank:issue-52820, r=Centril | Oliver Scherer | -0/+39 | |
| Account for short-hand init structs when suggesting conversion Fix #52820. | ||||
| 2019-05-29 | Update ui test suite to use dyn | memoryruins | -10/+10 | |
| 2019-05-27 | Auto merge of #61147 - estebank:suggest-as-ref, r=oli-obk | bors | -0/+99 | |
| When encountering move error on an `Option`, suggest using `as_ref` Fix #61109, cc #15457. | ||||
| 2019-05-26 | Account for short-hand init structs when suggesting conversion | Esteban Küber | -0/+39 | |
| 2019-05-25 | Add support for suggesting as_ref to Result accesses | Esteban Küber | -1/+46 | |
| 2019-05-24 | When encountering move error on an `Option`, suggest using `as_ref` | Esteban Küber | -0/+54 | |
| 2019-05-24 | Suggest borrowing for loop head on move error | Esteban Küber | -5/+4 | |
| 2019-05-23 | Add regression test for negative case | Esteban Küber | -4/+47 | |
| 2019-05-22 | Suggest dereferencing on assignment to mutable borrow | Esteban Küber | -0/+21 | |
| 2019-05-18 | Auto merge of #60252 - davidtwco:issue-57672, r=Mark-Simulacrum | bors | -0/+14 | |
| Don't suggest changing extern crate w/ alias to use. Fixes #57672. | ||||
| 2019-05-12 | Remove feature(nll) when compare mode is sufficient | Matthew Jasper | -208/+200 | |
| 2019-05-12 | Change compare mode to use -Zborrowck=mir | Matthew Jasper | -0/+11 | |
| 2019-05-03 | Rollup merge of #60393 - estebank:pat-sugg, r=oli-obk | Mazdak Farrokhzad | -0/+93 | |
| Do not suggest incorrect syntax on pattern type error due to borrow Fix #55174. | ||||
| 2019-04-30 | review comments: change wording | Esteban Küber | -5/+4 | |
| 2019-04-29 | Add if let test | Esteban Küber | -1/+14 | |
| 2019-04-29 | review comments | Esteban Küber | -1/+1 | |
| 2019-04-29 | add tests | Esteban Küber | -0/+81 | |
| 2019-04-29 | Suggest try_into when possible | Esteban Küber | -63/+45 | |
| 2019-04-25 | Do not suggest use over extern crate w/ alias. | David Wood | -15/+1 | |
| This commit stops `unused_extern_crates` lints from occuring on `extern crate` statements that alias the crate as the suggestion to change to a `use` statement would result in the aliased name no longer being added to the prelude, thereby causing compilation errors if other imports expected this to be the case. | ||||
| 2019-04-25 | Add test for current behaviour. | David Wood | -0/+28 | |
| This commit adds a test that causes a suggestion to replace `extern crate` with `use` when doing so would cause a compliation error, as the new name of the import would not be added to the prelude if a `use` was used. | ||||
| 2019-04-25 | Rollup merge of #59697 - euclio:label-fixes, r=zackmdavis | Mazdak Farrokhzad | -3/+15 | |
| tweak unresolved label suggestion Only suggest label names in the same hygiene context, and use a structured suggestion. Question for reviewer: Is this the right way to check for label hygiene? | ||||
| 2019-04-23 | Auto merge of #60155 - davidtwco:issue-59819, r=oli-obk | bors | -0/+109 | |
| Suggest dereferencing when `Deref` is implemented. Fixes #59819. r? @oli-obk cc @estebank | ||||
| 2019-04-22 | Only make suggestion when type is `Copy`. | David Wood | -5/+43 | |
| This commit makes the suggestion to dereference when a type implements `Deref` only apply if the dereference would succeed (ie. the type is `Copy`, otherwise a borrow check error would occur). | ||||
| 2019-04-22 | update tests for migrate mode by default | Matthew Jasper | -29/+5 | |
| 2019-04-21 | Suggest dereferencing when `Deref` is implemented. | David Wood | -3/+30 | |
| This commit suggests dereferencing a type when it implements `Deref` with the correct `Output` associated type. | ||||
| 2019-04-21 | Add existing behaviour test for deref suggestions. | David Wood | -0/+44 | |
| This commit adds a test that demonstrates the current behaviour where suggestions to add a dereference aren't given for non-references. | ||||
| 2019-04-18 | Suggest appropriate path when calling associated item on bare types | Esteban Küber | -0/+31 | |
| When looking at the documentation for `std::f32` or `std::str`, for example, it is easy to get confused and assume `std::f32` and `f32` are the same thing. Because of this, it is not uncommon to attempt writing `f32::consts::PI` instead of the correct `std::f32::consts::PI`. When encountering the former, which results in an access error due to it being an inexistent path, try to access the same path under `std`. If this succeeds, this information is stored for later tweaking of the final E0599 to provide an appropriate suggestion. This suggestion applies to both E0233 and E0599 and is only checked when the first ident of a path corresponds to a primitive type. | ||||
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -6/+5 | |
| 2019-04-12 | Rollup merge of #59862 - estebank:tweak-unstable-diag, r=petrochenkov | Mazdak Farrokhzad | -3/+6 | |
| Tweak unstable diagnostic output | ||||
| 2019-04-11 | Reword tracking issue note | Esteban Küber | -3/+3 | |
| 2019-04-10 | Tweak unstable diagnostic output | Esteban Küber | -3/+6 | |
| 2019-04-09 | improve unknown enum variant errors | Andy Russell | -13/+61 | |
| 2019-04-04 | tweak unresolved label suggestion | Andy Russell | -3/+15 | |
| Only suggest label names in the same hygiene context, and use a structured suggestion. | ||||
| 2019-03-31 | Only mention const generics if enabled. | David Wood | -4/+4 | |
| This commit updates the generic parameter re-ordering diagnostic to only mention const generics if the feature is enabled. | ||||
| 2019-03-29 | Rollup merge of #59473 - estebank:borrow-sugg-inside-macro, r=davidtwco | Mazdak Farrokhzad | -0/+32 | |
| Do not emit incorrect borrow suggestion involving macros and fix overlapping multiline spans Fix #58298. | ||||
| 2019-03-28 | Rollup merge of #59429 - estebank:for-loop-move-nll, r=petrochenkov | Mazdak Farrokhzad | -4/+5 | |
| When moving out of a for loop head, suggest borrowing it in nll mode Follow up to #59195 for NLL. | ||||
| 2019-03-27 | Account for fully overlapping multiline annotations | Esteban Küber | -12/+9 | |
| When two multiline span labels point at the same span, we special case the output to avoid weird behavior: ``` foo( _____^ |_____| || bar, || ); || ^ ||______| |______foo baz ``` instead showing ``` foo( _____^ | bar, | ); | ^ | | |______foo baz ``` | ||||
| 2019-03-27 | Add test | Esteban Küber | -0/+35 | |
| 2019-03-27 | Rollup merge of #59268 - estebank:from-string, r=QuietMisdreavus | Josh Stone | -0/+23 | |
| Add suggestion to use `&*var` when `&str: From<String>` is expected Fix #53879. | ||||
| 2019-03-26 | Rollup merge of #59267 - estebank:assoc-const-as-field, r=davidtwco | Mazdak Farrokhzad | -0/+24 | |
| Provide suggestion when using field access instead of path When trying to access an associated constant as if it were a field of an instance, provide a suggestion for the correct syntax. Fix #57316. | ||||
| 2019-03-26 | Rollup merge of #59150 - estebank:type-ascription, r=varkor | Mazdak Farrokhzad | -0/+79 | |
| Expand suggestions for type ascription parse errors Fix #51222. CC #48016, #47666, #54516, #34255. | ||||
| 2019-03-25 | When moving out of a for loop head, suggest borrowing it in nll mode | Esteban Küber | -4/+5 | |
| 2019-03-25 | Auto merge of #59258 - euclio:suggestions-filter-crate, r=oli-obk | bors | -0/+23 | |
| filter suggestions from extern prelude Fixes #59027. Modifies the candidate gathering code to call `filter_fn` on extern crates, which causes them to be filtered out when looking for a type. | ||||
| 2019-03-24 | Deduplicate code for path suggestion | Esteban Küber | -1/+1 | |
