diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-04 02:26:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 02:26:21 +0100 |
| commit | 0bd4ee79e099a75a13396de272278c9ad8192bd5 (patch) | |
| tree | 32f416cc481be4a995c6090f5769225ce8a9eca8 /compiler/rustc_codegen_llvm/src | |
| parent | f99cd4022a0f0974f183f8459c9dda86568a90a8 (diff) | |
| parent | 4ec5cdc94b83e1a37c628033597c17c4d7645128 (diff) | |
| download | rust-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
