Files
rust/tests/ui/suggestions
Jonathan Brouwer 883eda3a72 Rollup merge of #154540 - chenyukang:yukang-fix-146786-unusable-path-suggestion, r=estebank
Fix invalid type suggestion for item nested in function

Fixes rust-lang/rust#146786

I also tried to add the `omit_parent` logic in pretty formatter here:
https://github.com/chenyukang/rust/blob/69b6d26d05006dca7556abc555fb0e029ecf1f4e/compiler/rustc_middle/src/ty/print/pretty.rs#L2240-L2295
so that we don't need to add `should_omit_parent_def_path` and `reset_path`.

but seems there will be duplicate print code with `default_print_def_path`.

maybe r? @estebank
2026-03-29 21:39:27 +02:00
..
2025-11-27 14:13:58 -05:00
2025-04-03 21:41:58 +00:00
2024-02-07 10:42:01 +08:00
2024-02-04 11:34:10 +08:00
2026-02-17 16:51:44 +00:00
2025-07-13 13:50:01 +00:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2024-02-07 10:42:01 +08:00
2025-11-27 11:19:00 -05:00
2024-03-13 23:05:17 +00:00
2025-06-26 03:43:01 +00:00
2023-11-20 23:44:37 +00:00
2025-06-03 10:52:32 -07:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00