Skip to content

Commit 1a9bf1d

Browse files
committed
---
yaml --- r: 272211 b: refs/heads/auto c: dfd0e93 h: refs/heads/master i: 272209: 0120d7c 272207: b1eb562
1 parent 0602e84 commit 1a9bf1d

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
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: bcdaccfbbec562e8fb927359deada166d15dcf58
11+
refs/heads/auto: dfd0e937acb4d07fbdc6d95d5d8d6e852f7ef734
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc/infer/type_variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl<'tcx> TypeVariableTable<'tcx> {
259259
// quick check to see if this variable was
260260
// created since the snapshot started or not.
261261
let escaping_type = match self.values.get(vid.index as usize).value {
262-
Bounded { .. } => unreachable!(),
262+
Bounded { .. } => bug!(),
263263
Known(ty) => ty,
264264
};
265265
escaping_types.push(escaping_type);

branches/auto/src/librustc/middle/mem_categorization.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -724,12 +724,12 @@ impl<'t, 'a,'tcx> MemCategorizationContext<'t, 'a, 'tcx> {
724724
let fn_body_id = {
725725
let fn_expr = match self.tcx().map.find(upvar_id.closure_expr_id) {
726726
Some(ast_map::NodeExpr(e)) => e,
727-
_ => unreachable!()
727+
_ => bug!()
728728
};
729729

730730
match fn_expr.node {
731731
hir::ExprClosure(_, _, ref body) => body.id,
732-
_ => unreachable!()
732+
_ => bug!()
733733
}
734734
};
735735

@@ -1453,10 +1453,10 @@ impl<'tcx> cmt_<'tcx> {
14531453
match inner.cat {
14541454
Categorization::Deref(ref inner, _, _) => inner.clone(),
14551455
Categorization::Upvar(..) => inner.clone(),
1456-
_ => unreachable!()
1456+
_ => bug!()
14571457
}
14581458
}
1459-
_ => unreachable!()
1459+
_ => bug!()
14601460
})
14611461
}
14621462
NoteNone => None
@@ -1485,7 +1485,7 @@ impl<'tcx> cmt_<'tcx> {
14851485
Some(&Categorization::Upvar(ref var)) => {
14861486
var.to_string()
14871487
}
1488-
Some(_) => unreachable!(),
1488+
Some(_) => bug!(),
14891489
None => {
14901490
match pk {
14911491
Implicit(..) => {

branches/auto/src/librustc/middle/region.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ impl RegionMaps {
385385
}
386386
Entry::Vacant(v) => {
387387
if self.code_extents.borrow().len() > 0xffffffffusize {
388-
unreachable!() // should pass a sess,
389-
// but this isn't the only place
388+
bug!() // should pass a sess,
389+
// but this isn't the only place
390390
}
391391
let idx = CodeExtent(self.code_extents.borrow().len() as u32);
392392
info!("CodeExtent({}) = {:?} [parent={}]", idx.0, e, parent.0);
@@ -601,12 +601,12 @@ impl RegionMaps {
601601
scope_a
602602
} else {
603603
// neither fn encloses the other
604-
unreachable!()
604+
bug!()
605605
}
606606
}
607607
_ => {
608608
// root ids are always Misc right now
609-
unreachable!()
609+
bug!()
610610
}
611611
};
612612
}

branches/auto/src/librustc/mir/repr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ fn fmt_const_val<W: Write>(fmt: &mut W, const_val: &ConstVal) -> fmt::Result {
10161016
Struct(node_id) | Tuple(node_id) | Array(node_id, _) | Repeat(node_id, _) =>
10171017
write!(fmt, "{}", node_to_string(node_id)),
10181018
Char(c) => write!(fmt, "{:?}", c),
1019-
Dummy => unreachable!(),
1019+
Dummy => bug!(),
10201020
}
10211021
}
10221022

branches/auto/src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ macro_rules! options {
362362
value, $outputname,
363363
key, type_desc))
364364
}
365-
(None, None) => unreachable!()
365+
(None, None) => bug!()
366366
}
367367
}
368368
found = true;

branches/auto/src/librustc/traits/error_reporting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub fn report_overflow_error<'a, 'tcx, T>(infcx: &InferCtxt<'a, 'tcx>,
201201

202202
err.emit();
203203
infcx.tcx.sess.abort_if_errors();
204-
unreachable!();
204+
bug!();
205205
}
206206

207207
/// Reports that a cycle was detected which led to overflow and halts
@@ -323,7 +323,7 @@ pub fn try_report_overflow_error_type_of_infinite_size<'a, 'tcx>(
323323
}
324324
err.emit();
325325
infcx.tcx.sess.abort_if_errors();
326-
unreachable!();
326+
bug!();
327327
}
328328

329329
pub fn recursive_type_with_infinite_size_error<'tcx>(tcx: &TyCtxt<'tcx>,

branches/auto/src/librustc/traits/select.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
18701870
ty::BoundSized => ok_if(types),
18711871

18721872
// Shouldn't be coming through here.
1873-
ty::BoundSend | ty::BoundSync => unreachable!(),
1873+
ty::BoundSend | ty::BoundSync => bug!(),
18741874
}
18751875
}
18761876
}
@@ -2660,7 +2660,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
26602660
vec![inner_target]));
26612661
}
26622662

2663-
_ => unreachable!()
2663+
_ => bug!()
26642664
};
26652665

26662666
Ok(VtableBuiltinData { nested: nested })

branches/auto/src/librustc/ty/sty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl<'tcx> Decodable for &'tcx ClosureSubsts<'tcx> {
259259
Box::new(closure_substs));
260260
match ty.sty {
261261
TyClosure(_, ref closure_substs) => Ok(&**closure_substs),
262-
_ => unreachable!()
262+
_ => bug!()
263263
}
264264
})
265265
}
@@ -467,7 +467,7 @@ impl<'tcx> FnOutput<'tcx> {
467467
pub fn unwrap(self) -> Ty<'tcx> {
468468
match self {
469469
ty::FnConverging(t) => t,
470-
ty::FnDiverging => unreachable!()
470+
ty::FnDiverging => bug!()
471471
}
472472
}
473473

branches/auto/src/librustc/ty/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl IntTypeExt for attr::IntType {
6262
SignedInt(ast::IntTy::Is) => match tcx.sess.target.int_type {
6363
ast::IntTy::I32 => ConstInt::Isize(ConstIsize::Is32(0)),
6464
ast::IntTy::I64 => ConstInt::Isize(ConstIsize::Is64(0)),
65-
_ => unreachable!(),
65+
_ => bug!(),
6666
},
6767
UnsignedInt(ast::UintTy::U8) => ConstInt::U8(0),
6868
UnsignedInt(ast::UintTy::U16) => ConstInt::U16(0),
@@ -71,7 +71,7 @@ impl IntTypeExt for attr::IntType {
7171
UnsignedInt(ast::UintTy::Us) => match tcx.sess.target.uint_type {
7272
ast::UintTy::U32 => ConstInt::Usize(ConstUsize::Us32(0)),
7373
ast::UintTy::U64 => ConstInt::Usize(ConstUsize::Us64(0)),
74-
_ => unreachable!(),
74+
_ => bug!(),
7575
},
7676
}
7777
}
@@ -453,7 +453,7 @@ impl<'tcx> TyCtxt<'tcx> {
453453
hash!(p.idx);
454454
hash!(p.name.as_str());
455455
}
456-
TyInfer(_) => unreachable!(),
456+
TyInfer(_) => bug!(),
457457
TyError => byte!(21),
458458
TyClosure(d, _) => {
459459
byte!(22);

0 commit comments

Comments
 (0)