about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2021-12-05 11:21:24 -0800
committerDavid Tolnay <dtolnay@gmail.com>2021-12-05 11:31:36 -0800
commita9f14c18fa1fe455aa9ea3efb74335653d51a884 (patch)
tree1f670f7b1accdce64cd7d116628dc738653001e9 /compiler/rustc_mir_transform/src
parent772d51f887fa407216860bf8ecf3f1a32fb795b4 (diff)
downloadrust-a9f14c18fa1fe455aa9ea3efb74335653d51a884.tar.gz
rust-a9f14c18fa1fe455aa9ea3efb74335653d51a884.zip
Add pretty printer test for async blocks
Currently fails with:

    ---- [pretty] pretty/async.rs stdout ----

    error: pretty-printed source does not match expected source
    expected:
    ------------------------------------------
    // pp-exact
    // pretty-compare-only
    // edition:2021

    async fn f() {
        let first = async { 1 };
        let second = async move { 2 };
        join(first, second).await
    }

    ------------------------------------------
    actual:
    ------------------------------------------
    // pp-exact
    // pretty-compare-only
    // edition:2021

    async fn f() {
        let first = async  { 1 };
        let second = async move  { 2 };
        join(first, second).await
    }

    ------------------------------------------
    diff:
    ------------------------------------------
    3	// edition:2021
    4
    5	async fn f() {
    -	    let first = async { 1 };
    -	    let second = async move { 2 };
    +	    let first = async  { 1 };
    +	    let second = async move  { 2 };
    8	    join(first, second).await
    9	}
    10
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions