Skip to content

Commit 20e2779

Browse files
committed
---
yaml --- r: 235758 b: refs/heads/stable c: 4172c82 h: refs/heads/master v: v3
1 parent d238b99 commit 20e2779

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 6b49f4ded7c92da2323043bcda59886c881023e9
32+
refs/heads/stable: 4172c8237be8f334d613178645d8143d644a9a11
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/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/stable/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)