rust/compiler
Matthias Krüger 539175c026
Rollup merge of #92892 - compiler-errors:const-param-env-for-const-block, r=fee1-dead
Do not fail evaluation in const blocks

Evaluate const blocks with a const param-env, so we properly check `~const` trait bounds.

Fixes #92713
(I will fix the poor diagnostics in #92713 and #92712 in a separate PR)

cc `@nbdd0121` who wrote the code this PR touches in #89561
2022-01-15 11:28:28 +01:00
..
rustc Remove useless #[global_allocator] from rustc and rustdoc. 2021-12-23 17:23:21 +11:00
rustc_apfloat Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_arena Add some comments. 2021-11-19 07:52:59 +11:00
rustc_ast Rollup merge of #92357 - GuillaumeGomez:fix-doc-comment-backline-removal, r=camelid 2022-01-10 11:03:05 +01:00
rustc_ast_lowering Use pre-interned symbols in a couple of places 2022-01-10 17:13:33 +01:00
rustc_ast_passes Move PatKind::Lit checking from ast_validation to ast lowering 2022-01-01 15:10:43 -05:00
rustc_ast_pretty Rollup merge of #92336 - dtolnay:printstateself, r=michaelwoerister 2022-01-07 20:20:56 -08:00
rustc_attr Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
rustc_borrowck Rollup merge of #92625 - inquisitivecrystal:mirbug-caller, r=michaelwoerister 2022-01-15 02:25:15 +01:00
rustc_builtin_macros Update AsmArgs field visibility for rustfmt 2022-01-10 22:38:15 -05:00
rustc_codegen_cranelift Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00
rustc_codegen_gcc Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00
rustc_codegen_llvm Rollup merge of #92142 - wesleywiser:fix_codecoverage_partitioning, r=tmandry 2022-01-13 08:11:20 +01:00
rustc_codegen_ssa Rollup merge of #92873 - eholk:async-symbol-names, r=tmandry 2022-01-15 11:28:26 +01:00
rustc_const_eval Rollup merge of #92432 - fee1-dead:constck-impl-constness, r=oli-obk 2022-01-12 07:12:06 +01:00
rustc_data_structures Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum 2022-01-11 14:23:24 +00:00
rustc_driver Rollup merge of #92504 - dtolnay:wall, r=jackh726 2022-01-06 23:15:17 +01:00
rustc_error_codes docs(error-codes): Add long error explanation for E0227 2021-12-28 15:46:20 +03:00
rustc_errors Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum 2022-01-11 14:23:24 +00:00
rustc_expand Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum 2022-01-11 14:23:24 +00:00
rustc_feature Stabilize destructuring_assignment 2021-12-14 22:38:51 -05:00
rustc_fs_util Migrate to 2021 2021-09-20 22:21:42 -04:00
rustc_graphviz eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_hir reviews ish 2022-01-14 13:45:07 +00:00
rustc_hir_pretty Rollup merge of #91907 - lcnr:const-arg-infer, r=BoxyUwU 2022-01-04 21:23:06 +01:00
rustc_incremental eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_index Introduce IntervalSet 2021-12-30 22:33:44 -05:00
rustc_infer Rollup merge of #92743 - bjorn3:less_symbol_intern, r=camelid 2022-01-15 02:25:17 +01:00
rustc_interface ast: Always keep a NodeId in ast::Crate 2022-01-05 17:09:37 +08:00
rustc_lexer Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkov 2021-12-03 13:20:14 +00:00
rustc_lint Remove asm feature from lints example 2022-01-13 15:59:24 +00:00
rustc_lint_defs Fix lints documents 2022-01-13 03:57:44 +00:00
rustc_llvm Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic 2022-01-06 23:15:18 +01:00
rustc_log Make rustc_log doc test runnable 2022-01-03 22:31:56 -08:00
rustc_macros Rollup merge of #92011 - Aaron1011:decode-span, r=michaelwoerister 2022-01-03 14:44:16 +01:00
rustc_metadata Rollup merge of #92277 - petrochenkov:cmrval2, r=jackh726 2022-01-13 08:11:21 +01:00
rustc_middle Rollup merge of #92875 - BoxyUwU:infer_arg_opt_const_param_of, r=lcnr 2022-01-15 02:25:20 +01:00
rustc_mir_build Auto merge of #89861 - nbdd0121:closure, r=wesleywiser 2022-01-13 18:51:07 +00:00
rustc_mir_dataflow Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00
rustc_mir_transform Rollup merge of #92142 - wesleywiser:fix_codecoverage_partitioning, r=tmandry 2022-01-13 08:11:20 +01:00
rustc_monomorphize Rollup merge of #92142 - wesleywiser:fix_codecoverage_partitioning, r=tmandry 2022-01-13 08:11:20 +01:00
rustc_parse eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_parse_format Migrate to 2021 2021-09-20 22:21:42 -04:00
rustc_passes Auto merge of #89861 - nbdd0121:closure, r=wesleywiser 2022-01-13 18:51:07 +00:00
rustc_plugin_impl replace dynamic library module with libloading 2021-12-06 12:03:47 -05:00
rustc_privacy fix: set struct/union/enum fields/variants as reachable when item is 2022-01-14 02:59:16 +00:00
rustc_query_impl Some cleanup 2021-12-23 13:38:53 -05:00
rustc_query_system Auto merge of #92681 - Aaron1011:task-deps-ref, r=cjgillot 2022-01-14 14:20:17 +00:00
rustc_resolve Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
rustc_save_analysis Add trait_item_def_id to AssocItem 2022-01-07 12:28:12 -08:00
rustc_serialize Auto merge of #92604 - nnethercote:optimize-impl_read_unsigned_leb128, r=michaelwoerister 2022-01-15 07:27:30 +00:00
rustc_session sess/cg: re-introduce split dwarf kind 2022-01-06 09:32:42 +00:00
rustc_span Rollup merge of #92743 - bjorn3:less_symbol_intern, r=camelid 2022-01-15 02:25:17 +01:00
rustc_symbol_mangling Ensure that Fingerprint caching respects hashing configuration 2022-01-05 10:13:28 -05:00
rustc_target eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_trait_selection Rollup merge of #92191 - jackh726:issue-89352, r=nikomatsakis 2022-01-15 02:25:14 +01:00
rustc_traits Add trait_item_def_id to AssocItem 2022-01-07 12:28:12 -08:00
rustc_ty_utils Add query to avoid name comparison in leaf_def 2022-01-07 13:31:36 -08:00
rustc_type_ir Fix HashStable implementation on InferTy 2021-12-13 20:36:17 -08:00
rustc_typeck Rollup merge of #92892 - compiler-errors:const-param-env-for-const-block, r=fee1-dead 2022-01-15 11:28:28 +01:00