rust/compiler/rustc_monomorphize/src
Mark Rousskov 1f40573507 Skip collecting no-op DropGlue in vtables
Since 122662 this no longer gets used in vtables, so we're safe to fully
drop generating these empty functions. Those are eventually cleaned up
by LLVM, but it's wasteful to produce them in the first place.

This also adds a missing test for fn-ptr casts, which do still need to
generate no-op drop glue. It's possible a future optimization could
point all of those at the same drop glue (e.g., for *mut ()) rather than
for each separate type, but that would require extra work for CFI and
isn't particularly easy to do anyway.
2025-06-21 18:59:36 -04:00
..
mono_checks Remove all support for wasm's legacy ABI 2025-06-14 09:57:06 +00:00
partitioning working dupv and dupvonly for fwd mode 2025-04-16 17:13:31 -04:00
collector.rs Skip collecting no-op DropGlue in vtables 2025-06-21 18:59:36 -04:00
errors.rs Remove all support for wasm's legacy ABI 2025-06-14 09:57:06 +00:00
lib.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
partitioning.rs Limit the size of cgu names when using the -Zhuman-readable-cgu-names option 2025-05-26 23:29:26 +01:00
util.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00