rust/compiler
bors ac50a53359 Auto merge of #88328 - fee1-dead:not-quite-const, r=oli-obk
Introduce `~const`

 - [x] Removed `?const` and change uses of `?const`
 - [x] Added `~const` to the AST. It is gated behind const_trait_impl.
 - [x] Validate `~const` in ast_validation.
 - [x] Update UI Tests
 - [x] Add enum `BoundConstness` (With variants `NotConst` and
 `ConstIfConst` allowing future extensions)
 - [x] Adjust trait selection and pre-existing code to use `BoundConstness`.
 - [ ] Optional steps for this PR
      - [x] Fix #88155
      - [x] ~~Do something with constness bounds in chalk~~ Must be done to rust-lang/chalk (just tried to refactor, there are a lot of errors to resolve :( )
      - [ ] Adjust Error messages for `~const` bounds that can't be satisfied.

r? `@oli-obk`
2021-08-27 21:35:08 +00:00
..
rustc rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_apfloat rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_arena rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_ast Introduce `~const` 2021-08-27 05:07:37 +00:00
rustc_ast_lowering Introduce `~const` 2021-08-27 05:07:37 +00:00
rustc_ast_passes Fix visiting twice 2021-08-27 05:07:37 +00:00
rustc_ast_pretty Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
rustc_attr Remove `Session.used_attrs` and move logic to `CheckAttrVisitor` 2021-08-21 13:27:27 -05:00
rustc_builtin_macros Move `named_asm_labels` to a HIR lint 2021-08-24 08:23:58 -04:00
rustc_codegen_cranelift make unevaluated const substs optional 2021-08-26 11:00:30 +02:00
rustc_codegen_llvm Auto merge of #87280 - lcnr:lazy-anon-const-default-substs, r=nikomatsakis 2021-08-26 22:26:23 +00:00
rustc_codegen_ssa Auto merge of #88227 - 12101111:nobundle-link-order, r=petrochenkov 2021-08-27 09:18:14 +00:00
rustc_data_structures Also fix “a `OwningRef`” 2021-08-24 02:28:38 +02:00
rustc_driver Reduce verbosity of RUSTC_LOG 2021-08-09 21:39:39 -04:00
rustc_error_codes Detect incorrect number of lang item generics 2021-08-23 10:15:25 -04:00
rustc_errors Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
rustc_expand Various pattern cleanups 2021-08-25 20:24:39 +02:00
rustc_feature Introduce `~const` 2021-08-27 05:07:37 +00:00
rustc_fs_util rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_graphviz rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_hir Rollup merge of #88123 - camelid:tup-pat-precise-spans, r=estebank 2021-08-26 12:38:06 -07:00
rustc_hir_pretty Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
rustc_incremental Remove `Session.used_attrs` and move logic to `CheckAttrVisitor` 2021-08-21 13:27:27 -05:00
rustc_index rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_infer review 2021-08-26 11:14:31 +02:00
rustc_interface don't generate partially-undef consts 2021-08-25 17:49:28 -04:00
rustc_lexer Fix more “a”/“an” typos 2021-08-22 17:27:18 +02:00
rustc_lint review 2021-08-26 11:14:31 +02:00
rustc_lint_defs Tracking issue for UNSUPPORTED_CALLING_CONVENTIONS 2021-08-27 20:47:00 +03:00
rustc_llvm RustWrapper: adapt to LLVM change 0f45c16f2caa 2021-08-26 10:40:27 -04:00
rustc_macros Rollup merge of #86123 - Aaron1011:query-span, r=cjgillot 2021-08-19 19:30:04 +02:00
rustc_metadata Auto merge of #85344 - cbeuw:remap-across-cwd, r=michaelwoerister 2021-08-25 10:58:43 +00:00
rustc_middle Auto merge of #88328 - fee1-dead:not-quite-const, r=oli-obk 2021-08-27 21:35:08 +00:00
rustc_mir fmt 2021-08-27 08:09:00 +00:00
rustc_mir_build Auto merge of #88371 - Manishearth:rollup-pkkjsme, r=Manishearth 2021-08-27 01:07:17 +00:00
rustc_parse Introduce `~const` 2021-08-27 05:07:37 +00:00
rustc_parse_format rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
rustc_passes Auto merge of #87875 - asquared31415:generic-lang-items, r=cjgillot 2021-08-25 08:12:16 +00:00
rustc_plugin_impl Remove `Session.used_attrs` and move logic to `CheckAttrVisitor` 2021-08-21 13:27:27 -05:00
rustc_privacy use `ty::Unevaluated` instead of def substs pair 2021-08-26 11:00:30 +02:00
rustc_query_impl shrink `ty::PredicateKind` again 2021-08-26 11:00:30 +02:00
rustc_query_system Prevent double panic when handling incremental fingerprint mismatch 2021-08-12 15:11:39 -05:00
rustc_resolve Auto merge of #87739 - Aaron1011:remove-used-attrs, r=wesleywiser 2021-08-24 03:58:22 +00:00
rustc_save_analysis Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
rustc_serialize Fix more “a”/“an” typos 2021-08-22 16:35:29 +02:00
rustc_session don't generate partially-undef consts 2021-08-25 17:49:28 -04:00
rustc_span Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
rustc_symbol_mangling Auto merge of #87280 - lcnr:lazy-anon-const-default-substs, r=nikomatsakis 2021-08-26 22:26:23 +00:00
rustc_target `#[inline]` non-generic `pub fn`s in `rustc_target::abi` and `ty::layout`. 2021-08-26 21:47:42 +03:00
rustc_trait_selection fmt 2021-08-27 08:09:00 +00:00
rustc_traits Auto merge of #88371 - Manishearth:rollup-pkkjsme, r=Manishearth 2021-08-27 01:07:17 +00:00
rustc_ty_utils Auto merge of #88371 - Manishearth:rollup-pkkjsme, r=Manishearth 2021-08-27 01:07:17 +00:00
rustc_type_ir update `TypeFlags` to deal with missing ct substs 2021-08-26 11:00:30 +02:00
rustc_typeck fmt 2021-08-27 08:09:00 +00:00