-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.F-const_generics`#![feature(const_generics)]``#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
cc #74878
#74877 implemented feature(min_const_generics)
which is split off from feature(const_generics)
.
As these two features have some meaningful differences it is desirable to run try and run all const generics tests with both features.
This can be done usingrevisions
. Some tests were already updated in #74877:
rust/src/test/ui/const-generics/issues/issue-56445.rs
Lines 1 to 13 in f9c2177
// Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-518402995. | |
// revisions: full min | |
#![cfg_attr(full, feature(const_generics))] //[full]~WARN the feature `const_generics` is incomplete | |
#![cfg_attr(min, feature(min_const_generics))] | |
#![crate_type = "lib"] | |
use std::marker::PhantomData; | |
struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>); | |
//~^ ERROR: use of non-static lifetime `'a` in const generic | |
//[min]~| ERROR: using `&'static str` as const | |
impl Bug<'_, ""> {} |
If you want to work on this feel free to ask for help here or on zulip.
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.F-const_generics`#![feature(const_generics)]``#![feature(const_generics)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.