mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
10b69dde3f
When we're adding a method to a type DIE, we only want a DW_AT_declaration there, because LLVM LTO can't unify type definitions when a child DIE is a full subprogram definition. Now the subprogram definition gets added at the CU level with a specification link back to the abstract declaration.
10 lines
151 B
Rust
10 lines
151 B
Rust
extern crate alloc;
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn something_alloc() {
|
|
assert_eq!(Vec::<u32>::new(), Vec::<u32>::new());
|
|
}
|
|
}
|