Fix ... in multline code-skips in suggestions · rust-lang/rust@9fd7784 (original) (raw)
File tree
18 files changed
lines changed
- compiler/rustc_errors/src
- src/tools/clippy/tests/ui
- closures/2229_closure_analysis/migrations
18 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1905,7 +1905,7 @@ impl HumanEmitter { | ||
| 1905 | 1905 | // |
| 1906 | 1906 | // LL | this line was highlighted |
| 1907 | 1907 | // LL | this line is just for context |
| 1908 | -// ... | |
| 1908 | +// ... | |
| 1909 | 1909 | // LL | this line is just for context |
| 1910 | 1910 | // LL | this line was highlighted |
| 1911 | 1911 | _ => { |
| @@ -1926,7 +1926,7 @@ impl HumanEmitter { | ||
| 1926 | 1926 | ) |
| 1927 | 1927 | } |
| 1928 | 1928 | |
| 1929 | - buffer.puts(row_num, max_line_num_len - 1, "...", Style::LineNumber); | |
| 1929 | + buffer.puts(row_num, 0, "...", Style::LineNumber); | |
| 1930 | 1930 | row_num += 1; |
| 1931 | 1931 | |
| 1932 | 1932 | if let Some((p, l)) = last_line { |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -62,7 +62,7 @@ LL | } | ||
| 62 | 62 | LL | match s.len() { |
| 63 | 63 | LL ~ 10 => 2, |
| 64 | 64 | LL | 20 => { |
| 65 | - ... | |
| 65 | +... | |
| 66 | 66 | LL | if foo() { |
| 67 | 67 | LL ~ return 20; |
| 68 | 68 | LL | } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -212,7 +212,7 @@ help: check if the original Iterator contains an element instead of collecting t | ||
| 212 | 212 | | |
| 213 | 213 | LL ~ |
| 214 | 214 | LL | |
| 215 | - ... | |
| 215 | +... | |
| 216 | 216 | LL | // Do lint |
| 217 | 217 | LL ~ vec.iter().map(|k |
| 218 | 218 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -215,7 +215,7 @@ help: move the declaration `x` here | ||
| 215 | 215 | | |
| 216 | 216 | LL ~ |
| 217 | 217 | LL | // types that should be considered insignificant |
| 218 | - ... | |
| 218 | +... | |
| 219 | 219 | LL | let y = Box::new(4); |
| 220 | 220 | LL ~ let x = SignificantDrop; |
| 221 | 221 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -518,7 +518,7 @@ help: remove `return` | ||
| 518 | 518 | | |
| 519 | 519 | LL ~ 10 |
| 520 | 520 | LL | }, |
| 521 | - ... | |
| 521 | +... | |
| 522 | 522 | LL | }, |
| 523 | 523 | LL ~ } |
| 524 | 524 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -17,7 +17,7 @@ help: add a dummy let to cause `fptr` to be fully captured | ||
| 17 | 17 | | |
| 18 | 18 | LL ~ thread::spawn(move | |
| 19 | 19 | LL | |
| 20 | - ... | |
| 20 | +... | |
| 21 | 21 | LL | |
| 22 | 22 | LL ~ } }).join().unwrap(); |
| 23 | 23 | | |
| @@ -39,7 +39,7 @@ help: add a dummy let to cause `fptr` to be fully captured | ||
| 39 | 39 | | |
| 40 | 40 | LL ~ thread::spawn(move | |
| 41 | 41 | LL | |
| 42 | - ... | |
| 42 | +... | |
| 43 | 43 | LL | |
| 44 | 44 | LL ~ } }).join().unwrap(); |
| 45 | 45 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -109,7 +109,7 @@ help: add a dummy let to cause `fptr1`, `fptr2` to be fully captured | ||
| 109 | 109 | | |
| 110 | 110 | LL ~ thread::spawn(move | |
| 111 | 111 | LL | |
| 112 | - ... | |
| 112 | +... | |
| 113 | 113 | LL | |
| 114 | 114 | LL ~ } }).join().unwrap(); |
| 115 | 115 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -209,7 +209,7 @@ help: a macro with this name exists at the root of the crate | ||
| 209 | 209 | | |
| 210 | 210 | LL ~ issue_59764::{makro as foobar, |
| 211 | 211 | LL | |
| 212 | - ... | |
| 212 | +... | |
| 213 | 213 | LL | |
| 214 | 214 | LL ~ foo::{baz} |
| 215 | 215 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -64,7 +64,7 @@ help: try comparing the cast value | ||
| 64 | 64 | | |
| 65 | 65 | LL ~ println!("{}", (a |
| 66 | 66 | LL | |
| 67 | - ... | |
| 67 | +... | |
| 68 | 68 | LL | |
| 69 | 69 | LL ~ usize) |
| 70 | 70 | | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -17,7 +17,7 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle | ||
| 17 | 17 | | |
| 18 | 18 | LL ~ Array(Box), |
| 19 | 19 | LL | TypeVariable(()), |
| 20 | - ... | |
| 20 | +... | |
| 21 | 21 | LL | Base(BaseType), |
| 22 | 22 | LL ~ Object(Box), |
| 23 | 23 | | |