Skip to content

Commit b29f7e5

Browse files
committed
---
yaml --- r: 151217 b: refs/heads/try2 c: d8a34e7 h: refs/heads/master i: 151215: 914dfd5 v: v3
1 parent df79888 commit b29f7e5

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 96dfed2b62c6e84a542f9a170133ec528e2191c2
8+
refs/heads/try2: d8a34e7d3f3f447ccff0b72fd5fb18a7c78d0cc5
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ pub trait Delegate {
104104
// supplies types from the tree. After type checking is complete, you
105105
// can just use the tcx as the typer.
106106

107-
pub struct ExprUseVisitor<'d,'t,D,TYPER> {
107+
pub struct ExprUseVisitor<'d,'t,TYPER> {
108108
typer: &'t TYPER,
109109
mc: mc::MemCategorizationContext<'t,TYPER>,
110-
delegate: &'d mut D,
110+
delegate: &'d mut Delegate,
111111
}
112112

113113
// If the TYPER results in an error, it's because the type check
@@ -126,10 +126,10 @@ macro_rules! ignore_err(
126126
)
127127
)
128128

129-
impl<'d,'t,D:Delegate,TYPER:mc::Typer> ExprUseVisitor<'d,'t,D,TYPER> {
130-
pub fn new(delegate: &'d mut D,
129+
impl<'d,'t,TYPER:mc::Typer> ExprUseVisitor<'d,'t,TYPER> {
130+
pub fn new(delegate: &'d mut Delegate,
131131
typer: &'t TYPER)
132-
-> ExprUseVisitor<'d,'t,D,TYPER> {
132+
-> ExprUseVisitor<'d,'t,TYPER> {
133133
ExprUseVisitor { typer: typer,
134134
mc: mc::MemCategorizationContext::new(typer),
135135
delegate: delegate }
@@ -370,13 +370,10 @@ impl<'d,'t,D:Delegate,TYPER:mc::Typer> ExprUseVisitor<'d,'t,D,TYPER> {
370370
}
371371

372372
ast::ExprAssignOp(_, lhs, rhs) => {
373-
// FIXME(#4712) --- Overloaded operators?
374-
//
375-
// if !self.walk_overloaded_operator(expr, [lhs, rhs])
376-
// {
373+
// This will have to change if/when we support
374+
// overloaded operators for `+=` and so forth.
377375
self.mutate_expr(expr, lhs, WriteAndRead);
378376
self.consume_expr(rhs);
379-
// }
380377
}
381378

382379
ast::ExprRepeat(base, count) => {

0 commit comments

Comments
 (0)