Skip to content

Err codes #35431

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

Merged
merged 5 commits into from
Aug 12, 2016
Merged

Err codes #35431

merged 5 commits into from
Aug 12, 2016

Conversation

GuillaumeGomez
Copy link
Member

@sophiajt
Copy link
Contributor

sophiajt commented Aug 6, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 6, 2016

📌 Commit 6f05f21 has been approved by jonathandturner

@bors
Copy link
Collaborator

bors commented Aug 6, 2016

⌛ Testing commit 6f05f21 with merge 893c7c6...

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@GuillaumeGomez
Copy link
Member Author

Updated.

@sophiajt
Copy link
Contributor

sophiajt commented Aug 7, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

📌 Commit 24a8a75 has been approved by jonathandturner

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

⌛ Testing commit 24a8a75 with merge 4b8ffe5...

bors added a commit that referenced this pull request Aug 7, 2016
@bors
Copy link
Collaborator

bors commented Aug 7, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@sophiajt
Copy link
Contributor

sophiajt commented Aug 7, 2016

Failure looks legit:


---- Rust_Compiler_Error_Index_329 stdout ----
    <anon>:3:1: 8:2 warning: enum is never used: `Foo`, #[warn(dead_code)] on by default 
<anon>:3 enum Foo {
         ^
<anon>:4:9: 4:27 error: literal out of range for isize 
<anon>:4     X = 0x7fffffffffffffff,
                 ^~~~~~~~~~~~~~~~~~
<anon>:2:12: 2:32 note: lint level defined here 
<anon>:2     #[deny(overflowing_literals)]
                    ^~~~~~~~~~~~~~~~~~~~
thread 'Rust_Compiler_Error_Index_329' panicked at 'Some expected error codes were not found: ["E0370"]', C:\bot\slave\auto-win-gnu-32-opt-rustbuild\build\src\librustdoc\test.rs:297


failures:
    Rust_Compiler_Error_Index_329

@GuillaumeGomez
Copy link
Member Author

Not really since it works locally. I really don't understand the difference between the two...

@GuillaumeGomez
Copy link
Member Author

I removed the change for the problem. I'll go back on it later.

@sophiajt
Copy link
Contributor

sophiajt commented Aug 7, 2016

@GuillaumeGomez - is it ready for r+?

@GuillaumeGomez
Copy link
Member Author

Yes.

@sophiajt
Copy link
Contributor

sophiajt commented Aug 7, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

📌 Commit f9ca8d8 has been approved by jonathandturner

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

⌛ Testing commit f9ca8d8 with merge fa4b278...

@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2016

@GuillaumeGomez I believe the default enum discriminant type is isize thus on 64bit platforms you get the expected error but on 32bit platforms the deny(overflowing_literals) lint triggers first, so a potential fix would probably be to mark the enum as #[repr(i64)].

@GuillaumeGomez
Copy link
Member Author

@TimNN: Great idea! Want to do it? :)

@bors
Copy link
Collaborator

bors commented Aug 7, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@GuillaumeGomez
Copy link
Member Author

Updated.

@TimNN
Copy link
Contributor

TimNN commented Aug 8, 2016

@GuillaumeGomez: I'm pretty sure that compile-fail/E0370.rs will now fail on 64 bit platforms.

@GuillaumeGomez
Copy link
Member Author

Ah right. I need to add the repr.

@GuillaumeGomez
Copy link
Member Author

NOW it should be done.

@TimNN
Copy link
Contributor

TimNN commented Aug 8, 2016

@GuillaumeGomez shouldn't it be

#[repr(i64)]
enum Foo {
    X = 0x7fffffffffffffff,
    Y, //~ ERROR E0370
}

fn main() {}

?

@GuillaumeGomez
Copy link
Member Author

Yes it should... Why did I change it?

@GuillaumeGomez
Copy link
Member Author

And updated.

@sophiajt
Copy link
Contributor

sophiajt commented Aug 8, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 8, 2016

📌 Commit 0658941 has been approved by jonathandturner

@bors
Copy link
Collaborator

bors commented Aug 10, 2016

⌛ Testing commit 0658941 with merge 296f8f9...

@bors
Copy link
Collaborator

bors commented Aug 10, 2016

💔 Test failed - auto-linux-64-debug-opt

@GuillaumeGomez
Copy link
Member Author

@bors: retry

@sophiajt
Copy link
Contributor

@bors p=1

@bors
Copy link
Collaborator

bors commented Aug 12, 2016

⌛ Testing commit 0658941 with merge 1deb02e...

bors added a commit that referenced this pull request Aug 12, 2016
@bors
Copy link
Collaborator

bors commented Aug 12, 2016

💔 Test failed - auto-linux-64-debug-opt

@sophiajt
Copy link
Contributor

@bors retry

@bors bors merged commit 0658941 into rust-lang:master Aug 12, 2016
@GuillaumeGomez GuillaumeGomez deleted the err_codes branch August 15, 2016 10:07
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.

4 participants