Skip to content

Commit 483462f

Browse files
committed
---
yaml --- r: 228687 b: refs/heads/try c: 4172c82 h: refs/heads/master i: 228685: 84fcaf1 228683: f693fd5 228679: ab010dd 228671: 615af5c v: v3
1 parent f1b8add commit 483462f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 6b49f4ded7c92da2323043bcda59886c881023e9
4+
refs/heads/try: 4172c8237be8f334d613178645d8143d644a9a11
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc/middle/expr_use_visitor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ macro_rules! return_if_err {
256256
($inp: expr) => (
257257
match $inp {
258258
Ok(v) => v,
259-
Err(()) => return
259+
Err(()) => {
260+
debug!("mc reported err");
261+
return
262+
}
260263
}
261264
)
262265
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,13 @@ impl<'t, 'a,'tcx> MemCategorizationContext<'t, 'a, 'tcx> {
367367
}
368368

369369
fn expr_ty(&self, expr: &ast::Expr) -> McResult<Ty<'tcx>> {
370-
self.typer.node_ty(expr.id)
370+
match self.typer.node_ty(expr.id) {
371+
Ok(t) => Ok(t),
372+
Err(()) => {
373+
debug!("expr_ty({:?}) yielded Err", expr);
374+
Err(())
375+
}
376+
}
371377
}
372378

373379
fn expr_ty_adjusted(&self, expr: &ast::Expr) -> McResult<Ty<'tcx>> {

0 commit comments

Comments
 (0)