rust/compiler/rustc_const_eval/src
Yuki Okushi 61bfe3653b
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
2021-09-19 17:31:33 +09:00
..
const_eval Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk 2021-09-17 17:41:19 +02:00
interpret Remove implementation of min_align_of intrinsic 2021-09-14 13:58:35 +02:00
transform Rollup merge of #89021 - WaffleLapkin:separate_error_for_dyn_trait_in_const_fn, r=estebank 2021-09-19 17:31:33 +09:00
util
lib.rs Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00