]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #103328 - compiler-errors:trivial-false-const-sugg, r=jackh726
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 23 Oct 2022 06:14:30 +0000 (08:14 +0200)
committerGitHub <noreply@github.com>
Sun, 23 Oct 2022 06:14:30 +0000 (08:14 +0200)
Do not suggest trivially false const predicates

Pass through constness to `predicate_can_apply` and don't suggest other impls if it's satisfied but not const.

Fixes #103267

1  2 
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs