Skip to content

Commit 55d2898

Browse files
jldcatamorphism
authored andcommitted
---
yaml --- r: 39830 b: refs/heads/incoming c: 33414d8 h: refs/heads/master v: v3
1 parent ee8b468 commit 55d2898

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: c75d45d7e3bf3a6f45029baf97e0448bbcf07608
9+
refs/heads/incoming: 33414d81d10a8b35f420e4fbecbb7ee531190a2a
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/librustc/middle/trans/closure.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,17 @@ fn trans_expr_fn(bcx: block,
394394
* - `proto`
395395
* - `decl`
396396
* - `body`
397-
* - `outer_id`: The id of the closure expression with the correct type.
398-
* This is usually the same as as `user_id`, but in the case of a `for` loop,
399-
* the `outer_id` will have the return type of boolean, and the `user_id` will
400-
* have the return type of `nil`.
401-
* - `user_id`: The id of the closure as the user expressed it. Generally
402-
the same as `outer_id`
397+
* - `outer_id`: The id of the closure expression with the correct
398+
* type. This is usually the same as as `user_id`, but in the
399+
* case of a `for` loop, the `outer_id` will have the return
400+
* type of boolean, and the `user_id` will have the return type
401+
* of `nil`.
402+
* - `user_id`: The id of the closure as the user expressed it.
403+
Generally the same as `outer_id`
403404
* - `cap_clause`: information about captured variables, if any.
404405
* - `is_loop_body`: `Some()` if this is part of a `for` loop.
405-
* - `dest`: where to write the closure value, which must be a (fn ptr, env) pair
406+
* - `dest`: where to write the closure value, which must be a
407+
(fn ptr, env) pair
406408
*/
407409

408410
let _icx = bcx.insn_ctxt("closure::trans_expr_fn");

0 commit comments

Comments
 (0)