rust/src
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
..
bootstrap
build_helper
ci
doc
etc
librustdoc Rollup merge of #83415 - camelid:remove-crate-module-option, r=jyn514 2021-03-24 01:52:36 +01:00
llvm-project@c3a26cbf6e
rustdoc-json-types
test Auto merge of #75384 - JulianKnodt:cg_def, r=varkor,lcnr 2021-03-24 04:13:27 +00:00
tools Add has_default to GenericParamDefKind::Const 2021-03-23 17:16:20 +00:00
README.md
stage0.txt
version

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.