about summary refs log tree commit diff
path: root/src/test/ui/recursion
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-13 16:27:59 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-01 17:39:19 +0200
commit42e4eee8931479a02c11c88ddaddb3a494e136c6 (patch)
treea1b3bade4e24fbe6bbcff84376aed94bc6505257 /src/test/ui/recursion
parentca1e68b3229e710c3948a361ee770d846a88e6da (diff)
downloadrust-42e4eee8931479a02c11c88ddaddb3a494e136c6.tar.gz
rust-42e4eee8931479a02c11c88ddaddb3a494e136c6.zip
Shorten def_span for more items.
Diffstat (limited to 'src/test/ui/recursion')
-rw-r--r--src/test/ui/recursion/recursive-static-definition.stderr2
-rw-r--r--src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr14
2 files changed, 6 insertions, 10 deletions
diff --git a/src/test/ui/recursion/recursive-static-definition.stderr b/src/test/ui/recursion/recursive-static-definition.stderr
index d4d2c8c3d9c..1359761457a 100644
--- a/src/test/ui/recursion/recursive-static-definition.stderr
+++ b/src/test/ui/recursion/recursive-static-definition.stderr
@@ -2,7 +2,7 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
   --> $DIR/recursive-static-definition.rs:1:1
    |
 LL | pub static FOO: u32 = FOO;
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+   | ^^^^^^^^^^^^^^^^^^^
    |
 note: ...which requires const-evaluating + checking `FOO`...
   --> $DIR/recursive-static-definition.rs:1:23
diff --git a/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr b/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr
index a9159562d9d..acbd0d05984 100644
--- a/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr
+++ b/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr
@@ -9,15 +9,11 @@ LL |     let Ok(x) = res;
 note: `Result<u32, &R>` defined here
   --> $SRC_DIR/core/src/result.rs:LL:COL
    |
-LL | / pub enum Result<T, E> {
-LL | |     /// Contains the success value
-LL | |     #[lang = "Ok"]
-LL | |     #[stable(feature = "rust1", since = "1.0.0")]
-...  |
-LL | |     Err(#[stable(feature = "rust1", since = "1.0.0")] E),
-   | |     ^^^ not covered
-LL | | }
-   | |_-
+LL | pub enum Result<T, E> {
+   | ---------------------
+...
+LL |     Err(#[stable(feature = "rust1", since = "1.0.0")] E),
+   |     ^^^ not covered
    = note: the matched value is of type `Result<u32, &R>`
 help: you might want to use `if let` to ignore the variant that isn't matched
    |