about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-05-10 16:15:03 +0200
committerGitHub <noreply@github.com>2021-05-10 16:15:03 +0200
commitae8a438034caee5c345792b7655c689324fd25c8 (patch)
tree3cf7e720b3150d2f5df98c5b1d9fc08bc58c4142 /src/librustdoc/html/static/source-script.js
parent7107c899700e8141b53eddbd5d9e93a6267cb691 (diff)
parent7a01160ce484325b6de27cf56400039d1b2c3721 (diff)
downloadrust-ae8a438034caee5c345792b7655c689324fd25c8.tar.gz
rust-ae8a438034caee5c345792b7655c689324fd25c8.zip
Rollup merge of #85112 - RalfJung:promoted-errors, r=oli-obk
ensure failing promoteds in const/static bodies are handled correctly

`const`/`static` bodies are the one case where we still promote code that might fail to evaluate. Ensure that this is handled correctly; in particular, it must not fail compilation.

`src/test/ui/consts/const-eval/erroneous-const.rs` ensures that when a non-promoted fails to evaluate, we *do* show an error.

r? `@oli-obk`
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions