Skip to content

Commit 396ba15

Browse files
committed
---
yaml --- r: 112883 b: refs/heads/auto c: d8a34e7 h: refs/heads/master i: 112881: 8498626 112879: ab28b9c v: v3
1 parent ced9681 commit 396ba15

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 96dfed2b62c6e84a542f9a170133ec528e2191c2
16+
refs/heads/auto: d8a34e7d3f3f447ccff0b72fd5fb18a7c78d0cc5
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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