]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Rollup merge of #74654 - lcnr:default-no-more, r=varkor
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 23 Jul 2020 07:42:18 +0000 (00:42 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 07:42:18 +0000 (00:42 -0700)
commite9d41344673d5f22f3ea82b9f30595017e317e5b
tree618083433907394f4f0f29a1ddd78c5b50728fb3
parent9f2ef3f62d445a5871745ea02297644ca249a7b1
parent2f565967b056335659ff1dfc2108c746f4ac8af3
Rollup merge of #74654 - lcnr:default-no-more, r=varkor

require type defaults to be after const generic parameters

From current discussions it seems like the goal here is for type and const parameters to be unordered and allow things like `struct Foo<const N: usize, T = u32>(T)` and `struct Foo<T, const N: usize = 7>` this way.

Note: This means that using `min_const_generics` it will not be possible for an adt to have both type defaults and const parameters.

closes #70471

r? @varkor @eddyb