rust/tests
bors 21e6de7eb6 Auto merge of #124187 - compiler-errors:self-ctor, r=petrochenkov
Warn (or error) when `Self` ctor from outer item is referenced in inner nested item

This implements a warning `SELF_CONSTRUCTOR_FROM_OUTER_ITEM` when a self constructor from an outer impl is referenced in an inner nested item. This is a proper fix mentioned https://github.com/rust-lang/rust/pull/117246#discussion_r1374648388.

This warning is additionally bumped to a hard error when the self type references generic parameters, since it's almost always going to ICE, and is basically *never* correct to do.

This also reverts part of https://github.com/rust-lang/rust/pull/117246, since I believe this is the proper fix and we shouldn't need the helper functions (`opt_param_at`/`opt_type_param`) any longer, since they shouldn't really ever be used in cases where we don't have this problem.
2024-05-25 01:17:55 +00:00
..
assembly
auxiliary
codegen Rollup merge of #125222 - Oneirical:fifth, r=jieyouxu 2024-05-23 07:41:18 +02:00
codegen-units
coverage coverage: Simplify counter expressions using simple algebra 2024-05-14 13:58:40 +10:00
coverage-run-rustdoc
crashes Rollup merge of #125501 - compiler-errors:opaque-opaque-anon-ct, r=BoxyUwU 2024-05-24 23:01:11 +02:00
debuginfo Fix tests/debuginfo/strings-and-strs. 2024-05-20 15:01:59 +10:00
incremental Update tests/incremental/foreign.rs 2024-05-20 11:13:10 -04:00
mir-opt Rollup merge of #125173 - scottmcm:never-checked, r=davidtwco 2024-05-20 18:13:48 +02:00
pretty hir pretty: fix block indent 2024-05-20 20:30:44 +02:00
run-make Migrate run-make/rustdoc-with-output-dir-option to rmake.rs 2024-05-24 11:19:30 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json rustdoc-json: Add test for keywords with --document-private-items 2024-05-24 16:40:20 +00:00
rustdoc-ui Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
ui Auto merge of #124187 - compiler-errors:self-ctor, r=petrochenkov 2024-05-25 01:17:55 +00:00
ui-fulldeps Add conversion from IntrinsicDef to FnDef 2024-05-23 15:35:18 +00:00
COMPILER_TESTS.md