File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
trunk/src/rustc/middle/trans Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 73ea690016452d7c7d732d0fd6940d6271411606
2
+ refs/heads/master: fda7bb672134257c0466cd6b7bbf738963d2a130
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -180,6 +180,21 @@ fn mark_for_expr(cx: ctx, e: @expr) {
180
180
// after the chosen field
181
181
let base_ty = ty:: node_id_to_type ( cx. ccx . tcx , base. id ) ;
182
182
type_needs ( cx, use_repr, ty:: type_autoderef ( cx. ccx . tcx , base_ty) ) ;
183
+
184
+ option:: iter ( cx. ccx . maps . method_map . find ( e. id ) ) { |mth|
185
+ alt mth {
186
+ typeck : : method_static ( did) {
187
+ option:: iter ( cx. ccx . tcx . node_type_substs . find ( e. id ) ) { |ts|
188
+ vec:: iter2 ( type_uses_for ( cx. ccx , did, ts. len ( ) ) , ts)
189
+ { |uses, subst| type_needs ( cx, uses, subst) }
190
+ }
191
+ }
192
+ typeck:: method_param ( _, _, param, _) {
193
+ cx. uses [ param] |= use_tydesc;
194
+ }
195
+ typeck:: method_iface ( _, _) { }
196
+ }
197
+ }
183
198
}
184
199
expr_log ( _, _, val) {
185
200
node_type_needs ( cx, use_tydesc, val. id ) ;
You can’t perform that action at this time.
0 commit comments