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

Make unreachable_code lint warn on diverging call arguments as well #30000

Merged
merged 2 commits into from
Nov 24, 2015

Conversation

Manishearth
Copy link
Member

Fixes #1889

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@frewsxcv
Copy link
Member

🎊 💃 ③⓪⓪⓪⓪ 🍸 🎊

@Manishearth Manishearth force-pushed the unreachable-call branch 6 times, most recently from 709fdf3 to 36cfc31 Compare November 23, 2015 19:00
@eddyb
Copy link
Member

eddyb commented Nov 23, 2015

@bors r+

@bors
Copy link
Contributor

bors commented Nov 23, 2015

📌 Commit 2eca64d has been approved by eddyb

@brson brson added the relnotes Marks issues that should be documented in the release notes of the next release. label Nov 23, 2015
@eefriedman
Copy link
Contributor

<std macros>:4:9: 6:15 error: unreachable expression, #[deny(unreachable_code)] on by default
<std macros>:4 $ msg , {
<std macros>:5 static _FILE_LINE : ( & 'static str , u32 ) = ( file ! (  ) , line ! (  ) ) ;
<std macros>:6 & _FILE_LINE } ) } ) ; ( $ fmt : expr , $ ( $ arg : tt ) + ) => (
src/libsyntax/ext/base.rs:681:13: 683:57 note: in this expansion of panic! (defined in <std macros>)
<std macros>:4:9: 6:15 error: unreachable expression, #[deny(unreachable_code)] on by default
<std macros>:4 $ msg , {
<std macros>:5 static _FILE_LINE : ( & 'static str , u32 ) = ( file ! (  ) , line ! (  ) ) ;
<std macros>:6 & _FILE_LINE } ) } ) ; ( $ fmt : expr , $ ( $ arg : tt ) + ) => (
src/libsyntax/ext/tt/macro_rules.rs:212:17: 212:77 note: in this expansion of panic! (defined in <std macros>)
<std macros>:4:9: 6:15 error: unreachable expression, #[deny(unreachable_code)] on by default
<std macros>:4 $ msg , {
<std macros>:5 static _FILE_LINE : ( & 'static str , u32 ) = ( file ! (  ) , line ! (  ) ) ;
<std macros>:6 & _FILE_LINE } ) } ) ; ( $ fmt : expr , $ ( $ arg : tt ) + ) => (
src/libsyntax/ext/tt/macro_rules.rs:217:5: 217:84 note: in this expansion of panic! (defined in <std macros>)
error: aborting due to 3 previous errors

@eddyb
Copy link
Member

eddyb commented Nov 23, 2015

@bors r-

@Manishearth
Copy link
Member Author

Fixed. Got a full build running now.

// Test that the unboxed closure sugar can be used with an arbitrary
// struct type and that it is equivalent to the same syntax using
// angle brackets. This test covers only simple types and in
// particular doesn't test bound regions.
Copy link
Contributor

Choose a reason for hiding this comment

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

error: irrelevant comment lives too long

Copy link
Member Author

Choose a reason for hiding this comment

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

error: aborting due to previous error

(fixed)

@nrc
Copy link
Member

nrc commented Nov 24, 2015

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 24, 2015

📌 Commit 7fbcb51 has been approved by nrc

@bors
Copy link
Contributor

bors commented Nov 24, 2015

⌛ Testing commit 7fbcb51 with merge 561d088...

bors added a commit that referenced this pull request Nov 24, 2015
@bors
Copy link
Contributor

bors commented Nov 24, 2015

💔 Test failed - auto-win-msvc-64-opt

@Manishearth
Copy link
Member Author

@bors retry

@bors bors merged commit 7fbcb51 into rust-lang:master Nov 24, 2015
@Manishearth Manishearth deleted the unreachable-call branch November 25, 2015 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants