rust/tests
Trevor Gross b5771e7e0d
Rollup merge of #127664 - compiler-errors:precise-capturing-better-sugg-apit, r=oli-obk
Fix precise capturing suggestion for hidden regions when we have APITs

Suggests to turn APITs into type parameters so they can be named in precise capturing syntax for hidden type lifetime errors. We also note that it may change the API.

This is currently done via a note *and* a suggestion, which feels a bit redundant, but I wasn't totally sure of a better alternative for the presentation.

Code is kind of a mess but there's a lot of cases to consider. Happy to iterate on this if you think the approach is too messy.

Based on #127619, only the last commit is relevant.
r? oli-obk

Tracking:

- https://github.com/rust-lang/rust/issues/123432
2024-07-17 19:53:26 -05:00
..
assembly Auto merge of #123351 - beetrees:x86-ret-snan-rust, r=nikic,workingjubilee 2024-07-12 20:36:43 +00:00
auxiliary
codegen Auto merge of #123351 - beetrees:x86-ret-snan-rust, r=nikic,workingjubilee 2024-07-12 20:36:43 +00:00
codegen-units Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
coverage Bless coverage. 2024-07-13 12:02:12 +00:00
coverage-run-rustdoc coverage: Extract hole spans from HIR instead of MIR 2024-07-08 21:22:56 +10:00
crashes Make sure trait def ids match before zipping args in note_function_argument_obligation 2024-07-15 17:53:22 -04:00
debuginfo Add Natvis visualiser and debuginfo tests for f16 2024-07-09 03:47:50 +01:00
incremental Auto merge of #126409 - pacak:incr-uplorry, r=michaelwoerister 2024-06-20 09:06:16 +00:00
mir-opt Rollup merge of #127337 - celinval:intrinsics-fallback, r=oli-obk 2024-07-17 16:22:28 +02:00
pretty Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
run-make tests: update for rfs rename 2024-07-17 13:34:18 +00:00
run-pass-valgrind rustfmt tests/run-pass-valgrind/. 2024-06-04 09:53:02 +10:00
rustdoc Rollup merge of #127671 - notriddle:notriddle/issue-d, r=Mark-Simulacrum 2024-07-13 20:19:48 -07:00
rustdoc-gui rustdoc: add test cases for mile wide bar 2024-07-16 13:29:35 -07:00
rustdoc-js rustdoc-search: use lowercase, non-normalized name for type search 2024-06-09 11:56:52 -07:00
rustdoc-js-std Update tests 2024-06-07 11:55:52 +08:00
rustdoc-json Add rustdoc-json support for use<> 2024-07-12 05:24:51 -04:00
rustdoc-ui Move rustc_infer::infer::error_reporting to rustc_infer::error_reporting::infer 2024-07-15 20:16:12 -04:00
ui Rollup merge of #127664 - compiler-errors:precise-capturing-better-sugg-apit, r=oli-obk 2024-07-17 19:53:26 -05:00
ui-fulldeps Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
COMPILER_TESTS.md