rust/compiler/rustc_codegen_llvm/src
Jacob Pratt 537d5f40a6
Rollup merge of #145297 - adwinwhite:recursive-debuginfo, r=wesleywiser
fix(debuginfo): handle false positives in overflow check

Fixes rust-lang/rust#144636.

Duplicate wrappers and normal recursive types can lead to false positives.
```rust
struct Recursive {
	a: Box<Box<Recursive>>,
}
```
The ADT stack can be:
- `Box<Recursive>`
- `Recursive`
- `Box<Box<Recursive>>` (`Box` now detected as expanding)

We can filter them out by tracing the generic arg back through the stack, as true expanding recursive types must have their expanding arg used as generic arg throughout.

r? ````@wesleywiser````
2025-08-21 01:12:16 -04:00
..
back Rollup merge of #145484 - Zalathar:archive-builder, r=bjorn3 2025-08-19 14:18:25 +10:00
builder Remove inlining for autodiff handling 2025-08-14 16:30:16 +00:00
coverageinfo coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
debuginfo Rollup merge of #145297 - adwinwhite:recursive-debuginfo, r=wesleywiser 2025-08-21 01:12:16 -04:00
llvm Tell LLVM about read-only captures 2025-08-20 19:08:16 +02:00
abi.rs Tell LLVM about read-only captures 2025-08-20 19:08:16 +02:00
allocator.rs fix(compiler/rustc_codegen_llvm): apply target-cpu attribute 2025-08-13 17:49:06 +00:00
asm.rs emit .att_syntax when global/naked asm use that option 2025-07-09 01:09:55 +02:00
attributes.rs Auto merge of #144086 - clubby789:alloc-zeroed, r=nikic 2025-08-20 17:16:34 +00:00
base.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
builder.rs Rollup merge of #145420 - Zalathar:llvm-c, r=WaffleLapkin 2025-08-18 15:31:12 +10:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs gpu host code generation 2025-07-18 16:30:42 -07:00
consts.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
context.rs Rollup merge of #140740 - ojeda:indirect-branch-cs-prefix, r=davidtwco 2025-08-19 19:42:01 +08:00
declare.rs make more builder functions generic 2025-07-18 16:23:54 -07:00
errors.rs Use the object crate rather than LLVM for extracting bitcode sections 2025-07-25 11:21:28 +00:00
intrinsic.rs make prefetch intrinsics safe 2025-08-20 00:35:42 +02:00
lib.rs Rollup merge of #145432 - Zalathar:target-machine, r=wesleywiser 2025-08-19 14:18:25 +10:00
llvm_util.rs Rollup merge of #145099 - heiher:loong-32s, r=folkertdev 2025-08-19 19:42:08 +08:00
mono_item.rs Port the #[linkage] attribute to the new attribute system 2025-08-13 21:01:37 +02:00
type_.rs Use LLVMGetTypeKind 2025-08-15 19:35:35 +10:00
type_of.rs rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
va_arg.rs Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubilee 2025-07-07 17:28:14 +00:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00