@@ -104,10 +104,10 @@ pub trait Delegate {
104
104
// supplies types from the tree. After type checking is complete, you
105
105
// can just use the tcx as the typer.
106
106
107
- pub struct ExprUseVisitor < ' d , ' t , D , TYPER > {
107
+ pub struct ExprUseVisitor < ' d , ' t , TYPER > {
108
108
typer : & ' t TYPER ,
109
109
mc : mc:: MemCategorizationContext < ' t , TYPER > ,
110
- delegate : & ' d mut D ,
110
+ delegate : & ' d mut Delegate ,
111
111
}
112
112
113
113
// If the TYPER results in an error, it's because the type check
@@ -126,10 +126,10 @@ macro_rules! ignore_err(
126
126
)
127
127
)
128
128
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 ,
131
131
typer : & ' t TYPER )
132
- -> ExprUseVisitor < ' d , ' t , D , TYPER > {
132
+ -> ExprUseVisitor < ' d , ' t , TYPER > {
133
133
ExprUseVisitor { typer : typer,
134
134
mc : mc:: MemCategorizationContext :: new ( typer) ,
135
135
delegate : delegate }
@@ -370,13 +370,10 @@ impl<'d,'t,D:Delegate,TYPER:mc::Typer> ExprUseVisitor<'d,'t,D,TYPER> {
370
370
}
371
371
372
372
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.
377
375
self . mutate_expr ( expr, lhs, WriteAndRead ) ;
378
376
self . consume_expr ( rhs) ;
379
- // }
380
377
}
381
378
382
379
ast:: ExprRepeat ( base, count) => {
0 commit comments