rust/compiler
bors 5b33de3340 Auto merge of #75384 - JulianKnodt:cg_def, r=varkor,lcnr
implement `feature(const_generics_defaults)`

Implements const generics defaults `struct Example<const N: usize=3>`, as well as a query for getting the default of a given const-parameter's def id. There are some remaining FIXME's but they were specified as not blocking for merging this PR. This also puts the defaults behind the unstable feature gate `#![feature(const_generics_defaults)]`.

~~This currently creates a field which is always false on `GenericParamDefKind` for future use when
consts are permitted to have defaults. I'm not sure if this is exactly what is best for adding default parameters, but I mimicked the style of type defaults, so hopefully this is ok.~~

r? `@lcnr`
2021-03-24 04:13:27 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Add query for const_param_default 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 progress, stuff compiles now 2021-03-23 17:16:20 +00:00
rustc_ast_pretty Update with comments 2021-03-23 17:16:20 +00:00
rustc_attr
rustc_builtin_macros
rustc_codegen_cranelift
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 Change -W help to display edition level. 2021-03-22 12:57:52 -07:00
rustc_error_codes progress, stuff compiles now 2021-03-23 17:16:20 +00:00
rustc_errors
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
rustc_graphviz
rustc_hir progress, stuff compiles now 2021-03-23 17:16:20 +00:00
rustc_hir_pretty Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_incremental Only enable assert_dep_graph when query-dep-graph is enabled. 2021-03-22 19:22:06 +01:00
rustc_index
rustc_infer Update to not have extra match 2021-03-23 20:01:40 +00:00
rustc_interface
rustc_lexer
rustc_lint
rustc_lint_defs
rustc_llvm cleanup: add some comments per review feedback 2021-03-22 14:37:49 -04:00
rustc_macros
rustc_metadata Update with comments 2021-03-23 17:16:20 +00:00
rustc_middle Update with comments 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
rustc_passes Auto merge of #75384 - JulianKnodt:cg_def, r=varkor,lcnr 2021-03-24 04:13:27 +00:00
rustc_plugin_impl
rustc_privacy Update with comments 2021-03-23 17:16:20 +00:00
rustc_query_impl
rustc_query_system
rustc_resolve progress, stuff compiles now 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
rustc_session Rollup merge of #83391 - hyd-dev:uwtable, r=alexcrichton 2021-03-24 01:52:30 +01:00
rustc_span Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
rustc_symbol_mangling
rustc_target Allow not emitting uwtable on Android 2021-03-23 04:39:58 +08: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
rustc_type_ir
rustc_typeck Update with comments 2021-03-23 17:16:20 +00:00