diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-15 02:25:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-15 02:25:14 +0100 |
| commit | 1d9ab77eb75b4fa71883831ce883ce8ff508bda1 (patch) | |
| tree | 3c98dae6709c78ba477df68258c7b06c7fb58b20 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 64716825b01daedf8eb97b14b128bdab8b3b0f45 (diff) | |
| parent | b1b873f3659fb8f9c6fd64b7c78126152694495d (diff) | |
| download | rust-1d9ab77eb75b4fa71883831ce883ce8ff508bda1.tar.gz rust-1d9ab77eb75b4fa71883831ce883ce8ff508bda1.zip | |
Rollup merge of #92382 - clarfonthey:const_convert, r=scottmcm
Extend const_convert to rest of blanket core::convert impls This adds constness to all the blanket impls in `core::convert` under the existing `const_convert` feature, tracked by #88674. Existing impls under that feature: ```rust impl<T> const From<T> for T; impl<T, U> const Into<U> for T where U: ~const From<T>; impl<T> const ops::Try for Option<T>; impl<T> const ops::FromResidual for Option<T>; impl<T, E> const ops::Try for Result<T, E>; impl<T, E, F> const ops::FromResidual<Result<convert::Infallible, E>> for Result<T, F> where F: ~const From<E>; ``` Additional impls: ```rust impl<T: ?Sized, U: ?Sized> const AsRef<U> for &T where T: ~const AsRef<U>; impl<T: ?Sized, U: ?Sized> const AsRef<U> for &mut T where T: ~const AsRef<U>; impl<T: ?Sized, U: ?Sized> const AsMut<U> for &mut T where T: ~const AsMut<U>; impl<T, U> const TryInto<U> for T where U: ~const TryFrom<T>; impl<T, U> const TryFrom<U> for T where U: ~const Into<T>; ```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
