-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test for 62220 #70539
add test for 62220 #70539
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
#![feature(const_generics)] | ||
pub struct Vector<T, const N: usize>([T; N]); | ||
|
||
pub type TruncatedVector<T, const N: usize> = Vector<T, { N - 1 }>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not doing const WF at all except for array types, today.
#70107 aims to fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah; forgot that hadn't landed yet. Let's merge this PR like this then once the other comment has been addressed and we can make adjustments later in the other.
📌 Commit 3fa3c7a19a883ceeeecea5273520b569a959057e has been approved by |
@DutchGhost: could you flatten the two commits (as the second just undoes something in the first)? Thanks! @bors r- |
How do I flatten commits? |
In this case, the easiest option is probably to do |
@bors r+ rollup |
📌 Commit 61d4193 has been approved by |
Rollup of 4 pull requests Successful merges: - rust-lang#69702 (Rename TyLayout to TyAndLayout.) - rust-lang#70539 (add test for 62220) - rust-lang#70540 (#[link]: mention wasm_import_module instead of cfg) - rust-lang#70541 (prohibit_generics: update has_err for consts) Failed merges: r? @ghost
Closes #62220
Adds a test for #62220.
Im not sure whether
check-pass
is sufficient here. I didn't putrun-pass
in, as I'm afraid that'll fail due to theunimplemented!()
return in the code.