1
Fork 0

Tweak multispan rendering

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments.
This commit is contained in:
Esteban Küber 2024-12-11 21:17:33 +00:00
parent 21fe748be1
commit 65a54a7f27
111 changed files with 206 additions and 653 deletions

View file

@ -3048,11 +3048,15 @@ impl FileWithAnnotatedLines {
// working correctly. // working correctly.
let middle = min(ann.line_start + 4, ann.line_end); let middle = min(ann.line_start + 4, ann.line_end);
// We'll show up to 4 lines past the beginning of the multispan start. // We'll show up to 4 lines past the beginning of the multispan start.
// We will *not* include the tail of lines that are only whitespace. // We will *not* include the tail of lines that are only whitespace, a comment or
// a bare delimiter.
let until = (ann.line_start..middle) let until = (ann.line_start..middle)
.rev() .rev()
.filter_map(|line| file.get_line(line - 1).map(|s| (line + 1, s))) .filter_map(|line| file.get_line(line - 1).map(|s| (line + 1, s)))
.find(|(_, s)| !s.trim().is_empty()) .find(|(_, s)| {
let s = s.trim();
!["", "{", "}", "(", ")", "[", "]"].contains(&s) && !s.starts_with("//")
})
.map(|(line, _)| line) .map(|(line, _)| line)
.unwrap_or(ann.line_start); .unwrap_or(ann.line_start);
for line in ann.line_start + 1..until { for line in ann.line_start + 1..until {

View file

@ -66,8 +66,7 @@ error: this block is too nested
LL | if true { LL | if true {
| _________________________^ | _________________________^
LL | | if true { LL | | if true {
LL | | ... |
LL | | }
LL | | } LL | | }
| |_________________^ | |_________________^
| |

View file

@ -80,7 +80,6 @@ error: an async construct yields a type which is itself awaitable
LL | let _m = async || { LL | let _m = async || {
| _______________________- | _______________________-
LL | | println!("I'm bored"); LL | | println!("I'm bored");
LL | | // Some more stuff
... | ... |
LL | | CustomFutureType LL | | CustomFutureType
| | ^^^^^^^^^^^^^^^^ | | ^^^^^^^^^^^^^^^^

View file

@ -115,8 +115,7 @@ error: all if blocks contain the same code at the end
--> tests/ui/branches_sharing_code/shared_at_bottom.rs:183:5 --> tests/ui/branches_sharing_code/shared_at_bottom.rs:183:5
| |
LL | / x << 2 LL | / x << 2
LL | | ... |
LL | |
LL | | }; LL | | };
| |_____^ | |_____^
| |
@ -131,8 +130,7 @@ error: all if blocks contain the same code at the end
--> tests/ui/branches_sharing_code/shared_at_bottom.rs:192:5 --> tests/ui/branches_sharing_code/shared_at_bottom.rs:192:5
| |
LL | / x * 4 LL | / x * 4
LL | | ... |
LL | |
LL | | } LL | | }
| |_____^ | |_____^
| |

View file

@ -43,7 +43,6 @@ LL | } else {
| ____________^ | ____________^
LL | | if y == "world" { LL | | if y == "world" {
LL | | println!("world") LL | | println!("world")
LL | | }
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -66,7 +65,6 @@ LL | } else {
| ____________^ | ____________^
LL | | if let Some(42) = Some(42) { LL | | if let Some(42) = Some(42) {
LL | | println!("world") LL | | println!("world")
LL | | }
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -89,7 +87,6 @@ LL | } else {
| ____________^ | ____________^
LL | | if let Some(42) = Some(42) { LL | | if let Some(42) = Some(42) {
LL | | println!("world") LL | | println!("world")
LL | | }
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -112,7 +109,6 @@ LL | } else {
| ____________^ | ____________^
LL | | if x == "hello" { LL | | if x == "hello" {
LL | | println!("world") LL | | println!("world")
LL | | }
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -135,7 +131,6 @@ LL | } else {
| ____________^ | ____________^
LL | | if let Some(42) = Some(42) { LL | | if let Some(42) = Some(42) {
LL | | println!("world") LL | | println!("world")
LL | | }
... | ... |
LL | | } LL | | }
LL | | } LL | | }

View file

@ -2,9 +2,6 @@ error: this loop never actually loops
--> tests/ui/crashes/ice-360.rs:5:5 --> tests/ui/crashes/ice-360.rs:5:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }
@ -16,9 +13,6 @@ error: this loop could be written as a `while let` loop
--> tests/ui/crashes/ice-360.rs:5:5 --> tests/ui/crashes/ice-360.rs:5:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }

View file

@ -2,8 +2,7 @@ error: this looks like you are trying to swap `a` and `b`
--> tests/ui/crate_level_checks/no_std_swap.rs:12:5 --> tests/ui/crate_level_checks/no_std_swap.rs:12:5
| |
LL | / a = b; LL | / a = b;
LL | | ... |
LL | |
LL | | b = a; LL | | b = a;
| |_________^ help: try: `core::mem::swap(&mut a, &mut b)` | |_________^ help: try: `core::mem::swap(&mut a, &mut b)`
| |

View file

@ -3,9 +3,7 @@ error: backticks are unbalanced
| |
LL | /// This is a doc comment with `unbalanced_tick marks and several words that LL | /// This is a doc comment with `unbalanced_tick marks and several words that
| _____^ | _____^
LL | | ... |
LL | | /// should be `encompassed_by` tick marks because they `contain_underscores`.
LL | | /// Because of the initial `unbalanced_tick` pair, the error message is
LL | | /// very `confusing_and_misleading`. LL | | /// very `confusing_and_misleading`.
| |____________________________________^ | |____________________________________^
| |

View file

@ -96,10 +96,7 @@ error: empty lines after doc comment
--> tests/ui/empty_line_after/doc_comments.rs:63:5 --> tests/ui/empty_line_after/doc_comments.rs:63:5
| |
LL | / /// for OldA LL | / /// for OldA
LL | | // struct OldA; ... |
LL | |
LL | | /// Docs
LL | | /// for OldB
LL | | // struct OldB; LL | | // struct OldB;
LL | | LL | |
| |_^ | |_^

View file

@ -103,8 +103,7 @@ error: empty lines after outer attribute
--> tests/ui/empty_line_after/outer_attribute.rs:64:1 --> tests/ui/empty_line_after/outer_attribute.rs:64:1
| |
LL | / #[allow(unused)] LL | / #[allow(unused)]
LL | | ... |
LL | | // This comment is isolated
LL | | LL | |
| |_^ | |_^
LL | pub fn isolated_comment() {} LL | pub fn isolated_comment() {}

View file

@ -13,7 +13,6 @@ error: all variants have the same prefix: `c`
LL | / enum Foo { LL | / enum Foo {
LL | | LL | |
LL | | cFoo, LL | | cFoo,
LL | |
... | ... |
LL | | cBaz, LL | | cBaz,
LL | | } LL | | }
@ -45,7 +44,6 @@ error: all variants have the same prefix: `Food`
LL | / enum Food { LL | / enum Food {
LL | | LL | |
LL | | FoodGood, LL | | FoodGood,
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }

View file

@ -20,7 +20,6 @@ error: infinite loop detected
LL | / loop { LL | / loop {
LL | | LL | |
LL | | loop { LL | | loop {
LL | |
... | ... |
LL | | do_something(); LL | | do_something();
LL | | } LL | | }
@ -37,8 +36,7 @@ error: infinite loop detected
LL | / loop { LL | / loop {
LL | | LL | |
LL | | loop { LL | | loop {
LL | | ... |
LL | | do_something();
LL | | } LL | | }
LL | | } LL | | }
| |_________^ | |_________^
@ -79,8 +77,7 @@ error: infinite loop detected
LL | / loop { LL | / loop {
LL | | fn inner_fn() -> ! { LL | | fn inner_fn() -> ! {
LL | | std::process::exit(0); LL | | std::process::exit(0);
LL | | } ... |
LL | | do_something();
LL | | } LL | | }
| |_____^ | |_____^
| |

View file

@ -4,8 +4,7 @@ error: manual implementation of `Iterator::find`
LL | / for &v in ARRAY { LL | / for &v in ARRAY {
LL | | if v == n { LL | | if v == n {
LL | | return Some(v); LL | | return Some(v);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `ARRAY.iter().find(|&&v| v == n).copied()` | |________^ help: replace with an iterator: `ARRAY.iter().find(|&&v| v == n).copied()`
| |
@ -18,8 +17,7 @@ error: manual implementation of `Iterator::find`
LL | / for (a, _) in arr { LL | / for (a, _) in arr {
LL | | if a % 2 == 0 { LL | | if a % 2 == 0 {
LL | | return Some(a); LL | | return Some(a);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().map(|(a, _)| a).find(|&a| a % 2 == 0)` | |________^ help: replace with an iterator: `arr.into_iter().map(|(a, _)| a).find(|&a| a % 2 == 0)`
@ -29,8 +27,7 @@ error: manual implementation of `Iterator::find`
LL | / for el in arr { LL | / for el in arr {
LL | | if el.name.len() == 10 { LL | | if el.name.len() == 10 {
LL | | return Some(el); LL | | return Some(el);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.name.len() == 10)` | |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.name.len() == 10)`
| |
@ -42,8 +39,7 @@ error: manual implementation of `Iterator::find`
LL | / for Tuple(a, _) in arr { LL | / for Tuple(a, _) in arr {
LL | | if a >= 3 { LL | | if a >= 3 {
LL | | return Some(a); LL | | return Some(a);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().map(|Tuple(a, _)| a).find(|&a| a >= 3)` | |________^ help: replace with an iterator: `arr.into_iter().map(|Tuple(a, _)| a).find(|&a| a >= 3)`
@ -53,8 +49,7 @@ error: manual implementation of `Iterator::find`
LL | / for el in arr { LL | / for el in arr {
LL | | if el.should_keep() { LL | | if el.should_keep() {
LL | | return Some(el); LL | | return Some(el);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.should_keep())` | |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.should_keep())`
| |
@ -66,8 +61,7 @@ error: manual implementation of `Iterator::find`
LL | / for el in arr { LL | / for el in arr {
LL | | if f(el) == 20 { LL | | if f(el) == 20 {
LL | | return Some(el); LL | | return Some(el);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().find(|&el| f(el) == 20)` | |________^ help: replace with an iterator: `arr.into_iter().find(|&el| f(el) == 20)`
@ -77,8 +71,7 @@ error: manual implementation of `Iterator::find`
LL | / for &el in arr.values() { LL | / for &el in arr.values() {
LL | | if f(el) { LL | | if f(el) {
LL | | return Some(el); LL | | return Some(el);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.values().find(|&&el| f(el)).copied()` | |________^ help: replace with an iterator: `arr.values().find(|&&el| f(el)).copied()`
@ -88,8 +81,7 @@ error: manual implementation of `Iterator::find`
LL | / for el in arr { LL | / for el in arr {
LL | | if el.is_true { LL | | if el.is_true {
LL | | return Some(el); LL | | return Some(el);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.is_true)` | |________^ help: replace with an iterator: `arr.into_iter().find(|el| el.is_true)`
| |
@ -101,8 +93,7 @@ error: manual implementation of `Iterator::find`
LL | / for (_, &x) in v { LL | / for (_, &x) in v {
LL | | if x > 10 { LL | | if x > 10 {
LL | | return Some(x); LL | | return Some(x);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `v.into_iter().map(|(_, &x)| x).find(|&x| x > 10)` | |________^ help: replace with an iterator: `v.into_iter().map(|(_, &x)| x).find(|&x| x > 10)`
@ -112,8 +103,7 @@ error: manual implementation of `Iterator::find`
LL | / for &(_, &x) in v { LL | / for &(_, &x) in v {
LL | | if x > 10 { LL | | if x > 10 {
LL | | return Some(x); LL | | return Some(x);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |________^ help: replace with an iterator: `v.iter().map(|&(_, &x)| x).find(|&x| x > 10)` | |________^ help: replace with an iterator: `v.iter().map(|&(_, &x)| x).find(|&x| x > 10)`
@ -123,8 +113,7 @@ error: manual implementation of `Iterator::find`
LL | / for x in arr { LL | / for x in arr {
LL | | if x >= 5 { LL | | if x >= 5 {
LL | | return Some(x); LL | | return Some(x);
LL | | } ... |
LL | | }
LL | | return None; LL | | return None;
| |________________^ help: replace with an iterator: `arr.into_iter().find(|&x| x >= 5)` | |________________^ help: replace with an iterator: `arr.into_iter().find(|&x| x >= 5)`
@ -134,8 +123,7 @@ error: manual implementation of `Iterator::find`
LL | / for x in arr { LL | / for x in arr {
LL | | if x < 1 { LL | | if x < 1 {
LL | | return Some(x); LL | | return Some(x);
LL | | } ... |
LL | | }
LL | | None LL | | None
| |____________^ help: replace with an iterator: `arr.into_iter().find(|&x| x < 1)` | |____________^ help: replace with an iterator: `arr.into_iter().find(|&x| x < 1)`

View file

@ -77,9 +77,6 @@ error: called `map(..).flatten()` on `Option`
| |
LL | .map(|_| { LL | .map(|_| {
| __________^ | __________^
LL | | // we need some newlines
LL | | // so that the span is big enough
LL | | // for a split output of the diagnostic
... | ... |
LL | | }) LL | | })
LL | | .flatten(); LL | | .flatten();

View file

@ -75,9 +75,6 @@ error: you seem to be trying to match on a boolean expression
--> tests/ui/match_bool.rs:36:5 --> tests/ui/match_bool.rs:36:5
| |
LL | / match test && test { LL | / match test && test {
LL | |
LL | |
LL | |
... | ... |
LL | | _ => (), LL | | _ => (),
LL | | }; LL | | };

View file

@ -68,8 +68,7 @@ LL | let _ans = match x {
| ____________________^ | ____________________^
LL | | E::A(_) => { LL | | E::A(_) => {
LL | | true LL | | true
LL | | } ... |
LL | | E::B(_) => true,
LL | | _ => false, LL | | _ => false,
LL | | }; LL | | };
| |_________^ help: try: `matches!(x, E::A(_) | E::B(_))` | |_________^ help: try: `matches!(x, E::A(_) | E::B(_))`

View file

@ -2,9 +2,7 @@ error: missing documentation for the crate
--> tests/ui/missing_doc_crate_missing.rs:1:1 --> tests/ui/missing_doc_crate_missing.rs:1:1
| |
LL | / #![warn(clippy::missing_docs_in_private_items)] LL | / #![warn(clippy::missing_docs_in_private_items)]
LL | | ... |
LL | |
LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
| |

View file

@ -3,9 +3,7 @@ error: needless `fn main` in doctest
| |
LL | /// fn main() { LL | /// fn main() {
| _____^ | _____^
LL | | ... |
LL | |
LL | | /// unimplemented!();
LL | | /// } LL | | /// }
| |_____^ | |_____^
| |
@ -17,8 +15,7 @@ error: needless `fn main` in doctest
| |
LL | /// fn main() -> () { LL | /// fn main() -> () {
| _____^ | _____^
LL | | ... |
LL | | /// unimplemented!();
LL | | /// } LL | | /// }
| |_____^ | |_____^
@ -27,8 +24,7 @@ error: needless `fn main` in doctest
| |
LL | /// fn main() { LL | /// fn main() {
| _____^ | _____^
LL | | ... |
LL | | /// unimplemented!();
LL | | /// } LL | | /// }
| |_____^ | |_____^
@ -37,9 +33,7 @@ error: needless `fn main` in doctest
| |
LL | /// // the fn is not always the first line LL | /// // the fn is not always the first line
| _____^ | _____^
LL | | ... |
LL | | /// fn main() {
LL | | /// unimplemented!();
LL | | /// } LL | | /// }
| |_____^ | |_____^

View file

@ -34,7 +34,6 @@ error: this `if` branch is empty
LL | / if { LL | / if {
LL | | if let true = true LL | | if let true = true
LL | | && true LL | | && true
LL | | {
... | ... |
LL | | } && true LL | | } && true
LL | | {} LL | | {}

View file

@ -2,9 +2,6 @@ error: this loop never actually loops
--> tests/ui/never_loop.rs:12:5 --> tests/ui/never_loop.rs:12:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | | // clippy::never_loop
... | ... |
LL | | break; LL | | break;
LL | | } LL | | }

View file

@ -115,8 +115,7 @@ LL | let _ = if let Some(x) = arg {
| _____________^ | _____________^
LL | | x LL | | x
LL | | } else { LL | | } else {
LL | | // map_or_else must be suggested ... |
LL | | side_effect()
LL | | }; LL | | };
| |_____^ help: try: `arg.map_or_else(side_effect, |x| x)` | |_____^ help: try: `arg.map_or_else(side_effect, |x| x)`

View file

@ -183,8 +183,7 @@ error: this block may be rewritten with the `?` operator
| |
LL | / if a.is_none() { LL | / if a.is_none() {
LL | | return None; LL | | return None;
LL | | // do lint here, the outer `try` is not relevant here ... |
LL | | // https://github.com/rust-lang/rust-clippy/pull/11001#issuecomment-1610636867
LL | | } LL | | }
| |_____________^ help: replace it with: `a?;` | |_____________^ help: replace it with: `a?;`

View file

@ -5,8 +5,7 @@ LL | pub fn complex_return_triggers_the_lint() -> i32 {
| __________________________________________________- | __________________________________________________-
LL | | fn foo() -> i32 { LL | | fn foo() -> i32 {
LL | | 1 LL | | 1
LL | | } ... |
LL | | let mutex = Mutex::new(1);
LL | | let lock = mutex.lock().unwrap(); LL | | let lock = mutex.lock().unwrap();
| | ^^^^ | | ^^^^
... | ... |

View file

@ -22,10 +22,7 @@ error: you seem to be trying to use `match` for destructuring a single pattern.
--> tests/ui/single_match.rs:23:5 --> tests/ui/single_match.rs:23:5
| |
LL | / match x { LL | / match x {
LL | | // Note the missing block braces. ... |
LL | | // We suggest `if let Some(y) = x { .. }` because the macro
LL | | // is expanded before we can do anything.
LL | | Some(y) => println!("{:?}", y),
LL | | _ => (), LL | | _ => (),
LL | | } LL | | }
| |_____^ help: try: `if let Some(y) = x { println!("{:?}", y) }` | |_____^ help: try: `if let Some(y) = x { println!("{:?}", y) }`

View file

@ -2,10 +2,7 @@ error: this is an outer doc comment and does not apply to the parent module or c
--> tests/ui/suspicious_doc_comments_unfixable.rs:4:1 --> tests/ui/suspicious_doc_comments_unfixable.rs:4:1
| |
LL | / ///! a LL | / ///! a
LL | | ... |
LL | |
LL | | ///! b
LL | | /// c
LL | | ///! d LL | | ///! d
| |______^ | |______^
| |
@ -25,9 +22,7 @@ error: this is an outer doc comment and does not apply to the parent module or c
--> tests/ui/suspicious_doc_comments_unfixable.rs:12:1 --> tests/ui/suspicious_doc_comments_unfixable.rs:12:1
| |
LL | / ///! a LL | / ///! a
LL | | ... |
LL | | ///! b
LL | | /// c
LL | | ///! d LL | | ///! d
| |______^ | |______^
| |

View file

@ -13,8 +13,7 @@ error: assignment to temporary
LL | / MultiStruct { LL | / MultiStruct {
LL | | LL | |
LL | | structure: Struct { field: 0 }, LL | | structure: Struct { field: 0 },
LL | | } ... |
LL | | .structure
LL | | .field = 1; LL | | .field = 1;
| |______________^ | |______________^

View file

@ -2,9 +2,7 @@ error: first doc comment paragraph is too long
--> tests/ui/too_long_first_doc_paragraph-fix.rs:3:1 --> tests/ui/too_long_first_doc_paragraph-fix.rs:3:1
| |
LL | / /// A very short summary. LL | / /// A very short summary.
LL | | /// A much longer explanation that goes into a lot more detail about ... |
LL | | /// how the thing works, possibly with doclinks and so one,
LL | | /// and probably spanning a many rows. Blablabla, it needs to be over
LL | | /// 200 characters so I needed to write something longeeeeeeer. LL | | /// 200 characters so I needed to write something longeeeeeeer.
| |_^ | |_^
| |

View file

@ -2,9 +2,7 @@ error: first doc comment paragraph is too long
--> tests/ui/too_long_first_doc_paragraph.rs:8:5 --> tests/ui/too_long_first_doc_paragraph.rs:8:5
| |
LL | / //! A very short summary. LL | / //! A very short summary.
LL | | //! A much longer explanation that goes into a lot more detail about ... |
LL | | //! how the thing works, possibly with doclinks and so one,
LL | | //! and probably spanning a many rows. Blablabla, it needs to be over
LL | | //! 200 characters so I needed to write something longeeeeeeer. LL | | //! 200 characters so I needed to write something longeeeeeeer.
| |____^ | |____^
| |
@ -29,8 +27,7 @@ error: first doc comment paragraph is too long
--> tests/ui/too_long_first_doc_paragraph.rs:36:1 --> tests/ui/too_long_first_doc_paragraph.rs:36:1
| |
LL | / /// Lorem LL | / /// Lorem
LL | | /// ipsum dolor sit amet, consectetur adipiscing elit. Nunc turpis nunc, lacinia ... |
LL | | /// a dolor in, pellentesque aliquet enim. Cras nec maximus sem. Mauris arcu libero,
LL | | /// gravida non lacinia at, rhoncus eu lacus. LL | | /// gravida non lacinia at, rhoncus eu lacus.
| |_^ | |_^

View file

@ -434,9 +434,6 @@ error: unnecessary closure used to substitute value for `Result::Err`
| |
LL | let _: Result<usize, usize> = res. LL | let _: Result<usize, usize> = res.
| ___________________________________^ | ___________________________________^
LL | | // some lines
LL | | // some lines
LL | | // some lines
... | ... |
LL | | // some lines LL | | // some lines
LL | | or_else(|_| Ok(ext_str.some_field)); LL | | or_else(|_| Ok(ext_str.some_field));

View file

@ -2,8 +2,7 @@ error: calls to `push` immediately after creation
--> tests/ui/vec_init_then_push.rs:5:5 --> tests/ui/vec_init_then_push.rs:5:5
| |
LL | / let mut def_err: Vec<u32> = Default::default(); LL | / let mut def_err: Vec<u32> = Default::default();
LL | | ... |
LL | |
LL | | def_err.push(0); LL | | def_err.push(0);
| |____________________^ help: consider using the `vec![]` macro: `let def_err: Vec<u32> = vec![..];` | |____________________^ help: consider using the `vec![]` macro: `let def_err: Vec<u32> = vec![..];`
| |

View file

@ -2,9 +2,6 @@ error: unclosed quote string `"`
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1 --> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
| |
LL | / /// ```{class="} LL | / /// ```{class="}
LL | | /// main;
LL | | /// ```
LL | |
... | ... |
LL | | /// main; LL | | /// main;
LL | | /// ``` LL | | /// ```
@ -21,9 +18,6 @@ error: unclosed quote string `"`
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1 --> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
| |
LL | / /// ```{class="} LL | / /// ```{class="}
LL | | /// main;
LL | | /// ```
LL | |
... | ... |
LL | | /// main; LL | | /// main;
LL | | /// ``` LL | | /// ```

View file

@ -2,9 +2,7 @@ error: unknown attribute `compile-fail`
--> $DIR/check-attr-test.rs:5:1 --> $DIR/check-attr-test.rs:5:1
| |
5 | / /// foo 5 | / /// foo
6 | | /// ... |
7 | | /// ```compile-fail,compilefail,comPile_fail
8 | | /// boo
9 | | /// ``` 9 | | /// ```
| |_______^ | |_______^
| |
@ -20,9 +18,7 @@ error: unknown attribute `compilefail`
--> $DIR/check-attr-test.rs:5:1 --> $DIR/check-attr-test.rs:5:1
| |
5 | / /// foo 5 | / /// foo
6 | | /// ... |
7 | | /// ```compile-fail,compilefail,comPile_fail
8 | | /// boo
9 | | /// ``` 9 | | /// ```
| |_______^ | |_______^
| |
@ -33,9 +29,7 @@ error: unknown attribute `comPile_fail`
--> $DIR/check-attr-test.rs:5:1 --> $DIR/check-attr-test.rs:5:1
| |
5 | / /// foo 5 | / /// foo
6 | | /// ... |
7 | | /// ```compile-fail,compilefail,comPile_fail
8 | | /// boo
9 | | /// ``` 9 | | /// ```
| |_______^ | |_______^
| |
@ -46,9 +40,7 @@ error: unknown attribute `should-panic`
--> $DIR/check-attr-test.rs:12:1 --> $DIR/check-attr-test.rs:12:1
| |
12 | / /// bar 12 | / /// bar
13 | | /// ... |
14 | | /// ```should-panic,shouldpanic,shOuld_panic
15 | | /// boo
16 | | /// ``` 16 | | /// ```
| |_______^ | |_______^
| |
@ -59,9 +51,7 @@ error: unknown attribute `shouldpanic`
--> $DIR/check-attr-test.rs:12:1 --> $DIR/check-attr-test.rs:12:1
| |
12 | / /// bar 12 | / /// bar
13 | | /// ... |
14 | | /// ```should-panic,shouldpanic,shOuld_panic
15 | | /// boo
16 | | /// ``` 16 | | /// ```
| |_______^ | |_______^
| |
@ -72,9 +62,7 @@ error: unknown attribute `shOuld_panic`
--> $DIR/check-attr-test.rs:12:1 --> $DIR/check-attr-test.rs:12:1
| |
12 | / /// bar 12 | / /// bar
13 | | /// ... |
14 | | /// ```should-panic,shouldpanic,shOuld_panic
15 | | /// boo
16 | | /// ``` 16 | | /// ```
| |_______^ | |_______^
| |
@ -85,9 +73,7 @@ error: unknown attribute `no-run`
--> $DIR/check-attr-test.rs:19:1 --> $DIR/check-attr-test.rs:19:1
| |
19 | / /// foobar 19 | / /// foobar
20 | | /// ... |
21 | | /// ```no-run,norun,nO_run
22 | | /// boo
23 | | /// ``` 23 | | /// ```
| |_______^ | |_______^
| |
@ -98,9 +84,7 @@ error: unknown attribute `norun`
--> $DIR/check-attr-test.rs:19:1 --> $DIR/check-attr-test.rs:19:1
| |
19 | / /// foobar 19 | / /// foobar
20 | | /// ... |
21 | | /// ```no-run,norun,nO_run
22 | | /// boo
23 | | /// ``` 23 | | /// ```
| |_______^ | |_______^
| |
@ -111,9 +95,7 @@ error: unknown attribute `nO_run`
--> $DIR/check-attr-test.rs:19:1 --> $DIR/check-attr-test.rs:19:1
| |
19 | / /// foobar 19 | / /// foobar
20 | | /// ... |
21 | | /// ```no-run,norun,nO_run
22 | | /// boo
23 | | /// ``` 23 | | /// ```
| |_______^ | |_______^
| |
@ -124,9 +106,7 @@ error: unknown attribute `test-harness`
--> $DIR/check-attr-test.rs:26:1 --> $DIR/check-attr-test.rs:26:1
| |
26 | / /// b 26 | / /// b
27 | | /// ... |
28 | | /// ```test-harness,testharness,tesT_harness
29 | | /// boo
30 | | /// ``` 30 | | /// ```
| |_______^ | |_______^
| |
@ -137,9 +117,7 @@ error: unknown attribute `testharness`
--> $DIR/check-attr-test.rs:26:1 --> $DIR/check-attr-test.rs:26:1
| |
26 | / /// b 26 | / /// b
27 | | /// ... |
28 | | /// ```test-harness,testharness,tesT_harness
29 | | /// boo
30 | | /// ``` 30 | | /// ```
| |_______^ | |_______^
| |
@ -150,9 +128,7 @@ error: unknown attribute `tesT_harness`
--> $DIR/check-attr-test.rs:26:1 --> $DIR/check-attr-test.rs:26:1
| |
26 | / /// b 26 | / /// b
27 | | /// ... |
28 | | /// ```test-harness,testharness,tesT_harness
29 | | /// boo
30 | | /// ``` 30 | | /// ```
| |_______^ | |_______^
| |

View file

@ -2,9 +2,7 @@ error: documentation test in private item
--> $DIR/private-item-doc-test.rs:4:5 --> $DIR/private-item-doc-test.rs:4:5
| |
LL | / /// private doc test LL | / /// private doc test
LL | | /// ... |
LL | | /// ```
LL | | /// assert!(false);
LL | | /// ``` LL | | /// ```
| |___________^ | |___________^
| |

View file

@ -2,9 +2,7 @@ error: documentation test in private item
--> $DIR/private-public-item-doc-test.rs:4:5 --> $DIR/private-public-item-doc-test.rs:4:5
| |
LL | / /// private doc test LL | / /// private doc test
LL | | /// ... |
LL | | /// ```
LL | | /// assert!(false);
LL | | /// ``` LL | | /// ```
| |___________^ | |___________^
| |

View file

@ -2,10 +2,7 @@ error: unknown attribute `standalone`
--> $DIR/standalone-warning-2024.rs:11:1 --> $DIR/standalone-warning-2024.rs:11:1
| |
11 | / //! ```standalone 11 | / //! ```standalone
12 | | //! bla ... |
13 | | //! ```
14 | | //!
15 | | //! ```standalone-crate
16 | | //! bla 16 | | //! bla
17 | | //! ``` 17 | | //! ```
| |_______^ | |_______^
@ -23,10 +20,7 @@ error: unknown attribute `standalone-crate`
--> $DIR/standalone-warning-2024.rs:11:1 --> $DIR/standalone-warning-2024.rs:11:1
| |
11 | / //! ```standalone 11 | / //! ```standalone
12 | | //! bla ... |
13 | | //! ```
14 | | //!
15 | | //! ```standalone-crate
16 | | //! bla 16 | | //! bla
17 | | //! ``` 17 | | //! ```
| |_______^ | |_______^

View file

@ -21,9 +21,7 @@ warning: could not parse code block as Rust code
| |
LL | /// ``` LL | /// ```
| _____^ | _____^
LL | | /// | ... |
LL | | /// LL | use foobar::Baz;
LL | | /// | ^^^^^^ did you mean `baz::foobar`?
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
| |
@ -114,8 +112,7 @@ warning: Rust code block is empty
| |
LL | /// ``` LL | /// ```
| _____^ | _____^
LL | | /// ... |
LL | | ///
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
| |

View file

@ -308,13 +308,8 @@ LL | pub trait SVec: Index<
| | | | | |
| | this trait cannot be made into an object... | | this trait cannot be made into an object...
LL | | <Self as SVec>::Item, LL | | <Self as SVec>::Item,
LL | |
LL | |
... | ... |
LL | |/ Output = <Index<<Self as SVec>::Item, LL | |/ Output = <Index<<Self as SVec>::Item,
LL | ||
LL | ||
LL | ||
... || ... ||
LL | || LL | ||
LL | || Output = <Self as SVec>::Item> as SVec>::Item, LL | || Output = <Self as SVec>::Item> as SVec>::Item,

View file

@ -2,9 +2,6 @@ error: unknown attribute `compile-fail`
--> $DIR/check-attr.rs:3:1 --> $DIR/check-attr.rs:3:1
| |
LL | / /// foo LL | / /// foo
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -22,9 +19,6 @@ error: unknown attribute `compilefail`
--> $DIR/check-attr.rs:3:1 --> $DIR/check-attr.rs:3:1
| |
LL | / /// foo LL | / /// foo
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -37,9 +31,6 @@ error: unknown attribute `comPile_fail`
--> $DIR/check-attr.rs:3:1 --> $DIR/check-attr.rs:3:1
| |
LL | / /// foo LL | / /// foo
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -52,9 +43,6 @@ error: unknown attribute `should-panic`
--> $DIR/check-attr.rs:13:1 --> $DIR/check-attr.rs:13:1
| |
LL | / /// bar LL | / /// bar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -67,9 +55,6 @@ error: unknown attribute `shouldpanic`
--> $DIR/check-attr.rs:13:1 --> $DIR/check-attr.rs:13:1
| |
LL | / /// bar LL | / /// bar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -82,9 +67,6 @@ error: unknown attribute `sHould_panic`
--> $DIR/check-attr.rs:13:1 --> $DIR/check-attr.rs:13:1
| |
LL | / /// bar LL | / /// bar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -97,9 +79,6 @@ error: unknown attribute `no-run`
--> $DIR/check-attr.rs:23:1 --> $DIR/check-attr.rs:23:1
| |
LL | / /// foobar LL | / /// foobar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -112,9 +91,6 @@ error: unknown attribute `norun`
--> $DIR/check-attr.rs:23:1 --> $DIR/check-attr.rs:23:1
| |
LL | / /// foobar LL | / /// foobar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -127,9 +103,6 @@ error: unknown attribute `no_Run`
--> $DIR/check-attr.rs:23:1 --> $DIR/check-attr.rs:23:1
| |
LL | / /// foobar LL | / /// foobar
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -142,9 +115,6 @@ error: unknown attribute `test-harness`
--> $DIR/check-attr.rs:33:1 --> $DIR/check-attr.rs:33:1
| |
LL | / /// b LL | / /// b
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -157,9 +127,6 @@ error: unknown attribute `testharness`
--> $DIR/check-attr.rs:33:1 --> $DIR/check-attr.rs:33:1
| |
LL | / /// b LL | / /// b
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -172,9 +139,6 @@ error: unknown attribute `teSt_harness`
--> $DIR/check-attr.rs:33:1 --> $DIR/check-attr.rs:33:1
| |
LL | / /// b LL | / /// b
LL | |
LL | |
LL | |
... | ... |
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
@ -187,10 +151,7 @@ error: unknown attribute `rust2018`
--> $DIR/check-attr.rs:43:1 --> $DIR/check-attr.rs:43:1
| |
LL | / /// b LL | / /// b
LL | | ... |
LL | | ///
LL | | /// ```rust2018
LL | | /// boo
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
| |
@ -200,10 +161,7 @@ error: unknown attribute `rust2018`
--> $DIR/check-attr.rs:51:1 --> $DIR/check-attr.rs:51:1
| |
LL | / /// b LL | / /// b
LL | | ... |
LL | |
LL | | ///
LL | | /// ```rust2018 shouldpanic
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
@ -214,10 +172,7 @@ error: unknown attribute `shouldpanic`
--> $DIR/check-attr.rs:51:1 --> $DIR/check-attr.rs:51:1
| |
LL | / /// b LL | / /// b
LL | | ... |
LL | |
LL | | ///
LL | | /// ```rust2018 shouldpanic
LL | | /// boo LL | | /// boo
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^

View file

@ -26,8 +26,7 @@ error: unknown attribute `testharness`
--> $DIR/check-fail.rs:8:1 --> $DIR/check-fail.rs:8:1
| |
LL | / //! ```rust,testharness LL | / //! ```rust,testharness
LL | | ... |
LL | | //! let x = 12;
LL | | //! ``` LL | | //! ```
| |_______^ | |_______^
| |
@ -44,10 +43,7 @@ error: unknown attribute `testharness`
--> $DIR/check-fail.rs:17:1 --> $DIR/check-fail.rs:17:1
| |
LL | / /// hello LL | / /// hello
LL | | ... |
LL | | ///
LL | | /// ```rust,testharness
LL | | /// let x = 12;
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
| |

View file

@ -14,9 +14,7 @@ error: documentation test in private item
--> $DIR/lint-group.rs:22:1 --> $DIR/lint-group.rs:22:1
| |
LL | / /// wait, this *does* have a doctest? LL | / /// wait, this *does* have a doctest?
LL | | /// ... |
LL | | /// ```
LL | | /// println!("sup");
LL | | /// ``` LL | | /// ```
| |_______^ | |_______^
| |

View file

@ -271,9 +271,6 @@ error: unescaped backtick
--> $DIR/unescaped_backticks.rs:323:5 --> $DIR/unescaped_backticks.rs:323:5
| |
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`], LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
LL | |
LL | |
LL | |
... | ... |
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
LL | | /// level changes. LL | | /// level changes.
@ -290,9 +287,6 @@ error: unescaped backtick
--> $DIR/unescaped_backticks.rs:323:5 --> $DIR/unescaped_backticks.rs:323:5
| |
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`], LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
LL | |
LL | |
LL | |
... | ... |
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
LL | | /// level changes. LL | | /// level changes.
@ -307,9 +301,6 @@ error: unescaped backtick
--> $DIR/unescaped_backticks.rs:323:5 --> $DIR/unescaped_backticks.rs:323:5
| |
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`], LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
LL | |
LL | |
LL | |
... | ... |
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
LL | | /// level changes. LL | | /// level changes.
@ -326,9 +317,6 @@ error: unescaped backtick
--> $DIR/unescaped_backticks.rs:323:5 --> $DIR/unescaped_backticks.rs:323:5
| |
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`], LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
LL | |
LL | |
LL | |
... | ... |
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
LL | | /// level changes. LL | | /// level changes.

View file

@ -7,8 +7,7 @@ LL | // fn oom(
LL | || info: &Layout, LL | || info: &Layout,
LL | || ) -> () LL | || ) -> ()
| ||_______- arguments to this function are incorrect | ||_______- arguments to this function are incorrect
LL | | { ... |
LL | | loop {}
LL | | } LL | | }
| |__^ expected `&Layout`, found `Layout` | |__^ expected `&Layout`, found `Layout`
| |
@ -30,8 +29,7 @@ LL | // fn oom(
LL | || info: &Layout, LL | || info: &Layout,
LL | || ) -> () LL | || ) -> ()
| ||_______^ expected `!`, found `()` | ||_______^ expected `!`, found `()`
LL | | { ... |
LL | | loop {}
LL | | } LL | | }
| |__- expected `!` because of return type | |__- expected `!` because of return type
| |

View file

@ -3,8 +3,7 @@ error[E0658]: associated const equality is incomplete
| |
LL | impl Tr3<N LL | impl Tr3<N
| __________^ | __________^
LL | | ... |
LL | |
LL | | = 42, T2 = Qux, T3 = usize> for Bar { LL | | = 42, T2 = Qux, T3 = usize> for Bar {
| |____^ | |____^
| |
@ -198,8 +197,7 @@ error[E0229]: associated item constraints are not allowed here
| |
LL | impl Tr3<N LL | impl Tr3<N
| __________^ | __________^
LL | | ... |
LL | |
LL | | = 42, T2 = Qux, T3 = usize> for Bar { LL | | = 42, T2 = Qux, T3 = usize> for Bar {
| |____^ associated item constraint not allowed here | |____^ associated item constraint not allowed here
| |

View file

@ -2,8 +2,7 @@ error[E0277]: the trait bound `Bug: Foo` is not satisfied
--> $DIR/issue-59324.rs:11:1 --> $DIR/issue-59324.rs:11:1
| |
LL | / pub trait ThriftService<Bug: NotFoo>: LL | / pub trait ThriftService<Bug: NotFoo>:
LL | | ... |
LL | |
LL | | Service<AssocType = <Bug as Foo>::OnlyFoo> LL | | Service<AssocType = <Bug as Foo>::OnlyFoo>
| |______________________________________________^ the trait `Foo` is not implemented for `Bug` | |______________________________________________^ the trait `Foo` is not implemented for `Bug`
| |

View file

@ -14,8 +14,7 @@ LL | async fn foo() {
LL | | // Adding an .await here avoids the ICE LL | | // Adding an .await here avoids the ICE
LL | | test()?; LL | | test()?;
| | ^ cannot use the `?` operator in an async function that returns `()` | | ^ cannot use the `?` operator in an async function that returns `()`
LL | | ... |
LL | |
LL | | } LL | | }
| |_- this function should return `Result` or `Option` to accept `?` | |_- this function should return `Result` or `Option` to accept `?`
| |

View file

@ -8,10 +8,7 @@ LL | pub async fn start(&self) {
| let's call the lifetime of this reference `'1` | let's call the lifetime of this reference `'1`
... ...
LL | / require_static(async move { LL | / require_static(async move {
LL | | ... |
LL | |
LL | |
LL | | &self;
LL | | }); LL | | });
| | ^ | | ^
| | | | | |

View file

@ -66,8 +66,7 @@ LL | fn foo3() {
LL | / async { LL | / async {
LL | | LL | |
LL | | let _ = #[track_caller] || { LL | | let _ = #[track_caller] || {
LL | | ... |
LL | | };
LL | | } LL | | }
| |_____^ expected `()`, found `async` block | |_____^ expected `()`, found `async` block
| |

View file

@ -66,8 +66,7 @@ LL | fn foo3() {
LL | / async { LL | / async {
LL | | LL | |
LL | | let _ = #[track_caller] || { LL | | let _ = #[track_caller] || {
LL | | ... |
LL | | };
LL | | } LL | | }
| |_____^ expected `()`, found `async` block | |_____^ expected `()`, found `async` block
| |

View file

@ -40,8 +40,6 @@ LL | v.call(|(), this: &mut S| {
| | | | | |
| _____| first borrow later used by call | _____| first borrow later used by call
| | | |
LL | |
LL | |
... | ... |
LL | | v.set(); LL | | v.set();
| | - first borrow occurs due to use of `v` in closure | | - first borrow occurs due to use of `v` in closure

View file

@ -23,9 +23,6 @@ error: First Pass analysis includes:
| |
LL | let x = #[rustc_capture_analysis] move || { LL | let x = #[rustc_capture_analysis] move || {
| _______________________________________^ | _______________________________________^
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -42,9 +39,6 @@ error: Min Capture analysis includes:
| |
LL | let x = #[rustc_capture_analysis] move || { LL | let x = #[rustc_capture_analysis] move || {
| _______________________________________^ | _______________________________________^
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -61,9 +55,6 @@ error: First Pass analysis includes:
| |
LL | let c = #[rustc_capture_analysis] move || { LL | let c = #[rustc_capture_analysis] move || {
| _______________________________________^ | _______________________________________^
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -80,9 +71,6 @@ error: Min Capture analysis includes:
| |
LL | let c = #[rustc_capture_analysis] move || { LL | let c = #[rustc_capture_analysis] move || {
| _______________________________________^ | _______________________________________^
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | }; LL | | };

View file

@ -32,9 +32,6 @@ error: First Pass analysis includes:
--> $DIR/wild_patterns.rs:26:5 --> $DIR/wild_patterns.rs:26:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -50,9 +47,6 @@ error: Min Capture analysis includes:
--> $DIR/wild_patterns.rs:26:5 --> $DIR/wild_patterns.rs:26:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -68,9 +62,6 @@ error: First Pass analysis includes:
--> $DIR/wild_patterns.rs:45:5 --> $DIR/wild_patterns.rs:45:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -86,9 +77,6 @@ error: Min Capture analysis includes:
--> $DIR/wild_patterns.rs:45:5 --> $DIR/wild_patterns.rs:45:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -104,9 +92,6 @@ error: First Pass analysis includes:
--> $DIR/wild_patterns.rs:64:5 --> $DIR/wild_patterns.rs:64:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };
@ -122,9 +107,6 @@ error: Min Capture analysis includes:
--> $DIR/wild_patterns.rs:64:5 --> $DIR/wild_patterns.rs:64:5
| |
LL | / || { LL | / || {
LL | |
LL | |
LL | | // FIXME(arora-aman): Change `_x` to `_`
... | ... |
LL | | LL | |
LL | | }; LL | | };

View file

@ -1,4 +1,4 @@
<svg width="743px" height="848px" xmlns="http://www.w3.org/2000/svg"> <svg width="743px" height="830px" xmlns="http://www.w3.org/2000/svg">
<style> <style>
.fg { fill: #AAAAAA } .fg { fill: #AAAAAA }
.bg { background: #000000 } .bg { background: #000000 }
@ -33,83 +33,81 @@
</tspan> </tspan>
<tspan x="10px" y="136px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan> <tspan x="10px" y="136px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan>
</tspan> </tspan>
<tspan x="10px" y="154px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> // last line shown in multispan header</tspan> <tspan x="10px" y="154px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="172px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="172px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="190px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="190px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> ),</tspan>
</tspan> </tspan>
<tspan x="10px" y="208px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> ),</tspan> <tspan x="10px" y="208px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|_________-</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `()`</tspan>
</tspan> </tspan>
<tspan x="10px" y="226px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|_________-</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `()`</tspan> <tspan x="10px" y="226px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false =&gt; "</tspan>
</tspan> </tspan>
<tspan x="10px" y="244px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false =&gt; "</tspan> <tspan x="10px" y="244px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan>
</tspan> </tspan>
<tspan x="10px" y="262px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan> <tspan x="10px" y="262px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="280px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="280px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="298px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="298px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> ",</tspan>
</tspan> </tspan>
<tspan x="10px" y="316px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> ",</tspan> <tspan x="10px" y="316px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|_________^</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected `()`, found `&amp;str`</tspan>
</tspan> </tspan>
<tspan x="10px" y="334px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|_________^</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected `()`, found `&amp;str`</tspan> <tspan x="10px" y="334px">
</tspan> </tspan>
<tspan x="10px" y="352px"> <tspan x="10px" y="352px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
</tspan> </tspan>
<tspan x="10px" y="370px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan> <tspan x="10px" y="370px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">--&gt; </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan>
</tspan> </tspan>
<tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">--&gt; </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan> <tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="406px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="406px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> let _ = match true {</tspan>
</tspan> </tspan>
<tspan x="10px" y="424px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> let _ = match true {</tspan> <tspan x="10px" y="424px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">----------</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">`match` arms have incompatible types</tspan>
</tspan> </tspan>
<tspan x="10px" y="442px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">----------</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">`match` arms have incompatible types</tspan> <tspan x="10px" y="442px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> true =&gt; (</tspan>
</tspan> </tspan>
<tspan x="10px" y="460px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> true =&gt; (</tspan> <tspan x="10px" y="460px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan>
</tspan> </tspan>
<tspan x="10px" y="478px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan> <tspan x="10px" y="478px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="496px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="496px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> 1 // last line shown in multispan header</tspan>
</tspan> </tspan>
<tspan x="10px" y="514px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> 1 // last line shown in multispan header</tspan> <tspan x="10px" y="514px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="532px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="532px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="550px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan> <tspan x="10px" y="550px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> ),</tspan>
</tspan> </tspan>
<tspan x="10px" y="568px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> ),</tspan> <tspan x="10px" y="568px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|_________-</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan>
</tspan> </tspan>
<tspan x="10px" y="586px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|_________-</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan> <tspan x="10px" y="586px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false =&gt; "</tspan>
</tspan> </tspan>
<tspan x="10px" y="604px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false =&gt; "</tspan> <tspan x="10px" y="604px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan>
</tspan> </tspan>
<tspan x="10px" y="622px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan> <tspan x="10px" y="622px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="640px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="640px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="658px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="658px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> 1 last line shown in multispan</tspan>
</tspan> </tspan>
<tspan x="10px" y="676px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> 1 last line shown in multispan</tspan> <tspan x="10px" y="676px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="694px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="694px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
</tspan> </tspan>
<tspan x="10px" y="712px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan> <tspan x="10px" y="712px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> ",</tspan>
</tspan> </tspan>
<tspan x="10px" y="730px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> ",</tspan> <tspan x="10px" y="730px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|_________^</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected integer, found `&amp;str`</tspan>
</tspan> </tspan>
<tspan x="10px" y="748px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|_________^</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected integer, found `&amp;str`</tspan> <tspan x="10px" y="748px">
</tspan> </tspan>
<tspan x="10px" y="766px"> <tspan x="10px" y="766px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</tspan>
</tspan> </tspan>
<tspan x="10px" y="784px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</tspan> <tspan x="10px" y="784px">
</tspan> </tspan>
<tspan x="10px" y="802px"> <tspan x="10px" y="802px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
</tspan> </tspan>
<tspan x="10px" y="820px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan> <tspan x="10px" y="820px">
</tspan>
<tspan x="10px" y="838px">
</tspan> </tspan>
</text> </text>

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Before After
Before After

View file

@ -1,4 +1,4 @@
<svg width="743px" height="848px" xmlns="http://www.w3.org/2000/svg"> <svg width="743px" height="830px" xmlns="http://www.w3.org/2000/svg">
<style> <style>
.fg { fill: #AAAAAA } .fg { fill: #AAAAAA }
.bg { background: #000000 } .bg { background: #000000 }
@ -33,83 +33,81 @@
</tspan> </tspan>
<tspan x="10px" y="136px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan> <tspan x="10px" y="136px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan>
</tspan> </tspan>
<tspan x="10px" y="154px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> // last line shown in multispan header</tspan> <tspan x="10px" y="154px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="172px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="172px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="190px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="190px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> ),</tspan>
</tspan> </tspan>
<tspan x="10px" y="208px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> ),</tspan> <tspan x="10px" y="208px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">└─────────┘</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `()`</tspan>
</tspan> </tspan>
<tspan x="10px" y="226px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">└─────────┘</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `()`</tspan> <tspan x="10px" y="226px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> false =&gt; "</tspan>
</tspan> </tspan>
<tspan x="10px" y="244px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> false =&gt; "</tspan> <tspan x="10px" y="244px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan>
</tspan> </tspan>
<tspan x="10px" y="262px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan> <tspan x="10px" y="262px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="280px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="280px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="298px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="298px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> ",</tspan>
</tspan> </tspan>
<tspan x="10px" y="316px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> ",</tspan> <tspan x="10px" y="316px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">╰╴</tspan><tspan class="fg-ansi256-009 bold">┗━━━━━━━━━┛</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected `()`, found `&amp;str`</tspan>
</tspan> </tspan>
<tspan x="10px" y="334px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">╰╴</tspan><tspan class="fg-ansi256-009 bold">┗━━━━━━━━━┛</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected `()`, found `&amp;str`</tspan> <tspan x="10px" y="334px">
</tspan> </tspan>
<tspan x="10px" y="352px"> <tspan x="10px" y="352px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
</tspan> </tspan>
<tspan x="10px" y="370px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan> <tspan x="10px" y="370px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"> ╭▸ </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan>
</tspan> </tspan>
<tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"> ╭▸ </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan> <tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="406px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="406px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> let _ = match true {</tspan>
</tspan> </tspan>
<tspan x="10px" y="424px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> let _ = match true {</tspan> <tspan x="10px" y="424px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">──────────</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">`match` arms have incompatible types</tspan>
</tspan> </tspan>
<tspan x="10px" y="442px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">──────────</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">`match` arms have incompatible types</tspan> <tspan x="10px" y="442px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> true =&gt; (</tspan>
</tspan> </tspan>
<tspan x="10px" y="460px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> true =&gt; (</tspan> <tspan x="10px" y="460px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan>
</tspan> </tspan>
<tspan x="10px" y="478px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan> <tspan x="10px" y="478px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="496px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="496px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> 1 // last line shown in multispan header</tspan>
</tspan> </tspan>
<tspan x="10px" y="514px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> 1 // last line shown in multispan header</tspan> <tspan x="10px" y="514px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="532px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="532px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="550px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan> <tspan x="10px" y="550px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> ),</tspan>
</tspan> </tspan>
<tspan x="10px" y="568px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> ),</tspan> <tspan x="10px" y="568px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">└─────────┘</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan>
</tspan> </tspan>
<tspan x="10px" y="586px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">└─────────┘</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan> <tspan x="10px" y="586px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> false =&gt; "</tspan>
</tspan> </tspan>
<tspan x="10px" y="604px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> false =&gt; "</tspan> <tspan x="10px" y="604px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan>
</tspan> </tspan>
<tspan x="10px" y="622px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan> <tspan x="10px" y="622px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="640px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="640px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="658px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="658px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> 1 last line shown in multispan</tspan>
</tspan> </tspan>
<tspan x="10px" y="676px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> 1 last line shown in multispan</tspan> <tspan x="10px" y="676px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="694px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="694px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan>
</tspan> </tspan>
<tspan x="10px" y="712px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan> <tspan x="10px" y="712px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> ",</tspan>
</tspan> </tspan>
<tspan x="10px" y="730px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"></tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"></tspan><tspan> ",</tspan> <tspan x="10px" y="730px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">╰╴</tspan><tspan class="fg-ansi256-009 bold">┗━━━━━━━━━┛</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected integer, found `&amp;str`</tspan>
</tspan> </tspan>
<tspan x="10px" y="748px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">╰╴</tspan><tspan class="fg-ansi256-009 bold">┗━━━━━━━━━┛</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">expected integer, found `&amp;str`</tspan> <tspan x="10px" y="748px">
</tspan> </tspan>
<tspan x="10px" y="766px"> <tspan x="10px" y="766px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</tspan>
</tspan> </tspan>
<tspan x="10px" y="784px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</tspan> <tspan x="10px" y="784px">
</tspan> </tspan>
<tspan x="10px" y="802px"> <tspan x="10px" y="802px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
</tspan> </tspan>
<tspan x="10px" y="820px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan> <tspan x="10px" y="820px">
</tspan>
<tspan x="10px" y="838px">
</tspan> </tspan>
</text> </text>

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9 KiB

Before After
Before After

View file

@ -189,8 +189,7 @@ error[E0308]: mismatched types
LL | fn while_never_type() -> ! { LL | fn while_never_type() -> ! {
| - expected `!` because of return type | - expected `!` because of return type
LL | / while true { LL | / while true {
LL | | ... |
LL | |
LL | | } LL | | }
| |_____^ expected `!`, found `()` | |_____^ expected `!`, found `()`
| |

View file

@ -2,10 +2,7 @@ error: free constant item without body
--> $DIR/const_arg_trivial_macro_expansion-2.rs:12:1 --> $DIR/const_arg_trivial_macro_expansion-2.rs:12:1
| |
LL | / const _: A< LL | / const _: A<
LL | | ... |
LL | |
LL | | {
LL | | y! { test.tou8 }
LL | | }, LL | | },
LL | | >; LL | | >;
| | ^ help: provide a definition for the constant: `= <expr>;` | | ^ help: provide a definition for the constant: `= <expr>;`

View file

@ -5,8 +5,7 @@ LL | A: [(); {
| _____________^ | _____________^
LL | | LL | |
LL | | let x: Option<Box<Self>> = None; LL | | let x: Option<Box<Self>> = None;
LL | | ... |
LL | | 0
LL | | }], LL | | }],
| |_____^ blocks are not supported in generic constants | |_____^ blocks are not supported in generic constants
| |

View file

@ -4,7 +4,6 @@ error: unconstrained generic constant
LL | / const ITEM_IS_COPY: [(); 1 - { LL | / const ITEM_IS_COPY: [(); 1 - {
LL | | trait NotCopy { LL | | trait NotCopy {
LL | | const VALUE: bool = false; LL | | const VALUE: bool = false;
LL | | }
... | ... |
LL | | <IsCopy<T>>::VALUE LL | | <IsCopy<T>>::VALUE
LL | | } as usize] = []; LL | | } as usize] = [];

View file

@ -16,7 +16,6 @@ LL | let s = [(); {
| __________________^ | __________________^
LL | | let mut n = 113383; // #20 in https://oeis.org/A006884 LL | | let mut n = 113383; // #20 in https://oeis.org/A006884
LL | | while n != 0 { LL | | while n != 0 {
LL | |
... | ... |
LL | | n LL | | n
LL | | }]; LL | | }];

View file

@ -16,7 +16,6 @@ LL | let s = [(); {
| __________________^ | __________________^
LL | | let mut n = 113383; // #20 in https://oeis.org/A006884 LL | | let mut n = 113383; // #20 in https://oeis.org/A006884
LL | | while n != 0 { LL | | while n != 0 {
LL | |
... | ... |
LL | | n LL | | n
LL | | }]; LL | | }];

View file

@ -2,10 +2,7 @@ warning: constant evaluation is taking a long time
--> $DIR/ctfe-simple-loop.rs:10:5 --> $DIR/ctfe-simple-loop.rs:10:5
| |
LL | / while index < n { LL | / while index < n {
LL | | ... |
LL | |
LL | |
LL | | index = index + 1;
LL | | } LL | | }
| |_____^ the const evaluator is currently interpreting this expression | |_____^ the const evaluator is currently interpreting this expression
| |

View file

@ -2,10 +2,7 @@ warning: constant evaluation is taking a long time
--> $DIR/ctfe-simple-loop.rs:10:5 --> $DIR/ctfe-simple-loop.rs:10:5
| |
LL | / while index < n { LL | / while index < n {
LL | | ... |
LL | |
LL | |
LL | | index = index + 1;
LL | | } LL | | }
| |_____^ | |_____^
| |
@ -26,10 +23,7 @@ warning: constant evaluation is taking a long time
--> $DIR/ctfe-simple-loop.rs:10:5 --> $DIR/ctfe-simple-loop.rs:10:5
| |
LL | / while index < n { LL | / while index < n {
LL | | ... |
LL | |
LL | |
LL | | index = index + 1;
LL | | } LL | | }
| |_____^ | |_____^
| |
@ -45,10 +39,7 @@ warning: constant evaluation is taking a long time
--> $DIR/ctfe-simple-loop.rs:10:5 --> $DIR/ctfe-simple-loop.rs:10:5
| |
LL | / while index < n { LL | / while index < n {
LL | | ... |
LL | |
LL | |
LL | | index = index + 1;
LL | | } LL | | }
| |_____^ the const evaluator is currently interpreting this expression | |_____^ the const evaluator is currently interpreting this expression
| |

View file

@ -2,9 +2,6 @@ warning: constant evaluation is taking a long time
--> $DIR/evade-deduplication-issue-118612.rs:8:5 --> $DIR/evade-deduplication-issue-118612.rs:8:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -20,9 +17,6 @@ warning: constant evaluation is taking a long time
--> $DIR/evade-deduplication-issue-118612.rs:8:5 --> $DIR/evade-deduplication-issue-118612.rs:8:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -38,9 +32,6 @@ warning: constant evaluation is taking a long time
--> $DIR/evade-deduplication-issue-118612.rs:8:5 --> $DIR/evade-deduplication-issue-118612.rs:8:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -56,9 +47,6 @@ warning: constant evaluation is taking a long time
--> $DIR/evade-deduplication-issue-118612.rs:8:5 --> $DIR/evade-deduplication-issue-118612.rs:8:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -74,9 +62,6 @@ warning: constant evaluation is taking a long time
--> $DIR/evade-deduplication-issue-118612.rs:8:5 --> $DIR/evade-deduplication-issue-118612.rs:8:5
| |
LL | / loop { LL | / loop {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }

View file

@ -7,7 +7,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -26,7 +25,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -47,7 +45,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -66,7 +63,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -87,7 +83,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -106,7 +101,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );

View file

@ -7,7 +7,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -26,7 +25,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -47,7 +45,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -66,7 +63,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -87,7 +83,6 @@ LL | assert_send(g);
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );
@ -106,7 +101,6 @@ LL | _ => yield,
LL | / type_combinations!( LL | / type_combinations!(
LL | | // OK LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... | ... |
LL | | }; LL | | };
LL | | ); LL | | );

View file

@ -3,9 +3,6 @@ warning: unused coroutine that must be used
| |
LL | #[coroutine] static move || { LL | #[coroutine] static move || {
| ______________________^ | ______________________^
LL | | // Tests that the coroutine transformation finds out that `a` is not live
LL | | // during the yield expression. Type checking will also compute liveness
LL | | // and it should also find out that `a` is not live.
... | ... |
LL | | let _ = &a; LL | | let _ = &a;
LL | | }; LL | | };

View file

@ -4,8 +4,6 @@ warning: unused coroutine that must be used
LL | #[coroutine] static || { LL | #[coroutine] static || {
| __________________^ | __________________^
LL | | loop { LL | | loop {
LL | | // Test that `opt` is not live across the yield, even when borrowed in a loop
LL | | // See https://github.com/rust-lang/rust/issues/52792
... | ... |
LL | | } LL | | }
LL | | }; LL | | };

View file

@ -171,8 +171,6 @@ LL | #[coverage = "off"]
... ...
LL | / trait MyTrait { LL | / trait MyTrait {
LL | | #[coverage = "off"] LL | | #[coverage = "off"]
LL | |
LL | |
... | ... |
LL | | type T; LL | | type T;
LL | | } LL | | }

View file

@ -171,8 +171,6 @@ LL | #[coverage]
... ...
LL | / trait MyTrait { LL | / trait MyTrait {
LL | | #[coverage] LL | | #[coverage]
LL | |
LL | |
... | ... |
LL | | type T; LL | | type T;
LL | | } LL | | }

View file

@ -22,9 +22,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -33,9 +30,6 @@ note: `x` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -71,9 +65,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -82,9 +73,6 @@ note: `x` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -115,9 +103,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -126,9 +111,6 @@ note: `x` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -159,9 +141,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -170,9 +149,6 @@ note: `future` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -225,9 +201,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -236,9 +209,6 @@ note: `x` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -311,9 +281,6 @@ note: `#1` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }
@ -322,9 +289,6 @@ note: `_x` invokes this custom destructor
--> $DIR/lint-tail-expr-drop-order.rs:11:1 --> $DIR/lint-tail-expr-drop-order.rs:11:1
| |
LL | / impl Drop for LoudDropper { LL | / impl Drop for LoudDropper {
LL | |
LL | |
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }

View file

@ -3,8 +3,7 @@ warning: anonymous parameters are deprecated and will be removed in the next edi
| |
LL | fn test(x: u32, ( LL | fn test(x: u32, (
| _____________________^ | _____________________^
LL | | ... |
LL | |
LL | | )) {} LL | | )) {}
| |_____^ | |_____^
| |

View file

@ -5,8 +5,7 @@ LL | / if let Some(b) = None {
LL | | LL | |
LL | | () LL | | ()
| | -- expected because of this | | -- expected because of this
LL | | ... |
LL | | } else {
LL | | 1 LL | | 1
| | ^ expected `()`, found integer | | ^ expected `()`, found integer
LL | | }; LL | | };

View file

@ -22,8 +22,7 @@ LL | extern "C" {
LL | / thread_local! { LL | / thread_local! {
LL | | static FOO: u32 = 0; LL | | static FOO: u32 = 0;
| | ^^^ cannot have a body | | ^^^ cannot have a body
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- the invalid body | |_____- the invalid body
| |

View file

@ -54,9 +54,6 @@ LL | #[inline]
| ^^^^^^^^^ | ^^^^^^^^^
LL | LL |
LL | / mod inline { LL | / mod inline {
LL | |
LL | |
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }
@ -101,7 +98,6 @@ LL |
LL | / mod repr { LL | / mod repr {
LL | | LL | |
LL | | mod inner { #![repr(C)] } LL | | mod inner { #![repr(C)] }
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }
@ -116,7 +112,6 @@ LL |
LL | / mod repr_rust { LL | / mod repr_rust {
LL | | LL | |
LL | | mod inner { #![repr(Rust)] } LL | | mod inner { #![repr(Rust)] }
LL | |
... | ... |
LL | | LL | |
LL | | } LL | | }

View file

@ -227,7 +227,6 @@ LL | #[no_mangle]
LL | / mod no_mangle { LL | / mod no_mangle {
LL | | LL | |
LL | | mod inner { #![no_mangle] } LL | | mod inner { #![no_mangle] }
LL | |
... | ... |
LL | | } LL | | }
LL | | } LL | | }

View file

@ -6,8 +6,6 @@ LL | #[derive(Debug)]
LL | LL |
LL | / mod derive { LL | / mod derive {
LL | | mod inner { #![derive(Debug)] } LL | | mod inner { #![derive(Debug)] }
LL | |
LL | |
... | ... |
LL | | impl S { } LL | | impl S { }
LL | | } LL | | }

View file

@ -6,8 +6,7 @@ LL | for _ in 0..1 {
LL | LL |
LL | } else { LL | } else {
| _______^ | _______^
LL | | ... |
LL | |
LL | | } LL | | }
| |_____^ | |_____^
| |

View file

@ -6,8 +6,7 @@ LL | let _ = for _ in 0..1 {
LL | LL |
LL | } else { LL | } else {
| _______^ | _______^
LL | | ... |
LL | |
LL | | }; LL | | };
| |_____^ | |_____^
| |

View file

@ -2,10 +2,7 @@ error: `T` does not live long enough
--> $DIR/collectivity-regression.rs:13:5 --> $DIR/collectivity-regression.rs:13:5
| |
LL | / || { LL | / || {
LL | | ... |
LL | | //
LL | | // FIXME(#98437). This regressed at some point and
LL | | // probably should work.
LL | | let _x = x; LL | | let _x = x;
LL | | }; LL | | };
| |_____^ | |_____^

View file

@ -2,9 +2,6 @@ error[E0277]: the trait bound `F: MyFn<i32>` is not satisfied
--> $DIR/false-positive-predicate-entailment-error.rs:36:5 --> $DIR/false-positive-predicate-entailment-error.rs:36:5
| |
LL | / fn autobatch<F>(self) -> impl Trait LL | / fn autobatch<F>(self) -> impl Trait
LL | |
LL | |
LL | |
... | ... |
LL | | where LL | | where
LL | | F: Callback<Self::CallbackArg>, LL | | F: Callback<Self::CallbackArg>,
@ -52,9 +49,6 @@ error[E0277]: the trait bound `F: MyFn<i32>` is not satisfied
--> $DIR/false-positive-predicate-entailment-error.rs:36:5 --> $DIR/false-positive-predicate-entailment-error.rs:36:5
| |
LL | / fn autobatch<F>(self) -> impl Trait LL | / fn autobatch<F>(self) -> impl Trait
LL | |
LL | |
LL | |
... | ... |
LL | | where LL | | where
LL | | F: Callback<Self::CallbackArg>, LL | | F: Callback<Self::CallbackArg>,
@ -105,9 +99,6 @@ error[E0277]: the trait bound `F: MyFn<i32>` is not satisfied
--> $DIR/false-positive-predicate-entailment-error.rs:36:5 --> $DIR/false-positive-predicate-entailment-error.rs:36:5
| |
LL | / fn autobatch<F>(self) -> impl Trait LL | / fn autobatch<F>(self) -> impl Trait
LL | |
LL | |
LL | |
... | ... |
LL | | where LL | | where
LL | | F: Callback<Self::CallbackArg>, LL | | F: Callback<Self::CallbackArg>,

View file

@ -15,8 +15,7 @@ error[E0277]: the trait bound `isize: HasState` is not satisfied
| |
LL | fn add_state(op: <isize as HasState>::State) { LL | fn add_state(op: <isize as HasState>::State) {
| ______________________________________________^ | ______________________________________________^
LL | | ... |
LL | |
LL | | } LL | | }
| |_^ the trait `HasState` is not implemented for `isize` | |_^ the trait `HasState` is not implemented for `isize`
| |

View file

@ -2,10 +2,7 @@ error[E0572]: return statement outside of function body
--> $DIR/issue-51714.rs:6:13 --> $DIR/issue-51714.rs:6:13
| |
LL | / fn main() { LL | / fn main() {
LL | | ... |
LL | |
LL | |
LL | |
LL | | |_: [_; return || {}]| {}; LL | | |_: [_; return || {}]| {};
| | ^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^ the return is part of this body...
... | ... |
@ -17,9 +14,6 @@ error[E0572]: return statement outside of function body
--> $DIR/issue-51714.rs:10:10 --> $DIR/issue-51714.rs:10:10
| |
LL | / fn main() { LL | / fn main() {
LL | |
LL | |
LL | |
... | ... |
LL | | [(); return || {}]; LL | | [(); return || {}];
| | ^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^ the return is part of this body...
@ -32,9 +26,6 @@ error[E0572]: return statement outside of function body
--> $DIR/issue-51714.rs:14:10 --> $DIR/issue-51714.rs:14:10
| |
LL | / fn main() { LL | / fn main() {
LL | |
LL | |
LL | |
... | ... |
LL | | [(); return |ice| {}]; LL | | [(); return |ice| {}];
| | ^^^^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^^^^ the return is part of this body...
@ -47,9 +38,6 @@ error[E0572]: return statement outside of function body
--> $DIR/issue-51714.rs:18:10 --> $DIR/issue-51714.rs:18:10
| |
LL | / fn main() { LL | / fn main() {
LL | |
LL | |
LL | |
... | ... |
LL | | [(); return while let Some(n) = Some(0) {}]; LL | | [(); return while let Some(n) = Some(0) {}];
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...

View file

@ -2,9 +2,6 @@ error[E0277]: expected a `FnOnce(&'a mut i32)` closure, found `i32`
--> $DIR/issue-76168-hr-outlives-3.rs:6:1 --> $DIR/issue-76168-hr-outlives-3.rs:6:1
| |
LL | / async fn wrapper<F>(f: F) LL | / async fn wrapper<F>(f: F)
LL | |
LL | |
LL | |
... | ... |
LL | | F:, LL | | F:,
LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a, LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,
@ -24,9 +21,6 @@ error[E0277]: expected a `FnOnce(&'a mut i32)` closure, found `i32`
--> $DIR/issue-76168-hr-outlives-3.rs:6:1 --> $DIR/issue-76168-hr-outlives-3.rs:6:1
| |
LL | / async fn wrapper<F>(f: F) LL | / async fn wrapper<F>(f: F)
LL | |
LL | |
LL | |
... | ... |
LL | | F:, LL | | F:,
LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a, LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,
@ -38,9 +32,6 @@ error[E0277]: expected a `FnOnce(&'a mut i32)` closure, found `i32`
--> $DIR/issue-76168-hr-outlives-3.rs:6:1 --> $DIR/issue-76168-hr-outlives-3.rs:6:1
| |
LL | / async fn wrapper<F>(f: F) LL | / async fn wrapper<F>(f: F)
LL | |
LL | |
LL | |
... | ... |
LL | | F:, LL | | F:,
LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a, LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,

View file

@ -7,10 +7,7 @@ LL | fn bget(&self, index: [usize; Self::DIM]) -> bool {
| ________^^^^___________________________________________- | ________^^^^___________________________________________-
| | | | | |
| | cannot have a body | | cannot have a body
LL | | ... |
LL | |
LL | |
LL | | type T<'a> = &'a str;
LL | | } LL | | }
| |_____- help: remove the invalid body: `;` | |_____- help: remove the invalid body: `;`
| |

View file

@ -124,7 +124,6 @@ LL | | impl Uto10 for Test {}
| | | | | | | |
| | | `Test` is not local | | | `Test` is not local
| | `Uto10` is not local | | `Uto10` is not local
LL | |
... | ... |
LL | | }]; LL | | }];
| |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies | |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies

View file

@ -8,7 +8,6 @@ LL | | impl Uto for *mut Test {}
| | | | | | | |
| | | `Test` is not local | | | `Test` is not local
| | `Uto` is not local | | `Uto` is not local
LL | |
... | ... |
LL | | }]; LL | | }];
| |_- move the `impl` block outside of this constant expression `<unnameable>` | |_- move the `impl` block outside of this constant expression `<unnameable>`
@ -26,7 +25,6 @@ LL | | impl Uto for Test {}
| | | | | | | |
| | | `Test` is not local | | | `Test` is not local
| | `Uto` is not local | | `Uto` is not local
LL | |
... | ... |
LL | | } LL | | }
| |_____- move the `impl` block outside of this constant expression `<unnameable>` | |_____- move the `impl` block outside of this constant expression `<unnameable>`
@ -61,7 +59,6 @@ LL | | impl Uto for &Test {}
| | | | | | | |
| | | `Test` is not local | | | `Test` is not local
| | `Uto` is not local | | `Uto` is not local
LL | |
... | ... |
LL | | }]; LL | | }];
| |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies | |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies
@ -78,7 +75,6 @@ LL | | impl Uto for &(Test,) {}
| | | | | | | |
| | | `Test` is not local | | | `Test` is not local
| | `Uto` is not local | | `Uto` is not local
LL | |
... | ... |
LL | | }]) {} LL | | }]) {}
| |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies | |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies
@ -96,7 +92,6 @@ LL | | impl Uto for &(Test,Test) {}
| | | | `Test` is not local | | | | `Test` is not local
| | | `Test` is not local | | | `Test` is not local
| | `Uto` is not local | | `Uto` is not local
LL | |
... | ... |
LL | | }] { todo!() } LL | | }] { todo!() }
| |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies | |_____- move the `impl` block outside of this constant expression `<unnameable>` and up 2 bodies

View file

@ -4,8 +4,7 @@ error[E0308]: mismatched types
LL | / if true { LL | / if true {
LL | | Err(1) LL | | Err(1)
| | ^^^^^^ expected `()`, found `Result<_, {integer}>` | | ^^^^^^ expected `()`, found `Result<_, {integer}>`
LL | | ... |
LL | |
LL | | } LL | | }
| |_____________- expected this to be `()` | |_____________- expected this to be `()`
| |
@ -22,8 +21,7 @@ error[E0308]: mismatched types
LL | / if true { LL | / if true {
LL | | Err(1) LL | | Err(1)
| | ^^^^^^ expected `()`, found `Result<_, {integer}>` | | ^^^^^^ expected `()`, found `Result<_, {integer}>`
LL | | ... |
LL | |
LL | | } LL | | }
| |_____________- expected this to be `()` | |_____________- expected this to be `()`
| |

View file

@ -6,8 +6,7 @@ LL | loop {
LL | LL |
LL | } else { LL | } else {
| _______^ | _______^
LL | | ... |
LL | |
LL | | } LL | | }
| |_____^ | |_____^
| |

View file

@ -6,8 +6,7 @@ LL | let _ = loop {
LL | LL |
LL | } else { LL | } else {
| _______^ | _______^
LL | | ... |
LL | |
LL | | }; LL | | };
| |_____^ | |_____^
| |

View file

@ -7,8 +7,7 @@ LL | | 0 => x,
| | - this is found to be of type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | | - this is found to be of type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
LL | | _ => y, LL | | _ => y,
| | ^ one type is more general than the other | | ^ one type is more general than the other
LL | | ... |
LL | |
LL | | }; LL | | };
| |_____- `match` arms have incompatible types | |_____- `match` arms have incompatible types
| |

View file

@ -55,8 +55,7 @@ error: repetition matches empty token tree
| |
LL | $( LL | $(
| __________^ | __________^
LL | | /// ... |
LL | | ///
LL | | )* LL | | )*
| |_________^ | |_________^

View file

@ -21,8 +21,7 @@ LL | | 12 => 'b',
| | --- this is found to be of type `char` | | --- this is found to be of type `char`
LL | | _ => 42, LL | | _ => 42,
| | ^^ expected `char`, found integer | | ^^ expected `char`, found integer
LL | | ... |
LL | |
LL | | }; LL | | };
| |_____- `match` arms have incompatible types | |_____- `match` arms have incompatible types

View file

@ -30,10 +30,7 @@ LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
| | | |
| lifetime `'a` defined here | lifetime `'a` defined here
LL | / establish_relationships(&cell_a, &cell_b, |_outlives, x, y| { LL | / establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
LL | | ... |
LL | |
LL | | // Only works if 'x: 'y:
LL | | demand_y(x, y, x.get())
LL | | }); LL | | });
| | ^ | | ^
| | | | | |

View file

@ -30,10 +30,7 @@ LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
| | | |
| lifetime `'a` defined here | lifetime `'a` defined here
LL | / establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| { LL | / establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
LL | | ... |
LL | |
LL | | // Only works if 'x: 'y:
LL | | demand_y(x, y, x.get())
LL | | }); LL | | });
| | ^ | | ^
| | | | | |

View file

@ -2,10 +2,7 @@ error: `S` does not live long enough
--> $DIR/snocat-regression.rs:7:5 --> $DIR/snocat-regression.rs:7:5
| |
LL | / || { LL | / || {
LL | | ... |
LL | | //
LL | | // FIXME(#98437). This regressed at some point and
LL | | // probably should work.
LL | | let _x = link; LL | | let _x = link;
LL | | }; LL | | };
| |_____^ | |_____^

View file

@ -30,15 +30,11 @@ note: function defined here
LL | pub fn f( LL | pub fn f(
| ^ | ^
LL | / /// Comment LL | / /// Comment
LL | | ... |
LL | |
LL | |
LL | | id: u8, LL | | id: u8,
| |__________- | |__________-
LL | / /// Other LL | / /// Other
LL | | ... |
LL | |
LL | |
LL | | a: u8, LL | | a: u8,
| |_________- | |_________-

View file

@ -15,8 +15,7 @@ LL | / fn bar() {
LL | | LL | |
LL | | [(); return]; LL | | [(); return];
| | ^^^^^^ the return is part of this body... | | ^^^^^^ the return is part of this body...
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- ...not the enclosing function body | |_____- ...not the enclosing function body
@ -27,8 +26,7 @@ LL | / fn foo() {
LL | | LL | |
LL | | [(); return]; LL | | [(); return];
| | ^^^^^^ the return is part of this body... | | ^^^^^^ the return is part of this body...
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- ...not the enclosing function body | |_____- ...not the enclosing function body

View file

@ -2,9 +2,7 @@ error[E0572]: return statement outside of function body
--> $DIR/return-match-array-const.rs:5:10 --> $DIR/return-match-array-const.rs:5:10
| |
LL | / fn main() { LL | / fn main() {
LL | | ... |
LL | |
LL | |
LL | | [(); return match 0 { n => n }]; LL | | [(); return match 0 { n => n }];
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
... | ... |
@ -16,9 +14,6 @@ error[E0572]: return statement outside of function body
--> $DIR/return-match-array-const.rs:9:10 --> $DIR/return-match-array-const.rs:9:10
| |
LL | / fn main() { LL | / fn main() {
LL | |
LL | |
LL | |
... | ... |
LL | | [(); return match 0 { 0 => 0 }]; LL | | [(); return match 0 { 0 => 0 }];
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
@ -31,9 +26,6 @@ error[E0572]: return statement outside of function body
--> $DIR/return-match-array-const.rs:13:10 --> $DIR/return-match-array-const.rs:13:10
| |
LL | / fn main() { LL | / fn main() {
LL | |
LL | |
LL | |
... | ... |
LL | | [(); return match () { 'a' => 0, _ => 0 }]; LL | | [(); return match () { 'a' => 0, _ => 0 }];
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body... | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...

View file

@ -4,8 +4,7 @@ error[E0308]: mismatched types
LL | / if x { LL | / if x {
LL | | Err(42) LL | | Err(42)
| | ^^^^^^^ expected `()`, found `Result<_, {integer}>` | | ^^^^^^^ expected `()`, found `Result<_, {integer}>`
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- expected this to be `()` | |_____- expected this to be `()`
| |
@ -22,8 +21,7 @@ error[E0308]: mismatched types
LL | / if true { LL | / if true {
LL | | 1i32 LL | | 1i32
| | ^^^^ expected `()`, found `i32` | | ^^^^ expected `()`, found `i32`
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- expected this to be `()` | |_____- expected this to be `()`
| |
@ -38,8 +36,7 @@ error[E0308]: mismatched types
LL | / if x { LL | / if x {
LL | | Err(42) LL | | Err(42)
| | ^^^^^^^ expected `()`, found `Result<_, {integer}>` | | ^^^^^^^ expected `()`, found `Result<_, {integer}>`
LL | | ... |
LL | |
LL | | } LL | | }
| |_____- expected this to be `()` | |_____- expected this to be `()`
| |

View file

@ -4,8 +4,7 @@ error: extern blocks must be unsafe
LL | / extern "C" { LL | / extern "C" {
LL | | LL | |
LL | | safe static TEST1: i32; LL | | safe static TEST1: i32;
LL | | ... |
LL | | safe fn test1(i: i32);
LL | | LL | |
LL | | } LL | | }
| |_^ | |_^

View file

@ -39,10 +39,7 @@ error[E0277]: the trait bound `B: Clone` is not satisfied
| |
LL | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { LL | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
| ______________________________________________________________^ | ______________________________________________________________^
LL | | ... |
LL | |
LL | |
LL | | write!(f, "foo")
LL | | } LL | | }
| |_____^ the trait `Clone` is not implemented for `B` | |_____^ the trait `Clone` is not implemented for `B`
| |

Some files were not shown because too many files have changed in this diff Show more