about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-09-19 17:31:33 +0900
committerGitHub <noreply@github.com>2021-09-19 17:31:33 +0900
commit61bfe3653b3dd792db589457a7c91a31c3dfa83b (patch)
tree7907e432b1d6af30664a32e79a95f154e20498f0 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent91c5e7cbb6f136b2f2529cb9da1421ccac874fee (diff)
parentf84000d9bc93f7c09243144d1a729448da3d714d (diff)
downloadrust-61bfe3653b3dd792db589457a7c91a31c3dfa83b.tar.gz
rust-61bfe3653b3dd792db589457a7c91a31c3dfa83b.zip
Rollup merge of #89021 - WaffleLapkin:separate_error_for_dyn_trait_in_const_fn, r=estebank
Add a separate error for `dyn Trait` in `const fn`

Previously "trait bounds other than `Sized` on const fn parameters are unstable" error was used for both trait bounds (`<T: Trait>`) and trait objects (`dyn Trait`). This was pretty confusing.

This PR adds a separate error for trait objects: "trait objects in const fn are unstable". The error for trait bounds is otherwise intact.

This is follow up to #88907

r? ``@estebank``

``@rustbot`` label: +A-diagnostics
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions