about summary refs log tree commit diff
path: root/tests/ui/borrowck
AgeCommit message (Collapse)AuthorLines
2023-03-16Don't allow new const panic through format flattening.Mara Bos-1/+1
panic!("a {}", "b") is still not allowed in const, even if the hir flattens to panic!("a b").
2023-03-09Add ui test.Camille GILLOT-0/+27
2023-03-05Add regression tests for issue 70919Giacomo Pasini-0/+63
Desugaring DropAndReplace at MIR build (#107844) fixed issue 70919. Add regressions tests, borrowed from #102078, to ensure we check for this in the future. Co-authored-by: Aaron Hill <aa1ronham@gmail.com>
2023-03-03Desugars drop and replace at MIR buildGiacomo Pasini-29/+18
This commit desugars the drop and replace deriving from an assignment at MIR build, avoiding the construction of the DropAndReplace terminator (which will be removed in a followign PR) In order to retain the same error messages for replaces a new DesugaringKind::Replace variant is introduced.
2023-02-23diagnostics: remove inconsistent English article "this" from E0107Michael Howell-4/+4
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
2023-02-22diagnostics: update test cases to refer to assoc fn with `self` as methodMichael Howell-4/+4
2023-02-16Move testsCaio-0/+62
2023-02-04Rollup merge of #107646 - estebank:specific-span, r=compiler-errorsMatthias Krüger-21/+34
Provide structured suggestion for binding needing type on E0594 Partially address #45405.
2023-02-03Provide structured suggestion for binding needing type on E0594Esteban Küber-21/+34
Partially address #45405.
2023-02-02Suggest `move` in nested closure when appropriateEsteban Küber-5/+64
Fix #64008.
2023-01-26Rollup merge of #106978 - mejrs:mir_build3, r=davidtwcoMatthias Krüger-4/+4
Migrate mir_build's borrow conflicts This also changes the error message slightly, for two reasons: - I'm not a fan of saying "value borrowed, by `x`, here" - it simplifies the error implementation significantly.
2023-01-17Migrate mir_build's borrow conflictsmejrs-4/+4
2023-01-17Account for field access when looking for inner-most path in expressionEsteban Küber-0/+10
2023-01-17Account for `*` when looking for inner-most path in expressionEsteban Küber-0/+9
2023-01-15Tweak E0597Esteban Küber-140/+160
CC #99430
2023-01-15Add regression test for #92157Yuki Okushi-0/+51
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+21856