rust/compiler
kadmin e4e5db4e42 Add has_default to GenericParamDefKind::Const
This currently creates a field which is always false on GenericParamDefKind for future use when
consts are permitted to have defaults

Update const_generics:default locations

Previously just ignored them, now actually do something about them.

Fix using type check instead of value

Add parsing

This adds all the necessary changes to lower const-generics defaults from parsing.

Change P<Expr> to AnonConst

This matches the arguments passed to instantiations of const generics, and makes it specific to
just anonymous constants.

Attempt to fix lowering bugs
2021-03-23 17:16:20 +00:00
..
rustc Rollup merge of #82642 - sfackler:jemalloc-zone, r=pnkfelix 2021-03-08 13:13:22 +01:00
rustc_apfloat stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_arena Rollup merge of #83197 - jyn514:cfg-test-dead-code, r=joshtriplett 2021-03-19 15:03:24 +01:00
rustc_ast Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_ast_lowering Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_ast_passes Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_ast_pretty Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_attr stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_builtin_macros stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_codegen_cranelift update const_eval_resolve 2021-03-20 17:22:24 +01:00
rustc_codegen_llvm Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
rustc_codegen_ssa Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
rustc_data_structures Auto merge of #83273 - cjgillot:endecode, r=michaelwoerister 2021-03-22 12:18:57 +00:00
rustc_driver Add rustc_interface::interface::Config::parse_sess_created 2021-03-15 18:24:58 +08:00
rustc_error_codes Rollup merge of #80527 - jyn514:rustdoc-lints, r=GuillaumeGomez 2021-03-04 20:01:01 +09:00
rustc_errors Remove unnecessary forward_inner_docs hack 2021-03-17 09:52:45 -04:00
rustc_expand Rollup merge of #83384 - mark-i-m:rename-pat2018, r=joshtriplett 2021-03-23 10:15:43 +09:00
rustc_feature Rollup merge of #83384 - mark-i-m:rename-pat2018, r=joshtriplett 2021-03-23 10:15:43 +09:00
rustc_fs_util Optimize away a fs::metadata call. 2021-01-06 08:33:15 -08:00
rustc_graphviz remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
rustc_hir stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_hir_pretty Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_incremental Auto merge of #83273 - cjgillot:endecode, r=michaelwoerister 2021-03-22 12:18:57 +00:00
rustc_index Remove useless Clone bound in IndexVec. 2021-03-09 18:51:36 +01:00
rustc_infer Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_interface Convert -Z mutable-noalias to Optional<bool> 2021-03-21 20:10:53 +01:00
rustc_lexer Return EOF_CHAR constant instead of magic char. 2021-01-07 13:20:04 +01:00
rustc_lint stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_lint_defs Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
rustc_llvm cleanup: add some comments per review feedback 2021-03-22 14:37:49 -04:00
rustc_macros Add inlining. 2021-03-11 12:24:43 +01:00
rustc_metadata Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
rustc_middle Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_mir Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_mir_build Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
rustc_parse Rollup merge of #83384 - mark-i-m:rename-pat2018, r=joshtriplett 2021-03-23 10:15:43 +09:00
rustc_parse_format stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_passes stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_plugin_impl Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
rustc_privacy Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_query_impl Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasper 2021-03-16 22:42:56 +00:00
rustc_query_system Debug-print result when an unstable fingerprint is detected 2021-03-19 21:47:57 -04:00
rustc_resolve Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_save_analysis Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_serialize Move raw bytes handling to Encoder/Decoder. 2021-03-19 19:35:22 +01:00
rustc_session Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis 2021-03-22 19:48:27 +00:00
rustc_span Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_symbol_mangling stabilize or_patterns 2021-03-19 19:45:32 -05:00
rustc_target Move decision aboute noalias into codegen_llvm 2021-03-21 20:10:53 +01:00
rustc_trait_selection Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_traits Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_ty_utils Don't consider !Unpin references as noalias 2021-03-21 20:10:53 +01:00
rustc_type_ir New pass to deduplicate blocks 2021-02-21 21:51:54 +01:00
rustc_typeck Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00