Skip to content

Commit 989d1a7

Browse files
committed
fix one more case of trailing space
1 parent 0ff8ae3 commit 989d1a7

File tree

105 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+140
-140
lines changed

compiler/rustc_errors/src/emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ impl EmitterWriter {
819819
}
820820
buffer.puts(line_offset, 0, &self.maybe_anonymized(line_index), Style::LineNumber);
821821

822-
draw_col_separator(buffer, line_offset, width_offset - 2);
822+
draw_col_separator_no_space(buffer, line_offset, width_offset - 2);
823823
}
824824

825825
fn render_source_line(

src/test/ui/associated-types/defaults-specialization.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ error[E0053]: method `make` has an incompatible type for trait
3030
|
3131
LL | default type Ty = bool;
3232
| ----------------------- expected this associated type
33-
LL |
33+
LL |
3434
LL | fn make() -> bool { true }
3535
| ^^^^
3636
| |
@@ -50,7 +50,7 @@ error[E0308]: mismatched types
5050
|
5151
LL | type Ty = u8;
5252
| ------------- associated type defaults can't be assumed inside the trait defining them
53-
LL |
53+
LL |
5454
LL | fn make() -> Self::Ty {
5555
| -------- expected `<Self as Tr>::Ty` because of return type
5656
LL | 0u8
@@ -77,7 +77,7 @@ error[E0308]: mismatched types
7777
|
7878
LL | default type Ty = bool;
7979
| ----------------------- expected this associated type
80-
LL |
80+
LL |
8181
LL | fn make() -> Self::Ty { true }
8282
| -------- ^^^^ expected associated type, found `bool`
8383
| |

src/test/ui/associated-types/issue-22560.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | / trait Sub<Rhs=Self> {
55
LL | | type Output;
66
LL | | }
77
| |_- type parameter `Rhs` must be specified for this
8-
LL |
8+
LL |
99
LL | type Test = dyn Add + Sub;
1010
| ^^^ help: set the type parameter to the desired type: `Sub<Rhs>`
1111
|

src/test/ui/async-await/issue-67765-async-diagnostic.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0515]: cannot return value referencing local variable `s`
33
|
44
LL | let b = &s[..];
55
| - `s` is borrowed here
6-
LL |
6+
LL |
77
LL | Err(b)?;
88
| ^^^^^^^ returns a value referencing data owned by the current function
99

src/test/ui/blind/blind-item-item-shadow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0255]: the name `foo` is defined multiple times
33
|
44
LL | mod foo { pub mod foo { } }
55
| ------- previous definition of the module `foo` here
6-
LL |
6+
LL |
77
LL | use foo::foo;
88
| ^^^^^^^^ `foo` reimported here
99
|

src/test/ui/borrowck/borrow-raw-address-of-borrowed.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
33
|
44
LL | let y = &x;
55
| -- immutable borrow occurs here
6-
LL |
6+
LL |
77
LL | let q = &raw mut x;
88
| ^^^^^^^^^^ mutable borrow occurs here
9-
LL |
9+
LL |
1010
LL | drop(y);
1111
| - immutable borrow later used here
1212

@@ -15,7 +15,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
1515
|
1616
LL | let y = &mut x;
1717
| ------ mutable borrow occurs here
18-
LL |
18+
LL |
1919
LL | let p = &raw const x;
2020
| ^^^^^^^^^^^^ immutable borrow occurs here
2121
...
@@ -30,7 +30,7 @@ LL | let y = &mut x;
3030
...
3131
LL | let q = &raw mut x;
3232
| ^^^^^^^^^^ second mutable borrow occurs here
33-
LL |
33+
LL |
3434
LL | drop(y);
3535
| - first borrow later used here
3636

src/test/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
33
|
44
LL | let x = &0;
55
| -- help: consider changing this to be a mutable reference: `&mut 0`
6-
LL |
6+
LL |
77
LL | let q = &raw mut *x;
88
| ^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
99

@@ -12,7 +12,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `*const` pointer
1212
|
1313
LL | let x = &0 as *const i32;
1414
| -- help: consider changing this to be a mutable pointer: `&mut 0`
15-
LL |
15+
LL |
1616
LL | let q = &raw mut *x;
1717
| ^^^^^^^^^^^ `x` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable
1818

src/test/ui/borrowck/borrow-tuple-fields.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let r = &x.0;
55
| ---- borrow of `x.0` occurs here
66
LL | let y = x;
77
| ^ move out of `x` occurs here
8-
LL |
8+
LL |
99
LL | r.use_ref();
1010
| ----------- borrow later used here
1111

src/test/ui/borrowck/borrowck-assign-comp-idx.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ error[E0502]: cannot borrow `p` as mutable because it is also borrowed as immuta
33
|
44
LL | let q: &isize = &p[0];
55
| - immutable borrow occurs here
6-
LL |
6+
LL |
77
LL | p[0] = 5;
88
| ^ mutable borrow occurs here
9-
LL |
9+
LL |
1010
LL | println!("{}", *q);
1111
| -- immutable borrow later used here
1212

src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0503]: cannot use `p` because it was mutably borrowed
33
|
44
LL | let q = &mut p;
55
| ------ borrow of `p` occurs here
6-
LL |
6+
LL |
77
LL | p + 3;
88
| ^ use of borrowed `p`
99
...
@@ -18,7 +18,7 @@ LL | let q = &mut p;
1818
...
1919
LL | p.times(3);
2020
| ^^^^^^^^^^ immutable borrow occurs here
21-
LL |
21+
LL |
2222
LL | *q + 3; // OK to use the new alias `q`
2323
| -- mutable borrow later used here
2424

0 commit comments

Comments
 (0)