Skip to content

prevent cc lint from panicking on unreachable code #764

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 1 commit into from
Mar 14, 2016
Merged

prevent cc lint from panicking on unreachable code #764

merged 1 commit into from
Mar 14, 2016

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Mar 14, 2016

fixes #759

@@ -298,3 +298,9 @@ fn void(void: Void) { //~ ERROR: the function has a cyclomatic complexity of 1
}
}
}

#[cyclomatic_complexity = "0"]
fn mcarton_sees_all() {
Copy link
Member

Choose a reason for hiding this comment

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

😄

@mcarton
Copy link
Member

mcarton commented Mar 14, 2016

The error is in compiletest_rs and the change is pretty trivial. Merging anyway.

mcarton added a commit that referenced this pull request Mar 14, 2016
prevent cc lint from panicking on unreachable code
@mcarton mcarton merged commit 4fa6f49 into rust-lang:master Mar 14, 2016
@oli-obk oli-obk deleted the fix/cc/multi_diverge branch March 14, 2016 16:36
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.

ICE in CYCLOMATIC_COMPLEXITY lint
2 participants