diff options
| author | bors <bors@rust-lang.org> | 2025-08-29 00:32:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-29 00:32:21 +0000 |
| commit | ef8d1d6f5bf59524a22943d9f64c002e5c883afd (patch) | |
| tree | 48490f19545b47ecbb22c6f76ce39f39b6a9932b /tests | |
| parent | f2824da98d44c4a4e17bf39eb45103c8fc249117 (diff) | |
| parent | 38bd8081b776d2a1add317c91ad722752335544b (diff) | |
| download | rust-ef8d1d6f5bf59524a22943d9f64c002e5c883afd.tar.gz rust-ef8d1d6f5bf59524a22943d9f64c002e5c883afd.zip | |
Auto merge of #145377 - ChayimFriedman2:solver-def-id, r=lcnr
Switch next solver to use a specific associated type for trait def id The compiler just puts `DefId` in there, but rust-analyzer uses different types for each kind of item. See [the Zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/Implmentating.20New.20Trait.20Solver/near/534329794). In short, it will be a tremendous help to r-a to use specific associated types, while for the solver and the compiler it's a small change. So I ported `TraitId`, as a proof of concept and it's also likely the most impactful. r? types
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui-fulldeps/internal-lints/import-of-type-ir-traits.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui-fulldeps/internal-lints/import-of-type-ir-traits.rs b/tests/ui-fulldeps/internal-lints/import-of-type-ir-traits.rs index 3fdd65d6c87..965fd832722 100644 --- a/tests/ui-fulldeps/internal-lints/import-of-type-ir-traits.rs +++ b/tests/ui-fulldeps/internal-lints/import-of-type-ir-traits.rs @@ -8,7 +8,7 @@ extern crate rustc_type_ir; use rustc_type_ir::Interner; -fn foo<I: Interner>(cx: I, did: I::DefId) { +fn foo<I: Interner>(cx: I, did: I::TraitId) { let _ = cx.trait_is_unsafe(did); //~^ ERROR do not use `rustc_type_ir::Interner` or `rustc_type_ir::InferCtxtLike` unless you're inside of the trait solver } |
