about summary refs log tree commit diff
path: root/src/test/ui/issues
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-07-16 16:54:47 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-01 20:13:16 +0200
commit74fb87e3a0bb88cd3bd9857bedc236bda52a8af7 (patch)
tree0d0cb93dccd8dabac1ebbc365c6122b99f4332b3 /src/test/ui/issues
parentad3407f482d29f26c67700974d86f89b3f2ab993 (diff)
downloadrust-74fb87e3a0bb88cd3bd9857bedc236bda52a8af7.tar.gz
rust-74fb87e3a0bb88cd3bd9857bedc236bda52a8af7.zip
Stop sorting bodies by span.
The definition order is already close to the span order, and only differs
in corner cases.
Diffstat (limited to 'src/test/ui/issues')
-rw-r--r--src/test/ui/issues/issue-47486.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/issues/issue-47486.stderr b/src/test/ui/issues/issue-47486.stderr
index cf95d309c63..a029948ca3b 100644
--- a/src/test/ui/issues/issue-47486.stderr
+++ b/src/test/ui/issues/issue-47486.stderr
@@ -1,15 +1,15 @@
+error[E0282]: type annotations needed
+  --> $DIR/issue-47486.rs:3:31
+   |
+LL |     [0u8; std::mem::size_of::<_>()];
+   |                               ^ cannot infer type
+
 error[E0308]: mismatched types
   --> $DIR/issue-47486.rs:2:10
    |
 LL |     () < std::mem::size_of::<_>();
    |          ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `usize`
 
-error[E0282]: type annotations needed
-  --> $DIR/issue-47486.rs:3:11
-   |
-LL |     [0u8; std::mem::size_of::<_>()];
-   |           ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
-
 error: aborting due to 2 previous errors
 
 Some errors have detailed explanations: E0282, E0308.