File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 8ed970159143b9151cdabacb11a369a023cf87cc
4
+ refs/heads/snap-stage3: c2751c5640c9400c58de494e0ff8a49e0c1de5d2
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ impl methods for check_loan_ctxt {
185
185
if is_fn_arg { ret; } // case (a) above
186
186
}
187
187
ast:: expr_fn_block ( * ) | ast:: expr_fn ( * ) |
188
- ast:: expr_loop_body ( * ) {
188
+ ast:: expr_loop_body ( * ) | ast :: expr_do_body ( * ) {
189
189
if self . is_stack_closure ( expr. id ) { ret; } // case (b) above
190
190
}
191
191
_ { }
Original file line number Diff line number Diff line change
1
+ pure fn f ( f : fn ( ) ) {
2
+ }
3
+
4
+ pure fn g ( ) {
5
+ // `f { || }` is considered pure, so `do f { || }` should be too
6
+ do f { || }
7
+ }
8
+
9
+ fn main ( ) {
10
+ }
You can’t perform that action at this time.
0 commit comments