rust/src/test
Matthias Krüger 6d58ff7fe6
Rollup merge of #100387 - cjgillot:hygiene-trait-impl, r=petrochenkov
Check uniqueness of impl items by trait item when applicable.

When checking uniqueness of item names in impl blocks, we currently use the same definition of hygiene as for toplevel items.  This means that a plain item and one generated by a macro 2.0 do not collide.

This hygiene rule does not match with how impl items resolve to associated trait items. As a consequence, we misdiagnose the trait impls.

This PR proposes to consider that trait impl items are uses of the corresponding trait items during resolution, instead of checking for duplicates later. An error is emitted when a trait impl item is used twice.

There should be no stable breakage, since macros 2.0 are still unstable.

r? ``@petrochenkov``
cc ``@RalfJung``

Fixes https://github.com/rust-lang/rust/issues/71614.
2022-10-11 18:59:45 +02:00
..
assembly Enable inline stack probes on X86 with LLVM 16 2022-09-29 19:49:23 -07:00
auxiliary experiment: trying to encode the end-to-end test as a ui test via rust_test_helpers. This instance is almost certainly insufficient because we need to force optimization flags for both the C and Rust sides of the code. but lets find out for sure. 2022-07-06 10:53:28 -04:00
codegen Auto merge of #102724 - pcc:scs-fix-test, r=Mark-Simulacrum 2022-10-11 04:27:13 +00:00
codegen-units Bless cgu test. 2022-09-23 18:42:14 +02:00
debuginfo Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
incremental Rewrite representability 2022-10-07 09:33:46 -05:00
mir-opt Rollup merge of #102778 - nbdd0121:mir, r=tmiasko 2022-10-08 14:38:19 +02:00
pretty address review 2022-09-26 14:21:39 +02:00
run-make test: run-make: skip when cross-compiling 2022-10-05 21:54:55 -07:00
run-make-fulldeps rustdoc: give .line-number / .line-numbers meaningful names 2022-09-26 11:48:03 -07:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc Rollup merge of #102898 - notriddle:notriddle/sidebar-block, r=GuillaumeGomez 2022-10-11 18:37:55 +09:00
rustdoc-gui Rollup merge of #102898 - notriddle:notriddle/sidebar-block, r=GuillaumeGomez 2022-10-11 18:37:55 +09:00
rustdoc-js
rustdoc-js-std Update asrawfd.js. 2022-08-29 08:31:42 -07:00
rustdoc-json Rustdoc-Json: List impls for primitives 2022-09-26 18:06:48 +01:00
rustdoc-ui Update rustdoc tests 2022-10-10 18:28:29 +02:00
ui Rollup merge of #100387 - cjgillot:hygiene-trait-impl, r=petrochenkov 2022-10-11 18:59:45 +02:00
ui-fulldeps errors: rename typeck.ftl to hir_analysis.ftl 2022-10-03 13:52:17 +01:00
COMPILER_TESTS.md