about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2022-04-26 13:22:30 +0200
committerGitHub <noreply@github.com>2022-04-26 13:22:30 +0200
commitf908391136c9797235ad6de11be46114b654ca61 (patch)
treeea79973fddcecb09a0d0da50ca79ff9d23591f3e /src/librustdoc/html/static/js/source-script.js
parenta818173e6339a394bcac8236a66cee49a876bb4b (diff)
parent941e19468ab6239a220ec3214c584e281636a26d (diff)
downloadrust-f908391136c9797235ad6de11be46114b654ca61.tar.gz
rust-f908391136c9797235ad6de11be46114b654ca61.zip
Rollup merge of #96400 - JakobDegen:shallow-init-docs, r=Dylan-DPC
Correct documentation for `Rvalue::ShallowInitBox`

As a part of the big MIR docs PR, I had added a comment indicating that `Rvalue::ShallowInitBox` is disallowed after drop elaboration, but this is not true (no idea why I thought it was). Codegen has support for it, and trying to enforce this rule in the validator causes compiling core to ICE on the very first `box` statement.

That being said, this `Rvalue` probably *should* be banned after drop elaboration - it doesn't seem like it's still useful for much. However, I do not have time right now to actually go investigate how difficult a change that is to make, so in the meantime fixing the docs to reflect the current situation seems like the right step.

r? rust-lang/mir-opt
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions