rust/compiler/rustc_middle/src
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
..
dep_graph Show a more informative panic message when DefPathHash does not exist 2022-01-19 17:36:44 -05:00
hir Store hir_id_to_def_id in OwnerInfo. 2022-01-25 15:05:19 -03:00
infer Canonicalize const variables correctly 2022-01-12 08:27:41 -08:00
middle Track drops across multiple yields 2022-01-18 14:25:24 -08:00
mir try apply rustc_pass_by_value to Span 2022-01-27 11:29:41 +01:00
query Use an indexmap to avoid sorting LocalDefIds 2022-01-22 22:34:16 -06:00
thir Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
traits Improve selection errors for ~const trait bounds 2022-01-26 00:48:01 +11:00
ty Rollup merge of #93358 - compiler-errors:is-not-const, r=fee1-dead 2022-01-30 00:04:11 +01:00
util Use AddAssign impl 2021-11-09 23:47:36 +01:00
arena.rs Fully serialize AdtDef 2021-12-15 16:32:16 -05:00
lib.rs rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
lint.rs Auto merge of #92099 - matthiaskrgr:rollup-4gwv67m, r=matthiaskrgr 2021-12-19 12:36:56 +00:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
tests.rs
thir.rs Formally implement let chains 2022-01-18 19:38:17 -03:00