rust/tests/ui-fulldeps
bors 243c5a35e1 Auto merge of #140453 - Zoxc:next-disambiguator, r=oli-obk
Remove global `next_disambiguator` state and handle it with a `DisambiguatorState` type

This removes `Definitions.next_disambiguator` as it doesn't guarantee deterministic def paths when `create_def` is called in parallel. Instead a new `DisambiguatorState` type is passed as a mutable reference to `create_def` to help create unique def paths. `create_def` calls with distinct  `DisambiguatorState` instances must ensure that that the def paths are unique without its help.

Anon associated types did rely on this global state for uniqueness and are changed to use (method they're defined in + their position in the method return type) as the `DefPathData` to ensure uniqueness. This also means that the method they're defined in appears in error messages, which is nicer.

`DefPathData::NestedStatic` is added to use for nested data inside statics instead of reusing `DefPathData::AnonConst` to avoid conflicts with those.

cc `@oli-obk`
2025-05-05 11:50:43 +00:00
..
auxiliary ast: Remove token visiting from AST visitor 2025-04-30 10:36:03 +03:00
codegen-backend tests: manually rebless `tests/ui-fulldeps/codegen-backend/hotplug.rs` 2025-03-04 00:21:02 +08:00
fluent-messages Remove the `-test` suffix from normalize directives 2024-12-27 19:58:16 +11:00
internal-lints Move eager translation to a method on `Diag` 2025-04-16 21:38:59 -04:00
lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
mod_dir_simple [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
session-diagnostic Remove the `-test` suffix from normalize directives 2024-12-27 19:58:16 +11:00
stable-mir Auto merge of #140453 - Zoxc:next-disambiguator, r=oli-obk 2025-05-05 11:50:43 +00:00
try-from-u32 UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
compiler-calls.rs Remove RunCompiler 2025-01-23 09:38:58 +00:00
deriving-global.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
deriving-hygiene.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
dropck-tarena-cycle-checked.rs Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-cycle-checked.stderr Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-unsound-drop.rs Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-unsound-drop.stderr Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck_tarena_sound_drop.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
empty-struct-braces-derive.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
hash-stable-is-unstable.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
hash-stable-is-unstable.stderr Revert "Don't test new error messages with the stage 0 compiler" 2025-03-08 22:45:16 +02:00
lint-pass-macros.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
missing-rustc-driver-error.rs UI tests: migrate remaining compile time `error-pattern`s to line annotations 2025-04-13 21:48:53 +03:00
missing-rustc-driver-error.stderr Move hashes from rustc_data_structure to rustc_hashes so they can be shared with rust-analyzer 2025-02-16 16:18:30 -05:00
mod_dir_path_canonicalized.rs Make top-level `rustc_parse` functions fallible. 2024-06-05 10:38:03 +10:00
obtain-borrowck.rs Move some `Map` methods onto `TyCtxt`. 2025-02-17 13:21:02 +11:00
obtain-borrowck.run.stdout Port `tests/run-make-fulldeps/obtain-borrowck` to ui-fulldeps 2024-06-07 00:41:31 +10:00
pathless-extern-unstable.rs Revert "Don't test new error messages with the stage 0 compiler" 2025-03-08 22:45:16 +02:00
pathless-extern-unstable.stderr Revert "Don't test new error messages with the stage 0 compiler" 2025-03-08 22:45:16 +02:00
pprust-expr-roundtrip.rs Remove fields that are dead since the removal of type ascription syntax 2025-03-24 20:04:23 +01:00
pprust-parenthesis-insertion.rs Rollup merge of #134834 - dtolnay:unnamedcall, r=compiler-errors 2024-12-27 18:43:05 -08:00
regions-mock-tcx.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
run-compiler-twice.rs Allow drivers to supply a list of extra symbols to intern 2025-04-10 13:39:23 +00:00
rustc_encodable_hygiene.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00