Matthias Krüger
103c3a38a6
Rollup merge of #93358 - compiler-errors:is-not-const, r=fee1-dead
...
Add note suggesting that predicate may be satisfied, but is not `const`
Not sure if we should be printing this in addition to, or perhaps _instead_ of the help message:
```
help: the trait `~const Add` is not implemented for `NonConstAdd`
```
Also added `ParamEnv::is_const` and `PolyTraitPredicate::is_const_if_const` and, in a separate commit, used those in other places instead of `== hir::Constness::Const`, etc.
r? ````@fee1-dead````
2022-01-30 00:04:11 +01:00
..
2022-01-28 16:56:05 +01:00
2022-01-28 07:37:10 +11:00
2022-01-22 10:38:31 +11:00
2022-01-26 12:25:31 -03:00
2022-01-21 10:38:30 +00:00
2022-01-27 11:29:41 +01:00
2022-01-25 18:53:45 +00:00
2022-01-22 22:34:16 -06:00
2022-01-24 14:10:05 +01:00
2022-01-28 23:20:38 +00:00
2022-01-29 14:46:30 +01:00
2022-01-30 00:04:11 +01:00
2022-01-27 22:32:24 +01:00
2022-01-22 10:38:31 +11:00
2022-01-29 14:46:29 +01:00
2022-01-23 20:13:07 +01:00
2022-01-23 19:31:32 +08:00
2022-01-27 07:58:33 +01:00
2022-01-25 15:05:19 -03:00
2022-01-27 11:29:41 +01:00
2022-01-22 10:38:31 +11:00
2022-01-22 10:38:31 +11:00
2022-01-25 18:53:45 +00:00
2022-01-23 19:31:32 +08:00
2022-01-30 00:04:11 +01:00
2022-01-28 15:20:21 +01:00
2022-01-24 16:50:10 +00:00
2022-01-22 10:38:31 +11:00
2022-01-26 09:10:27 +00:00
2022-01-30 00:04:11 +01:00
2022-01-26 13:46:01 +01:00
2022-01-27 11:29:41 +01:00
2022-01-26 12:38:22 +01:00
2022-01-21 17:38:21 +01:00
2022-01-21 07:48:10 -06:00
2022-01-22 10:38:31 +11:00
2022-01-22 10:38:34 +11:00
2022-01-25 21:45:21 +08:00
2022-01-21 07:48:10 -06:00
2022-01-24 22:04:55 +00:00
2022-01-23 20:13:07 +01:00
2022-01-29 14:46:30 +01:00
2022-01-25 18:53:45 +00:00
2022-01-22 23:42:46 -05:00
2022-01-30 00:04:11 +01:00
2022-01-29 14:46:30 +01:00