rust/tests/ui/resolve/auxiliary
Matthias Krüger a4adc005a1
Rollup merge of #139127 - compiler-errors:prim-ty-hack, r=oli-obk
Fix up partial res of segment in primitive resolution hack

There is a hack in the resolver:

```
// In `a(::assoc_item)*` `a` cannot be a module. If `a` does resolve to a module we
// don't report an error right away, but try to fallback to a primitive type.
```

This fixes up the resolution for primitives which would otherwise resolve to a module, but we weren't also updating the res of the path segment, leading to weird diagnostics.

We explicitly call `self.r.partial_res_map.insert` instead of `record_partial_res` b/c we have recorded a partial res already, and we specifically want to override it.

cc https://github.com/rust-lang/rust/issues/139095#issuecomment-2764371934
2025-04-14 18:15:30 +02:00
..
blind-item-mixed-crate-use-item-foo2.rs
blind-item-mixed-crate-use-item-foo.rs
empty.rs Fix up partial res of segment in primitive resolution hack 2025-03-30 04:22:14 +00:00
extern-prelude-vec.rs
extern-prelude.rs
fake_matches.rs add test for issue 135289 2025-01-21 16:18:27 +00:00
foreign-trait-with-assoc.rs Don't call fn_arg_names for non-fn in resolver 2024-09-07 07:38:22 -04:00
issue-3907.rs
issue-19452-aux.rs
issue-21221-3.rs
issue-21221-4.rs
issue-30535.rs
issue-80079.rs
issue-112831-aux.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
macro_helpers.rs rustc_resolve: Test the order that preludes are resolved 2025-03-29 19:18:39 -04:00
namespaced_enums.rs
privacy-struct-ctor.rs
proc_macro_generate_packed.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
suggest-constructor-cycle-error.rs