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 regression tests for #13727. #34003

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Conversation

frewsxcv
Copy link
Member

@frewsxcv frewsxcv commented Jun 1, 2016

Fixes #13727.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@frewsxcv frewsxcv force-pushed the 13727-regressions branch from 745eeaf to fa180b9 Compare June 1, 2016 04:02
@frewsxcv frewsxcv closed this Jun 4, 2016
@frewsxcv frewsxcv reopened this Jun 4, 2016
@brson
Copy link
Contributor

brson commented Jun 6, 2016

Seems like src/test/compile-fail/issue-13727-2.rs must be covered elsewhere in the test suite. The other test looks fine since it captures what the compiler actually does.

But is this the behavior we would actually expect from match patterns that are out of range? Do we actually guarantee that integers wrap at compile time (when we don't at runtime)?

@durka
Copy link
Contributor

durka commented Jun 6, 2016

The first one may be covered by compile-fail/enum-discrim-autosizing.rs.

@brson
Copy link
Contributor

brson commented Jun 7, 2016

It's also covered issue-15524. Can you remove the redundant test? r=me otherwise.

@frewsxcv frewsxcv force-pushed the 13727-regressions branch from fa180b9 to 7755d0c Compare June 7, 2016 01:09
@frewsxcv
Copy link
Member Author

frewsxcv commented Jun 7, 2016

Can you remove the redundant test?

Done.

@brson
Copy link
Contributor

brson commented Jun 7, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Jun 7, 2016

📌 Commit 7755d0c has been approved by brson

@bors
Copy link
Contributor

bors commented Jun 8, 2016

⌛ Testing commit 7755d0c with merge 368f6ae...

bors added a commit that referenced this pull request Jun 8, 2016
@bors bors merged commit 7755d0c into rust-lang:master Jun 8, 2016
@frewsxcv frewsxcv deleted the 13727-regressions branch June 8, 2016 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants