1
Fork 0
rust/compiler/rustc_monomorphize/src
León Orell Valerian Liehr e37b744bae
Rollup merge of #136168 - fmease:gci-fix-mono, r=compiler-errors
GCI: Don't try to eval / collect mono items inside overly generic free const items

Fixes #136156. Thanks for the pointers, errs!

There's one (preexisting) thing of note (maybe?). There's a difference between `const _: () = panic!();` and `const _<'a>: () = panic!();`: The former is a pre-mono error, the latter is a post-mono error. For comparison, both `fn _f() { const { panic!() } }` and `fn _f<'a: 'a>() { const { panic!() } }` are post-mono errors.

cc `@oli-obk`
r? compiler-errors or reassign
2025-01-29 06:03:23 +01:00
..
mono_checks Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
collector.rs GCI: Don't try to collect mono items inside overly generic free const items 2025-01-28 04:00:37 +01:00
errors.rs Remove polymorphization 2024-12-06 16:42:09 -05:00
lib.rs Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
partitioning.rs Change collect_and_partition_mono_items tuple return type to a struct 2025-01-27 09:38:12 +00:00
util.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00