Skip to content

Commit 2e91f01

Browse files
committed
---
yaml --- r: 272215 b: refs/heads/auto c: cc8159b h: refs/heads/master i: 272213: ffa470b 272211: 1a9bf1d 272207: b1eb562
1 parent 39a2b0b commit 2e91f01

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 065dcd0702769de9bd95d0e9887713c6778ed67f
11+
refs/heads/auto: cc8159b0ed63eb29254528fe9f078e3cec087b72
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc_lint/bad_style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub enum MethodLateContext {
3030
pub fn method_context(cx: &LateContext, id: ast::NodeId, span: Span) -> MethodLateContext {
3131
let def_id = cx.tcx.map.local_def_id(id);
3232
match cx.tcx.impl_or_trait_items.borrow().get(&def_id) {
33-
None => cx.sess().span_bug(span, "missing method descriptor?!"),
33+
None => span_bug!(span, "missing method descriptor?!"),
3434
Some(item) => match item.container() {
3535
ty::TraitContainer(..) => MethodLateContext::TraitDefaultImpl,
3636
ty::ImplContainer(cid) => {

branches/auto/src/librustc_lint/types.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl LateLintPass for TypeLimits {
181181
return;
182182
}
183183
}
184-
_ => panic!()
184+
_ => bug!()
185185
};
186186
},
187187
ty::TyUint(t) => {
@@ -195,7 +195,7 @@ impl LateLintPass for TypeLimits {
195195
// _v is u8, within range by definition
196196
ast::LitKind::Byte(_v) => return,
197197
ast::LitKind::Int(v, _) => v,
198-
_ => panic!()
198+
_ => bug!()
199199
};
200200
if lit_val < min || lit_val > max {
201201
cx.span_lint(OVERFLOWING_LITERALS, e.span,
@@ -212,7 +212,7 @@ impl LateLintPass for TypeLimits {
212212
Err(_) => return
213213
}
214214
}
215-
_ => panic!()
215+
_ => bug!()
216216
};
217217
if lit_val < min || lit_val > max {
218218
cx.span_lint(OVERFLOWING_LITERALS, e.span,
@@ -233,7 +233,7 @@ impl LateLintPass for TypeLimits {
233233
hir::BiGt => v >= min && v < max,
234234
hir::BiGe => v > min && v <= max,
235235
hir::BiEq | hir::BiNe => v >= min && v <= max,
236-
_ => panic!()
236+
_ => bug!()
237237
}
238238
}
239239

@@ -319,7 +319,7 @@ impl LateLintPass for TypeLimits {
319319
ast::LitKind::Int(v, ast::LitIntType::Unsuffixed) => v as i64,
320320
_ => return true
321321
},
322-
_ => panic!()
322+
_ => bug!()
323323
};
324324
is_valid(norm_binop, lit_val, min, max)
325325
}
@@ -330,7 +330,7 @@ impl LateLintPass for TypeLimits {
330330
ast::LitKind::Int(v, _) => v,
331331
_ => return true
332332
},
333-
_ => panic!()
333+
_ => bug!()
334334
};
335335
is_valid(norm_binop, lit_val, min, max)
336336
}
@@ -589,7 +589,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
589589
ty::TyParam(..) | ty::TyInfer(..) | ty::TyError |
590590
ty::TyClosure(..) | ty::TyProjection(..) |
591591
ty::TyFnDef(..) => {
592-
panic!("Unexpected type in foreign function")
592+
bug!("Unexpected type in foreign function")
593593
}
594594
}
595595
}

0 commit comments

Comments
 (0)