about summary refs log tree commit diff
path: root/src/test/ui/binop/binop-move-semantics.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-118/+0
2022-12-13Stop pointing to operators if their libcore method source is not availableOli Scherer-12/+2
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-6/+10
available
2022-11-23Suggest `.clone()` or `ref binding` on E0382Esteban Küber-0/+4
2022-06-28Remove redundant logic to suggest `as_ref`Michael Goulet-2/+14
2021-09-25Use larger span for adjustments on method callsAaron Hill-1/+1
Currently, we use a relatively 'small' span for THIR expressions generated by an 'adjustment' (e.g. an autoderef, autoborrow, unsizing). As a result, if a borrow generated by an adustment ends up causing a borrowcheck error, for example: ```rust let mut my_var = String::new(); let my_ref = &my_var my_var.push('a'); my_ref; ``` then the span for the mutable borrow may end up referring to only the base expression (e.g. `my_var`), rather than the method call which triggered the mutable borrow (e.g. `my_var.push('a')`) Due to a quirk of the MIR borrowck implementation, this doesn't always get exposed in migration mode, but it does in many cases. This commit makes THIR building consistently use 'larger' spans for adjustment expressions The intent of this change it make it clearer to users when it's the specific way in which a variable is used (for example, in a method call) that produdes a borrowcheck error. For example, an error message claiming that a 'mutable borrow occurs here' might be confusing if it just points at a usage of a variable (e.g. `my_var`), when no `&mut` is in sight. Pointing at the entire expression should help to emphasize that the method call itself is responsible for the mutable borrow. In several cases, this makes the `#![feature(nll)]` diagnostic output match up exactly with the default (migration mode) output. As a result, several `.nll.stderr` files end up getting removed entirely.
2021-08-11Modify structured suggestion outputEsteban Küber-2/+2
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2020-07-27mv std libs to library/mark-1/+1
2020-06-26Explain move errors that occur due to method calls involving `self`Aaron Hill-7/+14
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-22Revert "Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, ↵Aaron Hill-14/+7
r=nikomatsakis" This reverts commit 372cb9b69c76a042d0b9d4b48ff6084f64c84a2c, reversing changes made to 5c61a8dc34c3e2fc6d7f02cb288c350f0233f944.
2020-06-11Explain move errors that occur due to method calls involving `self`Aaron Hill-7/+14
2020-03-29Tweak `suggest_constraining_type_param`Esteban Küber-8/+6
Some of the bound restriction structured suggestions were incorrect while others had subpar output.
2020-02-09Improve reporting errors and suggestions for trait boundsPatryk Wychowaniec-6/+14
2019-11-28Deduplicate type param constraint suggestion codeEsteban Küber-2/+2
2019-11-28Use structured suggestion when requiring `Copy` constraint in type paramEsteban Küber-4/+4
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-4/+4
2019-04-22update tests for migrate mode by defaultMatthew Jasper-26/+41
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-11Update testsVadim Petrochenkov-8/+8
2018-12-25Remove licensesMark Rousskov-8/+8
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+80