about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-24 07:13:05 +0100
committerGitHub <noreply@github.com>2023-03-24 07:13:05 +0100
commit2270bde01f306e6c7b1915e526b206832c73fb8e (patch)
treed08b43dce9e9e3465066481ab1e333a2dc072f1e /compiler/rustc_codegen_llvm/src/common.rs
parent98254c5cc7828370eeec18e2646d70846a826b5a (diff)
parent8390c61690186ddc45f97684732c8d3b6458cc44 (diff)
downloadrust-2270bde01f306e6c7b1915e526b206832c73fb8e.tar.gz
rust-2270bde01f306e6c7b1915e526b206832c73fb8e.zip
Rollup merge of #109495 - compiler-errors:new-solver-destruct, r=eholk,lcnr
Implement non-const `Destruct` trait in new solver

Makes it so that we can call stdlib methods like `Option::map` in **non-const** environments, since *many* stdlib methods have `Destruct` bounds 😅

This doesn't bother to implement `const Destruct` yet, but it shouldn't be too hard to do so. Just didn't bother since we already don't have much support for const traits in the new solver anyways. I'd be happy to add skeleton support for `const Destruct`, though, if the reviewer desires.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions