about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-04 02:26:21 +0100
committerGitHub <noreply@github.com>2021-12-04 02:26:21 +0100
commit0bd4ee79e099a75a13396de272278c9ad8192bd5 (patch)
tree32f416cc481be4a995c6090f5769225ce8a9eca8 /compiler/rustc_codegen_llvm/src
parentf99cd4022a0f0974f183f8459c9dda86568a90a8 (diff)
parent4ec5cdc94b83e1a37c628033597c17c4d7645128 (diff)
downloadrust-0bd4ee79e099a75a13396de272278c9ad8192bd5.tar.gz
rust-0bd4ee79e099a75a13396de272278c9ad8192bd5.zip
Rollup merge of #90851 - ibraheemdev:downcast-unchecked, r=scottmcm
Add unchecked downcast methods

```rust
impl dyn Any (+ Send + Sync) {
    pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T;
    pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T;
}

impl<A: Allocator> Box<dyn Any (+ Send + Sync), A> {
    pub unsafe fn downcast_unchecked<T: Any>(&self) -> Box<T, A>;
}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions