about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2024-02-14 11:53:38 +0100
committerGitHub <noreply@github.com>2024-02-14 11:53:38 +0100
commit407de0ee3354d0cfcdb903f9715f942750e4cb41 (patch)
tree7b55a6d6fe34b76f407b6d48e2c2ebdc8f63ec4e /compiler/rustc_codegen_llvm/src/errors.rs
parent1c7a9996f08c825444ef8beb3c3146acd3cea85b (diff)
parent8e9c8dd10ad90a021381c39e8bf68a1748c2f56f (diff)
downloadrust-407de0ee3354d0cfcdb903f9715f942750e4cb41.tar.gz
rust-407de0ee3354d0cfcdb903f9715f942750e4cb41.zip
Rollup merge of #118890 - Amanieu:allocator-lifetime, r=Mark-Simulacrum
Clarify the lifetimes of allocations returned by the `Allocator` trait

The previous definition (accidentally) disallowed the implementation of stack-based allocators whose memory would become invalid once the lifetime of the allocator type ended.

This also ensures the validity of the following blanket implementation:
```rust
impl<A: Allocator> Allocator for &'_ A {}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions