diff options
| author | bors <bors@rust-lang.org> | 2020-08-10 15:19:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-10 15:19:46 +0000 |
| commit | 08324fe6f7ac24be4c8bfcab42b12ee447635c80 (patch) | |
| tree | d499377d00aff85d051aebd59935a21fb8892e3c /src/rustllvm/RustWrapper.cpp | |
| parent | 4c336d46263999cce87de899220d7b92d11f1c85 (diff) | |
| parent | 64f643782245b25326c6e9a76bf78c798f1ae168 (diff) | |
| download | rust-08324fe6f7ac24be4c8bfcab42b12ee447635c80.tar.gz rust-08324fe6f7ac24be4c8bfcab42b12ee447635c80.zip | |
Auto merge of #74953 - JulianKnodt:master, r=lcnr
Remove restriction on type parameters preceding consts w/ feature const-generics Removed the restriction on type parameters preceding const parameters when the feature const-generics is enabled. Builds on #74676, which deals with unsorted generic parameters. This just lifts the check in lowering the AST to HIR that permits consts and types to be reordered with respect to each other. Lifetimes still must precede both This change is not intended for min-const-generics, and is gated behind the `#![feature(const_generics)]`. One thing is that it also permits type parameters without a default to come after consts, which I expected to not work, and was hoping to get more guidance on whether that should be permitted or how to prevent it otherwise. I did not go through the RFC process for this pull request because there was prior work to get this feature added. In the previous PR that was cited, work was done to enable this change. r? @lcnr
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
