| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-06-28 | Update tests | Dylan MacKenzie | -6/+21 | |
| 2020-06-26 | Explain move errors that occur due to method calls involving `self` | Aaron Hill | -1/+6 | |
| This is a re-attempt of #72389 (which was reverted in #73594) Instead of using `ExpnKind::Desugaring` to represent operators, this PR checks the lang item directly. | ||||
| 2020-06-24 | Provide suggestions for some moved value errors | Esteban Küber | -0/+228 | |
| When encountering an used moved value where the previous move happened in a `match` or `if let` pattern, suggest using `ref`. Fix #63988. When encountering a `&mut` value that is used in multiple iterations of a loop, suggest reborrowing it with `&mut *`. Fix #62112. | ||||
| 2020-06-22 | Revert "Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, ↵ | Aaron Hill | -6/+1 | |
| r=nikomatsakis" This reverts commit 372cb9b69c76a042d0b9d4b48ff6084f64c84a2c, reversing changes made to 5c61a8dc34c3e2fc6d7f02cb288c350f0233f944. | ||||
| 2020-06-15 | Rollup merge of #72598 - Aaron1011:feature/fnmut-capture-span, r=nikomatsakis | Ralf Jung | -0/+3 | |
| Display information about captured variable in `FnMut` error Fixes #69446 When we encounter a region error involving an `FnMut` closure, we display a specialized error message. However, we currently do not tell the user which upvar was captured. This makes it difficult to determine the cause of the error, especially when the closure is large. This commit records marks constraints involving closure upvars with `ConstraintCategory::ClosureUpvar`. When we decide to 'blame' a `ConstraintCategory::Return`, we additionall store the captured upvar if we found a `ConstraintCategory::ClosureUpvar` in the path. When generating an error message, we point to relevant spans if we have closure upvar information available. We further customize the message if an `async` closure is being returned, to make it clear that the captured variable is being returned indirectly. | ||||
| 2020-06-11 | Explain move errors that occur due to method calls involving `self` | Aaron Hill | -1/+6 | |
| 2020-06-04 | test: ui: skip tests which aren't appropriate for RISC-V | Tom Eccles | -7/+8 | |
| 2020-05-25 | Display information about captured variable in `FnMut` error | Aaron Hill | -0/+3 | |
| Fixes #69446 When we encounter a region error involving an `FnMut` closure, we display a specialized error message. However, we currently do not tell the user which upvar was captured. This makes it difficult to determine the cause of the error, especially when the closure is large. This commit records marks constraints involving closure upvars with `ConstraintCategory::ClosureUpvar`. When we decide to 'blame' a `ConstraintCategory::Return`, we additionall store the captured upvar if we found a `ConstraintCategory::ClosureUpvar` in the path. When generating an error message, we point to relevant spans if we have closure upvar information available. We further customize the message if an `async` closure is being returned, to make it clear that the captured variable is being returned indirectly. | ||||
| 2020-05-22 | Update tests | Matthew Jasper | -132/+50 | |
| 2020-05-08 | Skip tests on emscripten | Yuki Okushi | -0/+1 | |
| 2020-05-06 | Move tests from `test/run-fail` to UI | Yuki Okushi | -0/+11 | |
| 2020-05-02 | Report cannot move errors in promoted MIR | Matthew Jasper | -0/+51 | |
| 2020-04-11 | rustc: Add a warning count upon completion | RoccoDev | -4/+4 | |
| 2020-03-29 | Tweak `suggest_constraining_type_param` | Esteban Küber | -4/+3 | |
| Some of the bound restriction structured suggestions were incorrect while others had subpar output. | ||||
| 2020-03-26 | Update tests to use llvm_asm! | Amanieu d'Antras | -31/+31 | |
| 2020-03-22 | Fix invalid suggestion on `&mut` iterators yielding `&` references | Wonwoo Choi | -0/+23 | |
| 2020-03-09 | test(patterns): add borrowck tests for combination of pattern features | Matthew Kuo | -0/+432 | |
| Adds borrowck tests for the following features: - bindings_after_at - or_patterns - slice_patterns - box_patterns | ||||
| 2020-02-24 | parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token` | Vadim Petrochenkov | -9/+11 | |
| 2020-02-14 | Fix tests after rebase | Matthew Jasper | -49/+68 | |
| 2020-02-11 | Rollup merge of #68816 - estebank:fn-mut-closure, r=varkor | Dylan DPC | -130/+170 | |
| Tweak borrow error on `FnMut` when `Fn` is expected Fix #31701, fix #66097. | ||||
| 2020-02-11 | Auto merge of #68929 - matprec:consistent-issue-references, r=Dylan-DPC | bors | -1/+1 | |
| Make issue references consistent Fixes https://github.com/rust-lang/rust/issues/62976 cc https://github.com/rust-lang/rust/pull/63008 r? @varkor because you reviewed the original pr | ||||
| 2020-02-09 | --bless --compare-mode=nll | Matthias Prechtl | -1/+1 | |
| 2020-02-09 | Improve reporting errors and suggestions for trait bounds | Patryk Wychowaniec | -3/+7 | |
| 2020-02-08 | review comments | Esteban Küber | -6/+2 | |
| 2020-02-06 | rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. | Eduard-Mihai Burtescu | -2/+4 | |
| 2020-02-06 | rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace. | Eduard-Mihai Burtescu | -2/+2 | |
| 2020-02-03 | Tweak borrow error on `FnMut` when `Fn` is expected | Esteban Küber | -130/+174 | |
| 2020-02-03 | Auto merge of #67668 - matthewjasper:or-patterns, r=pnkfelix | bors | -0/+205 | |
| Implement MIR lowering for or-patterns This is the last thing needed to get meaningful run-pass tests for or-patterns. There probably need to be more tests before stabilizing this, but the most important cases should have been covered. Note: we can generate exponentially large MIR CFGs when using or-patterns containing bindings, type ascriptions, or that are for a match arm with a guard. `src/test/mir-opt/exponential-or.rs` shows the best case for what we currently do. cc #54883 closes #60350 closes #67514 cc @Centril r? @pnkfelix | ||||
| 2020-02-03 | Add more tests for or-patterns | Matthew Jasper | -0/+205 | |
| 2020-02-02 | compiletest: error if `compile-fail` header in ui test. | Tyler Lanphear | -14/+7 | |
| 2020-01-31 | Auto merge of #68080 - varkor:declared-here, r=petrochenkov | bors | -7/+7 | |
| Address inconsistency in using "is" with "declared here" "is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout. r? @Centril | ||||
| 2020-01-29 | Fix revision annotations in borrowck-feature-nll-overrides-migrate | Tomasz Miąsko | -2/+2 | |
| 2020-01-24 | Update new tests | varkor | -4/+4 | |
| 2020-01-24 | Normalise notes with the/is | varkor | -2/+2 | |
| 2020-01-24 | Normalise diagnostics with respect to "the X is declared/defined here" | varkor | -1/+1 | |
| 2020-01-18 | slice_patterns: address review comments | Mazdak Farrokhzad | -1/+0 | |
| 2020-01-18 | slice_patterns: remove gates in tests | Mazdak Farrokhzad | -185/+141 | |
| 2020-01-09 | Update tests | Vadim Petrochenkov | -3/+23 | |
| 2020-01-08 | slice patterns: harden match-based borrowck tests | Mazdak Farrokhzad | -0/+978 | |
| 2019-12-21 | Rollup merge of #67467 - matthewjasper:test-slice-patterns, r=oli-obk | Mazdak Farrokhzad | -0/+316 | |
| Test slice patterns more Adds tests for const evaluation and some more borrow checking tests. Fixes some bugs in const eval for subslice patterns. closes #66934 r? @oli-obk cc @Centril | ||||
| 2019-12-21 | Add more tests for slice patterns | Matthew Jasper | -0/+316 | |
| 2019-12-20 | Rollup merge of #67314 - matthewjasper:union-move-errors, r=nikomatsakis | Mazdak Farrokhzad | -0/+57 | |
| Don't suppress move errors for union fields closes #66500 | ||||
| 2019-12-19 | Don't suppress move errors for union fields | Matthew Jasper | -0/+57 | |
| 2019-12-18 | Add more tests for raw_ref_op | Matthew Jasper | -0/+268 | |
| 2019-12-14 | Revert "Remove `#![feature(never_type)]` from tests." | Niko Matsakis | -0/+2 | |
| This reverts commit 8f6197f39f7d468dfc5b2bd41dae4769992a2f83. | ||||
| 2019-12-09 | Add more tests for borrowck and dropck slice pattern handling | Matthew Jasper | -75/+817 | |
| 2019-11-28 | Deduplicate type param constraint suggestion code | Esteban Küber | -1/+1 | |
| 2019-11-28 | Use structured suggestion when requiring `Copy` constraint in type param | Esteban Küber | -2/+2 | |
| 2019-11-26 | Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC | Tyler Mandry | -29/+5 | |
| Various tweaks to diagnostic output | ||||
| 2019-11-25 | Tweak move error due to non-Copy | Esteban Küber | -29/+5 | |
