about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-03-12 17:12:18 +0100
committerDavid Wood <david@davidtw.co>2019-04-21 16:46:32 +0100
commit7c6dc7a254eacec43b95862a5a943b3e8435aaa6 (patch)
tree14361cb321d5a3598179d3383cbbd063c2779398 /src/test/ui/thinlto
parent879abb1641d97be798010f52a875b9fc83881323 (diff)
downloadrust-7c6dc7a254eacec43b95862a5a943b3e8435aaa6.tar.gz
rust-7c6dc7a254eacec43b95862a5a943b3e8435aaa6.zip
Move `async fn` arguments into closure.
This commit takes advantage of `AsyncArgument` type that was added in a
previous commit to replace the arguments of the `async fn` in the HIR
and add statements to move the bindings from the new arguments to the
pattern from the old argument.

For example, the async function `foo` below:

    async fn foo((x, _y): (T, V)) {
        async move {
        }
    }

becomes:

    async fn foo(__arg0: (T, V)) {
        async move {
            let (x, _y) = __arg0;
        }
    }
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions