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

Remove integer suffixes where the types in compiled code are identical. #22994

Merged
merged 2 commits into from
Mar 6, 2015

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Mar 3, 2015

Automatic has-same-types testing methodology can be found in #22501.
Because most of them don't work with --pretty=typed, compile-fail tests were manually audited.

r? @aturon

@bors
Copy link
Contributor

bors commented Mar 3, 2015

☔ The latest upstream changes (presumably #22995) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

Nice! From what I can tell there are no substantial changes other than removing integer suffixes, so r=me whenever this is ready to go.

@eddyb
Copy link
Member Author

eddyb commented Mar 3, 2015

r? @alexcrichton @bors r=alexcrichton

@rust-highfive rust-highfive assigned alexcrichton and unassigned aturon Mar 3, 2015
@bors
Copy link
Contributor

bors commented Mar 3, 2015

@bors r=eddyb c414de4

@pnkfelix
Copy link
Member

pnkfelix commented Mar 4, 2015

@eddyb it looks to me like this and PR #23002 will be racing for who can update the files first... we'll see if bors rejects me

@bors
Copy link
Contributor

bors commented Mar 4, 2015

☔ The latest upstream changes (presumably #23002) made this pull request unmergeable. Please resolve the merge conflicts.

@eddyb
Copy link
Member Author

eddyb commented Mar 4, 2015

@bors r=alexcrichton b67f501

@bors
Copy link
Contributor

bors commented Mar 4, 2015

⌛ Testing commit b67f501 with merge 8b7c249...

@bors
Copy link
Contributor

bors commented Mar 4, 2015

💔 Test failed - auto-mac-32-opt

(|| Box::new(*[0_usize].as_slice()))();
//~^ ERROR the trait `core::marker::Sized` is not implemented for the type `[usize]`
(|| Box::new(*[0].as_slice()))();
//~^ ERROR the trait `core::marker::Sized` is not implemented for the type `[i32]`
Copy link
Member

Choose a reason for hiding this comment

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

the error message we are actually getting here is:

error: the trait core::marker::Sized is not implemented for the type [_]

which i admit, raises a semi-interesting question about whether we are better off applying int-fallback to our error message output (as it seems like @eddyb assumed would be done here?)

@eddyb
Copy link
Member Author

eddyb commented Mar 4, 2015

the error message we are actually getting here is:

error: the trait core::marker::Sized is not implemented for the type [_]

which i admit, raises a semi-interesting question about whether we are better off applying int-fallback > to our error message output (as it seems like @eddyb assumed would be done here?)

@pnkfelix well, it was i32, but I think we've regressed overnight, you might want to check that out.

@eddyb
Copy link
Member Author

eddyb commented Mar 4, 2015

@bors r=alexcrichton 48fba76

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 5, 2015
…chton

 Automatic has-same-types testing methodology can be found in rust-lang#22501.
Because most of them don't work with `--pretty=typed`, compile-fail tests were manually audited.

r? @aturon
Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 5, 2015
…chton

 Automatic has-same-types testing methodology can be found in rust-lang#22501.
Because most of them don't work with `--pretty=typed`, compile-fail tests were manually audited.

r? @aturon
@bors
Copy link
Contributor

bors commented Mar 5, 2015

⌛ Testing commit 48fba76 with merge 42b86e0...

@bors
Copy link
Contributor

bors commented Mar 5, 2015

💔 Test failed - auto-win-32-opt

@bors bors merged commit 48fba76 into rust-lang:master Mar 6, 2015
@eddyb eddyb deleted the unsuffix-ints-good branch March 6, 2015 01:25
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