about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-24 12:46:08 +0000
committerbors <bors@rust-lang.org>2022-07-24 12:46:08 +0000
commit894d6a232c1cf69f7050a33223f687c4623e4d16 (patch)
tree147a43e3e764c162139c42bd4935ad819754165c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent977e12a0bdc3e329af179ef3a9d466af9eb613bb (diff)
parent7e0bd377c2ffe55a1f014ce932a7218a9b4dc639 (diff)
downloadrust-894d6a232c1cf69f7050a33223f687c4623e4d16.tar.gz
rust-894d6a232c1cf69f7050a33223f687c4623e4d16.zip
Auto merge of #12832 - lowr:fix/impl-default-members-no-codegen, r=Veykril
fix: don't replace default members' body

cc #12779, #12821
addresses https://github.com/rust-lang/rust-analyzer/pull/12821#issuecomment-1190157506

`gen_trait_fn_body()` only attempts to implement required trait member functions, so we shouldn't call it for `Implement default members` assist.

This patch also documents the precondition of `gen_trait_fn_body()` and inserts `debug_assert!`, but I'm not entirely sure if the assertions are appropriate.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions