rust/compiler/rustc_trait_selection/src
Jack Huey 3aed8b17a8
Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr
Add better diagnostic for unbounded Abst. Const

~~In the case where a generic abst. const requires a trivial where bound: `where TypeWithConst<const_fn(N)>: ,`,
instead of requiring a where bound, just check that only consts are being substituted in to skip over where check.~~

~~This is pretty sketchy, but I think it works. Presumably, if there is checking for type bounds added later, it can first check nested requirements, and see if they're satisfied by the current `ParamEnv`.~~

Changed the diagnostic to add a better example, which is more practical than what was previously proposed.

r? ```@lcnr```
2021-02-02 16:01:39 -05:00
..
traits Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr 2021-02-02 16:01:39 -05:00
autoderef.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
infer.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
lib.rs Stabilize by-value [T; N] iterator core::array::IntoIter 2020-12-29 09:16:46 +01:00
opaque_types.rs Review changes 2021-01-16 18:56:37 -05:00