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>2022-03-09 23:14:09 +0100
committerGitHub <noreply@github.com>2022-03-09 23:14:09 +0100
commitc0259626b6036a886f10c40b85f2d1b36118aeb9 (patch)
tree0cfe0a0ebd55c16df8992a965a3f2c813738c009 /compiler/rustc_codegen_llvm/src
parent10dccdc7fcbdc64ee9efe2c1ed975ab8c1d61287 (diff)
parent662024478deb04a8c71d779b66b4bedb0bf91dbe (diff)
downloadrust-c0259626b6036a886f10c40b85f2d1b36118aeb9.tar.gz
rust-c0259626b6036a886f10c40b85f2d1b36118aeb9.zip
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
Make some `Clone` impls `const`

Tracking issue: #91805
`Clone::clone_from` and some impls (Option, Result) bounded on `~const Drop`.

```rust
// core::clone
impl const Clone for INTEGER
impl const Clone for FLOAT
impl const Clone for bool
impl const Clone for char
impl const Clone for !
impl<T: ?Sized> const Clone for *const T
impl<T: ?Sized> const Clone for *mut T
impl<T: ?Sized> const Clone for &T

// core::option
impl<T> const Clone for Option<T>
where
    T: ~const Clone + ~const Drop

// core::result
impl<T, E> const Clone for Result<T, E>
where
    T: ~const Clone + ~const Drop,
    E: ~const Clone + ~const Drop,

// core::convert
impl const Clone for Infallible

// core::ptr
impl<T: ?Sized> const Clone for NonNull<T>
impl<T: ?Sized> const Clone for Unique<T>
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions