Skip to content

Commit 69913e6

Browse files
committed
Merge pull request #833 from mcarton/rustup
Rustup to 1.9.0-nightly (5ab11d7 2016-04-02)
2 parents 35d9891 + 67fb0e1 commit 69913e6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.60"
3+
version = "0.0.61"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",

src/cyclomatic_complexity.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ impl<'a, 'b, 'tcx> Visitor<'a> for CCHelper<'b, 'tcx> {
149149
}
150150

151151
#[cfg(feature="debugging")]
152-
fn report_cc_bug(cx: &LateContext, cc: u64, narms: u64, div: u64, shorts: u64, span: Span) {
153-
cx.sess().span_bug(span,
154-
&format!("Clippy encountered a bug calculating cyclomatic complexity: cc = {}, arms = {}, \
155-
div = {}, shorts = {}. Please file a bug report.",
156-
cc,
157-
narms,
158-
div,
159-
shorts));;
152+
fn report_cc_bug(_: &LateContext, cc: u64, narms: u64, div: u64, shorts: u64, span: Span) {
153+
span_bug!(span,
154+
"Clippy encountered a bug calculating cyclomatic complexity: cc = {}, arms = {}, \
155+
div = {}, shorts = {}. Please file a bug report.",
156+
cc,
157+
narms,
158+
div,
159+
shorts);
160160
}
161161
#[cfg(not(feature="debugging"))]
162162
fn report_cc_bug(cx: &LateContext, cc: u64, narms: u64, div: u64, shorts: u64, span: Span) {

src/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'a, 'tcx: 'a> Delegate<'tcx> for EscapeDelegate<'a, 'tcx> {
144144
self.set.remove(&lid); // Used without autodereffing (i.e. x.clone())
145145
}
146146
} else {
147-
self.cx.sess().span_bug(cmt.span, "Unknown adjusted AutoRef");
147+
span_bug!(cmt.span, "Unknown adjusted AutoRef");
148148
}
149149
} else if LoanCause::AddrOf == loan_cause {
150150
// &x

src/matches.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ fn match_template(cx: &LateContext, span: Span, source: MatchSource, op: &str, e
415415
MatchSource::Normal => format!("match {}{} {{ .. }}", op, expr_snippet),
416416
MatchSource::IfLetDesugar { .. } => format!("if let .. = {}{} {{ .. }}", op, expr_snippet),
417417
MatchSource::WhileLetDesugar => format!("while let .. = {}{} {{ .. }}", op, expr_snippet),
418-
MatchSource::ForLoopDesugar => cx.sess().span_bug(span, "for loop desugared to match with &-patterns!"),
419-
MatchSource::TryDesugar => cx.sess().span_bug(span, "`?` operator desugared to match with &-patterns!")
418+
MatchSource::ForLoopDesugar => span_bug!(span, "for loop desugared to match with &-patterns!"),
419+
MatchSource::TryDesugar => span_bug!(span, "`?` operator desugared to match with &-patterns!")
420420
}
421421
}
422422

0 commit comments

Comments
 (0)