Skip to content
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 tests for some const generics issues #88602

Merged
merged 2 commits into from
Sep 6, 2021
Merged

Conversation

BoxyUwU
Copy link
Member

@BoxyUwU BoxyUwU commented Sep 2, 2021

closes #82956
closes #84659
closes #86530
closes #86535

there is also a random test in here about array repeat expressions that I already had on this branch but it seems to fit the theme of this PR so kept it...

r? @lcnr

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 2, 2021

fn pop(self) -> (Self::Newlen, Self::Output) {
let mut iter = IntoIter::new(self);
//~^ ERROR: failed to resolve: use of undeclared type `IntoIter`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does importing the trait break the ICE? If not wouldn't be including it easier for this testcase?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm honestly not sure if it would cause this to not repro the ICE or not. I don't really have a way of verifying...

@lcnr
Copy link
Contributor

lcnr commented Sep 5, 2021

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 5, 2021

📌 Commit 89c6d4f has been approved by lcnr

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 5, 2021
@rylev rylev mentioned this pull request Sep 6, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 6, 2021
Rollup of 6 pull requests

Successful merges:

 - rust-lang#88602 (Add tests for some const generics issues)
 - rust-lang#88647 (Document when to use Windows' `symlink_dir` vs. `symlink_file`)
 - rust-lang#88659 (Remove SmallVector mention)
 - rust-lang#88661 (Correct typo)
 - rust-lang#88673 (Fix typo: needede -> needed)
 - rust-lang#88685 (:arrow_up: rust-analyzer)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit dcd0e1d into rust-lang:master Sep 6, 2021
@rustbot rustbot added this to the 1.57.0 milestone Sep 6, 2021
@lcnr lcnr added the A-const-generics Area: const generics (parameters and arguments) label Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
6 participants