about summary refs log tree commit diff
path: root/tests/ui/unboxed-closures
AgeCommit message (Collapse)AuthorLines
2023-12-10remove redundant importssurechen-12/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-11-24Show number in error message even for one errorNilstrieb-24/+24
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-17Rollup merge of #117338 - workingjubilee:asmjs-meets-thanatos, r=b-naberMatthias Krüger-1/+0
Remove asmjs Fulfills [MCP 668](https://github.com/rust-lang/compiler-team/issues/668). `asmjs-unknown-emscripten` does not work as-specified, and lacks essential upstream support for generating asm.js, so it should not exist at all.
2023-11-02Pretty print Fn traits in rustc_on_unimplementedMichael Goulet-14/+14
2023-10-28Remove asmjs from testsJubilee Young-1/+0
2023-10-20s/generator/coroutine/Oli Scherer-2/+2
2023-10-12On type error involving closure, avoid ICEEsteban Küber-0/+67
When we encounter a type error involving a closure, we try to typeck prior closure invocations to see if they influenced the current expected type. When trying to do so, ensure that the closure was defined in our current scope. Fix #116658.
2023-09-28On type error of closure call argument, point at earlier calls that affected ↵Esteban Küber-3/+152
inference Mitigate part of #71209. ``` error[E0308]: mismatched types --> $DIR/unboxed-closures-type-mismatch.rs:30:18 | LL | identity(1u16); | -------- ^^^^ expected `u8`, found `u16` | | | arguments to this function are incorrect | note: expected because the closure was earlier called with an argument of type `u8` --> $DIR/unboxed-closures-type-mismatch.rs:29:18 | LL | identity(1u8); | -------- ^^^ expected because this argument is of type `u8` | | | in this closure call note: closure parameter defined here --> $DIR/unboxed-closures-type-mismatch.rs:28:25 | LL | let identity = |x| x; | ^ help: change the type of the numeric literal from `u16` to `u8` | LL | identity(1u8); | ~~ ```
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-2/+2
2023-05-26print const and type errors in braces not square bracketsBoxy-3/+3
2023-02-23diagnostics: remove inconsistent English article "this" from E0107Michael Howell-20/+20
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-21Specify what 'this' actually isMichael Goulet-1/+1
2023-01-30Tweak use of trimmed pathsEsteban Küber-1/+1
2023-01-15Tweak E0597Esteban Küber-5/+5
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+3010