diff options
| author | David Wood <david@davidtw.co> | 2018-12-22 15:32:44 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-12-30 14:30:59 +0100 |
| commit | c20ba65a0b3142bbd88031fbf6eb7ef46bc1f7b3 (patch) | |
| tree | e81d2c7e6713b8178a1e9a7ba55fc1e408a15399 /src/test | |
| parent | 0bfe184b1ad14db4b002c3a272adf44e1839822f (diff) | |
| download | rust-c20ba65a0b3142bbd88031fbf6eb7ef46bc1f7b3.tar.gz rust-c20ba65a0b3142bbd88031fbf6eb7ef46bc1f7b3.zip | |
Guarantee `rustc_dump_user_substs` error order.
This commit buffers the errors output by the `rustc_dump_user_substs` attribute so that they can be output in order of span and would therefore be consistent.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/nll/user-annotations/dump-fn-method.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/nll/user-annotations/dump-fn-method.stderr b/src/test/ui/nll/user-annotations/dump-fn-method.stderr index fc4544437c5..a1a4e43e8a3 100644 --- a/src/test/ui/nll/user-annotations/dump-fn-method.stderr +++ b/src/test/ui/nll/user-annotations/dump-fn-method.stderr @@ -1,8 +1,8 @@ -error: user substs: UserSubsts { substs: [^0, ^1, u32], user_self_ty: None } - --> $DIR/dump-fn-method.rs:44:5 +error: user substs: UserSubsts { substs: [u32], user_self_ty: None } + --> $DIR/dump-fn-method.rs:26:13 | -LL | y.method::<u32>(44, 66); //~ ERROR [^0, ^1, u32] - | ^^^^^^^^^^^^^^^^^^^^^^^ +LL | let x = foo::<u32>; //~ ERROR [u32] + | ^^^^^^^^^^ error: user substs: UserSubsts { substs: [^0, u32, ^1], user_self_ty: None } --> $DIR/dump-fn-method.rs:32:13 @@ -16,11 +16,11 @@ error: user substs: UserSubsts { substs: [u8, u16, u32], user_self_ty: None } LL | let x = <u8 as Bazoom<u16>>::method::<u32>; //~ ERROR [u8, u16, u32] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: user substs: UserSubsts { substs: [u32], user_self_ty: None } - --> $DIR/dump-fn-method.rs:26:13 +error: user substs: UserSubsts { substs: [^0, ^1, u32], user_self_ty: None } + --> $DIR/dump-fn-method.rs:44:5 | -LL | let x = foo::<u32>; //~ ERROR [u32] - | ^^^^^^^^^^ +LL | y.method::<u32>(44, 66); //~ ERROR [^0, ^1, u32] + | ^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 4 previous errors |
