about summary refs log tree commit diff
path: root/src/test/rustdoc-ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-17 17:30:16 +0000
committerbors <bors@rust-lang.org>2022-06-17 17:30:16 +0000
commit0cb9899e780bcefb9008088c1e6d6cd5fe2593b4 (patch)
tree99ff5236e8bf7662db9f6071acec6369d560272f /src/test/rustdoc-ui
parent43c47db0b04627dbd0e16a1e7cad14a4a5a60d3a (diff)
parent6fc412fb73e64c22e028b082d05c4b31c6b96a17 (diff)
downloadrust-0cb9899e780bcefb9008088c1e6d6cd5fe2593b4.tar.gz
rust-0cb9899e780bcefb9008088c1e6d6cd5fe2593b4.zip
Auto merge of #97892 - klensy:fix-spaces, r=oli-obk
diagnostics: remove trailing spaces

Remove few occurrences of trailing spaces and drive by fix of needless alloc of const string.
Diffstat (limited to 'src/test/rustdoc-ui')
-rw-r--r--src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr6
-rw-r--r--src/test/rustdoc-ui/intra-doc/errors.stderr8
-rw-r--r--src/test/rustdoc-ui/test-compile-fail1.stderr2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr b/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr
index ad9102c506f..ee35749ce7f 100644
--- a/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr
+++ b/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr
@@ -68,7 +68,7 @@ help: to link to the macro, add an exclamation mark
    |
 LL - /// Link to [derive@m]
 LL + /// Link to [m!]
-   | 
+   |
 
 error: unresolved link to `m`
   --> $DIR/disambiguator-mismatch.rs:46:14
@@ -124,7 +124,7 @@ help: to link to the constant, prefix with `const@`
    |
 LL - /// Link to [c()]
 LL + /// Link to [const@c]
-   | 
+   |
 
 error: incompatible link kind for `f`
   --> $DIR/disambiguator-mismatch.rs:72:14
@@ -136,7 +136,7 @@ help: to link to the function, add parentheses
    |
 LL - /// Link to [const@f]
 LL + /// Link to [f()]
-   | 
+   |
 
 error: unresolved link to `std`
   --> $DIR/disambiguator-mismatch.rs:77:14
diff --git a/src/test/rustdoc-ui/intra-doc/errors.stderr b/src/test/rustdoc-ui/intra-doc/errors.stderr
index e1ff3740bf6..9a1896fb0cd 100644
--- a/src/test/rustdoc-ui/intra-doc/errors.stderr
+++ b/src/test/rustdoc-ui/intra-doc/errors.stderr
@@ -98,7 +98,7 @@ help: to link to the associated function, add parentheses
    |
 LL - /// [type@Vec::into_iter]
 LL + /// [Vec::into_iter()]
-   | 
+   |
 
 error: unresolved link to `S`
   --> $DIR/errors.rs:68:6
@@ -110,7 +110,7 @@ help: to link to the struct, prefix with `struct@`
    |
 LL - /// [S!]
 LL + /// [struct@S]
-   | 
+   |
 
 error: unresolved link to `S::h`
   --> $DIR/errors.rs:78:6
@@ -122,7 +122,7 @@ help: to link to the associated function, add parentheses
    |
 LL - /// [type@S::h]
 LL + /// [S::h()]
-   | 
+   |
 
 error: unresolved link to `T::g`
   --> $DIR/errors.rs:86:6
@@ -134,7 +134,7 @@ help: to link to the associated function, add parentheses
    |
 LL - /// [type@T::g]
 LL + /// [T::g()]
-   | 
+   |
 
 error: unresolved link to `T::h`
   --> $DIR/errors.rs:91:6
diff --git a/src/test/rustdoc-ui/test-compile-fail1.stderr b/src/test/rustdoc-ui/test-compile-fail1.stderr
index 2b38ba9e973..72915e46bec 100644
--- a/src/test/rustdoc-ui/test-compile-fail1.stderr
+++ b/src/test/rustdoc-ui/test-compile-fail1.stderr
@@ -3,7 +3,7 @@ error[E0428]: the name `f` is defined multiple times
   |
 6 | pub fn f() {}
   | ---------- previous definition of the value `f` here
-7 | 
+7 |
 8 | pub fn f() {}
   | ^^^^^^^^^^ `f` redefined here
   |