Filter empty lines, comments and delimiters from previous to last multiline span rendering
This commit is contained in:
parent
65a54a7f27
commit
49a22a4245
103 changed files with 115 additions and 401 deletions
|
@ -3064,7 +3064,11 @@ impl FileWithAnnotatedLines {
|
|||
add_annotation_to_file(&mut output, Lrc::clone(&file), line, ann.as_line());
|
||||
}
|
||||
let line_end = ann.line_end - 1;
|
||||
if middle < line_end {
|
||||
let end_is_empty = file.get_line(line_end - 1).map_or(false, |s| {
|
||||
let s = s.trim();
|
||||
["", "{", "}", "(", ")", "[", "]"].contains(&s) || s.starts_with("//")
|
||||
});
|
||||
if middle < line_end && !end_is_empty {
|
||||
add_annotation_to_file(&mut output, Lrc::clone(&file), line_end, ann.as_line());
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -20,7 +20,6 @@ LL | | fn clone_self(&self) -> Self {
|
|||
LL | | Self {
|
||||
LL | | a: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -32,7 +31,6 @@ LL | | fn default() -> Self {
|
|||
LL | | Self {
|
||||
LL | | a: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
|
|
|
@ -286,7 +286,6 @@ LL | | if unsafe { true } {
|
|||
LL | | todo!();
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
|
|
@ -294,7 +294,6 @@ LL | | if unsafe { true } {
|
|||
LL | | todo!();
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
|
|
@ -44,7 +44,6 @@ LL | | if {
|
|||
LL | | if s == "43" {
|
||||
LL | | return Some(43);
|
||||
... |
|
||||
LL | | }
|
||||
LL | | });
|
||||
| |______^
|
||||
|
|
||||
|
|
|
@ -44,7 +44,6 @@ LL | } else {
|
|||
LL | | if y == "world" {
|
||||
LL | | println!("world")
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -66,7 +65,6 @@ LL | } else {
|
|||
LL | | if let Some(42) = Some(42) {
|
||||
LL | | println!("world")
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -88,7 +86,6 @@ LL | } else {
|
|||
LL | | if let Some(42) = Some(42) {
|
||||
LL | | println!("world")
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -110,7 +107,6 @@ LL | } else {
|
|||
LL | | if x == "hello" {
|
||||
LL | | println!("world")
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -132,7 +128,6 @@ LL | } else {
|
|||
LL | | if let Some(42) = Some(42) {
|
||||
LL | | println!("world")
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | type Item = u8;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -3,7 +3,6 @@ error: this loop never actually loops
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -14,7 +13,6 @@ error: this loop could be written as a `while let` loop
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_____^ help: try: `while let Some(ele) = iter.next() { .. }`
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | | fn default() -> Self {
|
|||
LL | | Self {
|
||||
LL | | a: false,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -97,7 +97,6 @@ error: empty lines after doc comment
|
|||
|
|
||||
LL | / /// for OldA
|
||||
... |
|
||||
LL | | // struct OldB;
|
||||
LL | |
|
||||
| |_^
|
||||
...
|
||||
|
|
|
@ -16,8 +16,7 @@ LL | / if !m.contains_key(&k) {
|
|||
LL | | if true {
|
||||
LL | | m.insert(k, v);
|
||||
LL | | } else {
|
||||
LL | | m.insert(k, v2);
|
||||
LL | | }
|
||||
... |
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -63,7 +62,6 @@ LL | | if true {
|
|||
LL | | m.insert(k, v);
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -154,7 +152,6 @@ LL | | foo();
|
|||
LL | | match 0 {
|
||||
LL | | 0 if false => {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -45,7 +45,6 @@ LL | / enum Food {
|
|||
LL | |
|
||||
LL | | FoodGood,
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -29,7 +29,6 @@ LL | |
|
|||
LL | | fn from(i: usize) -> Invalid {
|
||||
LL | | if i != 42 {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -49,7 +48,6 @@ LL | |
|
|||
LL | | fn from(s: Option<String>) -> Invalid {
|
||||
LL | | let s = s.unwrap();
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -76,7 +74,6 @@ LL | |
|
|||
LL | | fn from(s: &'a mut <Box<u32> as ProjStrTrait>::ProjString) -> Invalid {
|
||||
LL | | if s.parse::<u32>().ok().unwrap() != 42 {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -7,7 +7,6 @@ LL | | for _ in &[42] {
|
|||
LL | | let foo: &Option<_> = &Some::<u8>(42);
|
||||
LL | | if foo.is_some() {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | } else {
|
||||
| |_____^
|
||||
|
|
||||
|
@ -20,7 +19,6 @@ LL | | for _ in &[42] {
|
|||
LL | | let bar: &Option<_> = &Some::<u8>(42);
|
||||
LL | | if bar.is_some() {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
= note: `-D clippy::if-same-then-else` implied by `-D warnings`
|
||||
|
|
|
@ -37,7 +37,6 @@ LL | / loop {
|
|||
LL | |
|
||||
LL | | loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_________^
|
||||
|
|
||||
|
@ -94,7 +93,6 @@ LL | |
|
|||
LL | | loop {
|
||||
LL | | if cond {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -111,7 +109,6 @@ LL | |
|
|||
LL | | 'inner: loop {
|
||||
LL | | loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -142,7 +139,6 @@ LL | |
|
|||
LL | | 'inner: loop {
|
||||
LL | | loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_________^
|
||||
|
|
||||
|
@ -159,7 +155,6 @@ LL | |
|
|||
LL | | match opt {
|
||||
LL | | Some(v) => {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -276,7 +271,6 @@ LL | |
|
|||
LL | | 'inner: loop {
|
||||
LL | | loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | | type IntoIter = std::slice::Iter<'a, u8>;
|
||||
LL | | type Item = &'a u8;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -30,7 +29,6 @@ LL | |
|
|||
LL | | type IntoIter = std::slice::IterMut<'a, u8>;
|
||||
LL | | type Item = &'a mut u8;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -52,7 +50,6 @@ LL | |
|
|||
LL | | type IntoIter = std::slice::Iter<'a, T>;
|
||||
LL | | type Item = &'a T;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -74,7 +71,6 @@ LL | |
|
|||
LL | | type IntoIter = std::slice::IterMut<'a, T>;
|
||||
LL | | type Item = &'a mut T;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -96,7 +92,6 @@ LL | |
|
|||
LL | | type IntoIter = std::slice::IterMut<'a, T>;
|
||||
LL | | type Item = &'a mut T;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -117,8 +112,7 @@ LL | / impl<'a> IntoIterator for &'a Issue12037 {
|
|||
LL | | type IntoIter = std::slice::Iter<'a, u8>;
|
||||
LL | | type Item = &'a u8;
|
||||
LL | | fn into_iter(self) -> Self::IntoIter {
|
||||
LL | | todo!()
|
||||
LL | | }
|
||||
... |
|
||||
LL | | }
|
||||
| |_________^
|
||||
...
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if s == String::new() {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | None
|
||||
| |________^ help: replace with an iterator: `strings.into_iter().find(|s| s == String::new())`
|
||||
|
|
||||
|
@ -22,7 +21,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if s == String::new() {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | None
|
||||
| |________^ help: replace with an iterator: `arr.into_iter().map(|(s, _)| s).find(|s| s == String::new())`
|
||||
|
|
||||
|
|
|
@ -184,7 +184,6 @@ LL | |
|
|||
LL | | Some(1),
|
||||
LL | | Some(2),
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -148,7 +148,6 @@ LL | |
|
|||
LL | | v_some
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
@ -175,7 +174,6 @@ LL | |
|
|||
LL | | v_some
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
@ -197,7 +195,6 @@ LL | |
|
|||
LL | | v_some
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
@ -306,7 +303,6 @@ LL | |
|
|||
LL | | v_some
|
||||
LL | | } else {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |______^
|
||||
|
|
||||
|
|
|
@ -36,7 +36,6 @@ LL | | Some(i) => i,
|
|||
LL | | None => {
|
||||
LL | | 42 + 42
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -130,7 +129,6 @@ LL | | Ok(i) => i,
|
|||
LL | | Err(_) => {
|
||||
LL | | 42 + 42
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -72,7 +72,6 @@ LL | | /// dox
|
|||
LL | | pub fn documented() {}
|
||||
LL | | pub fn undocumented1() {}
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | | // unused field: hidden
|
||||
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -28,7 +27,6 @@ LL | |
|
|||
LL | | // unused fields: hidden, hidden2, hidden4
|
||||
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -58,7 +56,6 @@ LL | |
|
|||
LL | | fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
LL | | let mut f = formatter.debug_struct("MultiExprDebugImpl");
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if *v == 10 {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | });
|
||||
| |_______^
|
||||
|
|
||||
|
|
|
@ -72,7 +72,6 @@ LL | |
|
|||
LL | | // never loops
|
||||
LL | | match x {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -123,7 +122,6 @@ LL | |
|
|||
LL | | 'b: {
|
||||
LL | | break 'b 'c: {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
||||
|
|
|
@ -68,8 +68,7 @@ LL | / match Result::<i32, &Infallible>::Ok(1) {
|
|||
LL | | Ok(a) => println!("${:?}", a),
|
||||
LL | | Err(_) => {
|
||||
LL | | println!("else block");
|
||||
LL | | return;
|
||||
LL | | }
|
||||
... |
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
@ -88,8 +87,7 @@ LL | / match Cow::from("moo") {
|
|||
LL | | Cow::Owned(a) => println!("${:?}", a),
|
||||
LL | | Cow::Borrowed(_) => {
|
||||
LL | | println!("else block");
|
||||
LL | | return;
|
||||
LL | | }
|
||||
... |
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -34,7 +34,6 @@ LL | |
|
|||
LL | | {
|
||||
LL | | true;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | );
|
||||
| |_____^
|
||||
|
||||
|
@ -46,7 +45,6 @@ LL | |
|
|||
LL | | {
|
||||
LL | | true;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | );
|
||||
| |_____^
|
||||
|
||||
|
@ -58,7 +56,6 @@ LL | |
|
|||
LL | | {
|
||||
LL | | true;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | );
|
||||
| |_____^
|
||||
|
||||
|
@ -70,7 +67,6 @@ LL | |
|
|||
LL | | {
|
||||
LL | | true;
|
||||
... |
|
||||
LL | | }
|
||||
LL | | );
|
||||
| |_____^
|
||||
|
||||
|
|
|
@ -435,7 +435,6 @@ error: unnecessary closure used to substitute value for `Result::Err`
|
|||
LL | let _: Result<usize, usize> = res.
|
||||
| ___________________________________^
|
||||
... |
|
||||
LL | | // some lines
|
||||
LL | | or_else(|_| Ok(ext_str.some_field));
|
||||
| |_______________________________________^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if a && b {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -112,7 +111,6 @@ LL | |
|
|||
LL | | if a && b {
|
||||
LL | | return Some(());
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
@ -139,7 +137,6 @@ LL | |
|
|||
LL | | if a && b {
|
||||
LL | | return Ok(());
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | | // checks whether a string represents a number divisible by 3
|
||||
LL | | let i = i_str.parse::<i32>().unwrap();
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if let Some(_x) = y {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ help: try: `while let Some(_x) = y { .. }`
|
||||
|
|
||||
|
@ -45,7 +44,6 @@ LL | |
|
|||
LL | | let x = match y {
|
||||
LL | | Some(x) => x,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ help: try: `while let Some(x) = y { .. }`
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ error: unclosed quote string `"`
|
|||
|
|
||||
LL | / /// ```{class="}
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -19,7 +18,6 @@ error: unclosed quote string `"`
|
|||
|
|
||||
LL | / /// ```{class="}
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
|
|
@ -3,7 +3,6 @@ error: unknown attribute `standalone`
|
|||
|
|
||||
11 | / //! ```standalone
|
||||
... |
|
||||
16 | | //! bla
|
||||
17 | | //! ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -21,7 +20,6 @@ error: unknown attribute `standalone-crate`
|
|||
|
|
||||
11 | / //! ```standalone
|
||||
... |
|
||||
16 | | //! bla
|
||||
17 | | //! ```
|
||||
| |_______^
|
||||
|
|
||||
|
|
|
@ -311,11 +311,9 @@ LL | | <Self as SVec>::Item,
|
|||
... |
|
||||
LL | |/ Output = <Index<<Self as SVec>::Item,
|
||||
... ||
|
||||
LL | ||
|
||||
LL | || Output = <Self as SVec>::Item> as SVec>::Item,
|
||||
| ||_________________________________________________^ ...because it uses `Self` as a type parameter
|
||||
... |
|
||||
LL | |
|
||||
LL | | > {
|
||||
| |__^ ...because it uses `Self` as a type parameter
|
||||
help: consider using an opaque type instead
|
||||
|
|
|
@ -3,7 +3,6 @@ error: unknown attribute `compile-fail`
|
|||
|
|
||||
LL | / /// foo
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -20,7 +19,6 @@ error: unknown attribute `compilefail`
|
|||
|
|
||||
LL | / /// foo
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -32,7 +30,6 @@ error: unknown attribute `comPile_fail`
|
|||
|
|
||||
LL | / /// foo
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -44,7 +41,6 @@ error: unknown attribute `should-panic`
|
|||
|
|
||||
LL | / /// bar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -56,7 +52,6 @@ error: unknown attribute `shouldpanic`
|
|||
|
|
||||
LL | / /// bar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -68,7 +63,6 @@ error: unknown attribute `sHould_panic`
|
|||
|
|
||||
LL | / /// bar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -80,7 +74,6 @@ error: unknown attribute `no-run`
|
|||
|
|
||||
LL | / /// foobar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -92,7 +85,6 @@ error: unknown attribute `norun`
|
|||
|
|
||||
LL | / /// foobar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -104,7 +96,6 @@ error: unknown attribute `no_Run`
|
|||
|
|
||||
LL | / /// foobar
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -116,7 +107,6 @@ error: unknown attribute `test-harness`
|
|||
|
|
||||
LL | / /// b
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -128,7 +118,6 @@ error: unknown attribute `testharness`
|
|||
|
|
||||
LL | / /// b
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -140,7 +129,6 @@ error: unknown attribute `teSt_harness`
|
|||
|
|
||||
LL | / /// b
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -162,7 +150,6 @@ error: unknown attribute `rust2018`
|
|||
|
|
||||
LL | / /// b
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -173,7 +160,6 @@ error: unknown attribute `shouldpanic`
|
|||
|
|
||||
LL | / /// b
|
||||
... |
|
||||
LL | | /// boo
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | #![warn(missing_docs)]
|
||||
... |
|
||||
LL | |
|
||||
LL | | pub fn foo() {}
|
||||
| |_______________^
|
||||
|
|
||||
|
|
|
@ -272,7 +272,6 @@ error: unescaped backtick
|
|||
|
|
||||
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
|
||||
... |
|
||||
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
|
||||
LL | | /// level changes.
|
||||
| |______________________^
|
||||
|
|
||||
|
@ -288,7 +287,6 @@ error: unescaped backtick
|
|||
|
|
||||
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
|
||||
... |
|
||||
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
|
||||
LL | | /// level changes.
|
||||
| |______________________^
|
||||
|
|
||||
|
@ -302,7 +300,6 @@ error: unescaped backtick
|
|||
|
|
||||
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
|
||||
... |
|
||||
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
|
||||
LL | | /// level changes.
|
||||
| |______________________^
|
||||
|
|
||||
|
@ -318,7 +315,6 @@ error: unescaped backtick
|
|||
|
|
||||
LL | / /// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
|
||||
... |
|
||||
LL | | /// [`rebuild_interest_cache`][rebuild] is called after the value of the max
|
||||
LL | | /// level changes.
|
||||
| |______________________^
|
||||
|
|
||||
|
|
|
@ -19,7 +19,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | Service<AssocType = <Bug as Foo>::OnlyFoo>
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_^ the trait `Foo` is not implemented for `Bug`
|
||||
|
|
||||
|
|
|
@ -23,7 +23,6 @@ LL | |
|
|||
LL | | let block = async {
|
||||
LL | | return 0u8;
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_^ expected `u8`, found `()`
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ LL | |
|
|||
LL | | if true {
|
||||
LL | | false
|
||||
... |
|
||||
LL | |
|
||||
LL | | })
|
||||
| |_____^ expected `bool`, found `Option<()>`
|
||||
|
|
||||
|
|
|
@ -45,7 +45,6 @@ LL | | let _ = #[collapse_debuginfo(yes)] || { };
|
|||
LL | |
|
||||
LL | | #[collapse_debuginfo(yes)]
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_- not a macro definition
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ LL | |
|
|||
LL | | fn bar() {
|
||||
LL | | fn foo() {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
@ -66,7 +65,6 @@ LL | |
|
|||
LL | | fn bar() {
|
||||
LL | | fn foo() {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
@ -124,7 +122,6 @@ LL | |
|
|||
LL | | fn bar() {
|
||||
LL | | fn foo() {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
@ -173,7 +170,6 @@ LL | |
|
|||
LL | | fn bar() {
|
||||
LL | | fn foo() {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | m[0] += 10;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | m[0] += 10;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let p = t.0.0;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let p = t.0.0;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", p);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -49,7 +48,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", p);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = p.x;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = p.x;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = a.b.c;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = a.b.c;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = a.b;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let _x = a.b;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", p.x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", p.x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", t.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", t.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -26,7 +26,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if let Info::Point(_, _, str) = point {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -59,7 +58,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | if let Info::Point(_, _, str) = point {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let x = &p.a.p.x;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -44,7 +43,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let x = &p.a.p.x;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let x = &t.0.0.0;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -44,7 +43,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | let x = &t.0.0.0;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("This uses new capture analyysis to capture s={}", s);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("This uses new capture analyysis to capture s={}", s);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | unsafe { u.value }
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | unsafe { u.value }
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -24,7 +24,6 @@ error: First Pass analysis includes:
|
|||
LL | let x = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -40,7 +39,6 @@ error: Min Capture analysis includes:
|
|||
LL | let x = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -56,7 +54,6 @@ error: First Pass analysis includes:
|
|||
LL | let c = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -72,7 +69,6 @@ error: Min Capture analysis includes:
|
|||
LL | let c = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -24,7 +23,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -64,7 +62,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -87,7 +84,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -138,7 +134,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -156,7 +151,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match variant {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -174,7 +168,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -192,7 +185,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -210,7 +202,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -228,7 +219,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -246,7 +236,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -264,7 +253,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -281,8 +269,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | | match slice {
|
||||
LL | | [..] => {},
|
||||
LL | | _ => {}
|
||||
LL | | }
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
||||
|
|
|
@ -139,8 +139,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | t.0.0 = "new S".into();
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -157,8 +156,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | t.0.0 = "new S".into();
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -175,8 +173,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | *ref_s += 10;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -193,8 +190,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | *ref_s += 10;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -211,8 +207,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | t.0.0 = "new s".into();
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -229,8 +224,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | t.0.0 = "new s".into();
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -247,8 +241,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = t.0.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -265,8 +258,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = t.0.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -283,8 +275,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = t.0.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -301,8 +292,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = t.0.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -319,8 +309,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = b.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -337,8 +326,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | let _t = b.0;
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -355,8 +343,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", b.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -373,8 +360,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", b.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -391,8 +377,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", t.1.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -409,8 +394,7 @@ LL | / move || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", t.1.0);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", w.p.x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", w.p.x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -60,7 +60,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{}", p.x);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -88,7 +87,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{}", p.x);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -15,8 +15,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", pent.points[5].x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -33,8 +32,7 @@ LL | / || {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{}", pent.points[5].x);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -36,7 +36,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", a.0);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -69,7 +68,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", a.0);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -102,7 +100,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", a.1);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -135,7 +132,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", a.1);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -168,7 +164,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", b.1);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -201,7 +196,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{:?}", b.1);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -118,7 +118,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{}", foo.x);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -141,7 +140,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | println!("{}", foo.x);
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | p.x += 10;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -39,7 +38,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | p.x += 10;
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -25,8 +25,7 @@ LL | / || unsafe {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{:?}", (*t.0).s);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -43,8 +42,7 @@ LL | / || unsafe {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | println!("{:?}", (*t.0).s);
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -33,7 +33,6 @@ error: First Pass analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -48,7 +47,6 @@ error: Min Capture analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -63,7 +61,6 @@ error: First Pass analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -78,7 +75,6 @@ error: Min Capture analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -93,7 +89,6 @@ error: First Pass analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
@ -108,7 +103,6 @@ error: Min Capture analysis includes:
|
|||
|
|
||||
LL | / || {
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<svg width="743px" height="830px" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="743px" height="758px" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
.fg { fill: #AAAAAA }
|
||||
.bg { background: #000000 }
|
||||
|
@ -35,79 +35,71 @@
|
|||
</tspan>
|
||||
<tspan x="10px" y="154px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
|
||||
</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 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>
|
||||
<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 x="10px" y="190px"><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 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 x="10px" y="208px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false => "</tspan>
|
||||
</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 => "</tspan>
|
||||
<tspan x="10px" y="226px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan>
|
||||
</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 x="10px" y="244px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="262px"><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">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan><tspan> ",</tspan>
|
||||
</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 x="10px" y="280px"><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 `&str`</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> ",</tspan>
|
||||
<tspan x="10px" y="298px">
|
||||
</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 `&str`</tspan>
|
||||
<tspan x="10px" y="316px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="334px">
|
||||
<tspan x="10px" y="334px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">--> </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="352px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
|
||||
<tspan x="10px" y="352px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
|
||||
</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 x="10px" y="370px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> let _ = match true {</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan>
|
||||
<tspan x="10px" y="388px"><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 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 x="10px" y="406px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> true => (</tspan>
|
||||
</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 x="10px" y="424px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan>
|
||||
</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 => (</tspan>
|
||||
<tspan x="10px" y="442px"><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 x="10px" y="460px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold"> _________________-</tspan>
|
||||
<tspan x="10px" y="460px"><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 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 x="10px" y="478px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</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> 1 // last line shown in multispan header</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> ),</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="514px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</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 class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan>
|
||||
</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 x="10px" y="532px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> false => "</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> ),</tspan>
|
||||
<tspan x="10px" y="550px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</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 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-009 bold">|</tspan>
|
||||
</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 => "</tspan>
|
||||
<tspan x="10px" y="586px"><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 x="10px" y="604px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">|</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold"> __________________^</tspan>
|
||||
<tspan x="10px" y="604px"><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 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 x="10px" y="622px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</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>
|
||||
<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 x="10px" y="658px"><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 `&str`</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="676px"><tspan class="fg-ansi256-012 bold">...</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">|</tspan>
|
||||
<tspan x="10px" y="676px">
|
||||
</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 x="10px" y="694px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</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> ",</tspan>
|
||||
<tspan x="10px" y="712px">
|
||||
</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 `&str`</tspan>
|
||||
<tspan x="10px" y="730px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="748px">
|
||||
</tspan>
|
||||
<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 x="10px" y="784px">
|
||||
</tspan>
|
||||
<tspan x="10px" y="802px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="820px">
|
||||
</tspan>
|
||||
</text>
|
||||
|
||||
|
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 7.8 KiB |
|
@ -1,4 +1,4 @@
|
|||
<svg width="743px" height="830px" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="743px" height="758px" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
.fg { fill: #AAAAAA }
|
||||
.bg { background: #000000 }
|
||||
|
@ -35,79 +35,71 @@
|
|||
</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 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 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>
|
||||
<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 x="10px" y="190px"><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 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 x="10px" y="208px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> false => "</tspan>
|
||||
</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 => "</tspan>
|
||||
<tspan x="10px" y="226px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan>
|
||||
</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 x="10px" y="244px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">‡</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┃</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">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┃</tspan><tspan> ",</tspan>
|
||||
</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 x="10px" y="280px"><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 `&str`</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> ",</tspan>
|
||||
<tspan x="10px" y="298px">
|
||||
</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 `&str`</tspan>
|
||||
<tspan x="10px" y="316px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="334px">
|
||||
<tspan x="10px" y="334px"><tspan> </tspan><tspan class="fg-ansi256-012 bold"> ╭▸ </tspan><tspan>$DIR/huge_multispan_highlight.rs:216:18</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="352px"><tspan class="fg-ansi256-009 bold">error[E0308]</tspan><tspan class="bold">: `match` arms have incompatible types</tspan>
|
||||
<tspan x="10px" y="352px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan>
|
||||
</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 x="10px" y="370px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> let _ = match true {</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="388px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan>
|
||||
<tspan x="10px" y="388px"><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 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 x="10px" y="406px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> true => (</tspan>
|
||||
</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 x="10px" y="424px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan>
|
||||
</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 => (</tspan>
|
||||
<tspan x="10px" y="442px"><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 x="10px" y="460px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">┌─────────────────┘</tspan>
|
||||
<tspan x="10px" y="460px"><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 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 x="10px" y="478px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">‡</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</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> 1 // last line shown in multispan header</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> ),</tspan>
|
||||
</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 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 class="fg-ansi256-012 bold">this is found to be of type `{integer}`</tspan>
|
||||
</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 x="10px" y="532px"><tspan class="fg-ansi256-012 bold">LL</tspan><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> false => "</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> ),</tspan>
|
||||
<tspan x="10px" y="550px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</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 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-009 bold">┃</tspan>
|
||||
</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 => "</tspan>
|
||||
<tspan x="10px" y="586px"><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 x="10px" y="604px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">│</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┏━━━━━━━━━━━━━━━━━━┛</tspan>
|
||||
<tspan x="10px" y="604px"><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 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 x="10px" y="622px"><tspan> </tspan><tspan class="fg-ansi256-012 bold">‡</tspan><tspan> </tspan><tspan class="fg-ansi256-009 bold">┃</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>
|
||||
<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 x="10px" y="658px"><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 `&str`</tspan>
|
||||
</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 x="10px" y="676px">
|
||||
</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 x="10px" y="694px"><tspan class="fg-ansi256-009 bold">error</tspan><tspan class="bold">: aborting due to 2 previous errors</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> ",</tspan>
|
||||
<tspan x="10px" y="712px">
|
||||
</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 `&str`</tspan>
|
||||
<tspan x="10px" y="730px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="748px">
|
||||
</tspan>
|
||||
<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 x="10px" y="784px">
|
||||
</tspan>
|
||||
<tspan x="10px" y="802px"><tspan class="bold">For more information about this error, try `rustc --explain E0308`.</tspan>
|
||||
</tspan>
|
||||
<tspan x="10px" y="820px">
|
||||
</tspan>
|
||||
</text>
|
||||
|
||||
|
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 8.2 KiB |
|
@ -25,7 +25,6 @@ LL | | struct Foo<const N: usize>;
|
|||
LL | |
|
||||
LL | | impl<const N: usize> Foo<N> {
|
||||
... |
|
||||
LL | |
|
||||
LL | | }]>;
|
||||
| |__^
|
||||
|
|
||||
|
|
|
@ -3,7 +3,6 @@ warning: constant evaluation is taking a long time
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ the const evaluator is currently interpreting this expression
|
||||
|
|
||||
|
@ -18,7 +17,6 @@ warning: constant evaluation is taking a long time
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ the const evaluator is currently interpreting this expression
|
||||
|
|
||||
|
@ -33,7 +31,6 @@ warning: constant evaluation is taking a long time
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ the const evaluator is currently interpreting this expression
|
||||
|
|
||||
|
@ -48,7 +45,6 @@ warning: constant evaluation is taking a long time
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ the const evaluator is currently interpreting this expression
|
||||
|
|
||||
|
@ -63,7 +59,6 @@ warning: constant evaluation is taking a long time
|
|||
|
|
||||
LL | / loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_____^ the const evaluator is currently interpreting this expression
|
||||
|
|
||||
|
|
|
@ -12,8 +12,7 @@ LL | |bar| {
|
|||
LL | |
|
||||
LL | |
|
||||
LL | | if bar {
|
||||
LL | | yield bar;
|
||||
LL | | }
|
||||
... |
|
||||
LL | | }
|
||||
| |_____- return type was inferred to be `{coroutine@$DIR/issue-88653.rs:15:5: 15:10}` here
|
||||
|
|
||||
|
|
|
@ -7,7 +7,6 @@ LL | | loop {
|
|||
LL | | if let true = true {
|
||||
LL | | match Enum::A(String::new()) {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -5,7 +5,6 @@ LL | #[coroutine] static || {
|
|||
| __________________^
|
||||
LL | | loop {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | | Ok::<_, ()>(
|
|||
LL | | Err::<(), _>(
|
||||
LL | | Ok::<_, ()>(
|
||||
... |
|
||||
LL | | )
|
||||
LL | | )
|
||||
| |_____^ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL │ ┃ Ok::<_, ()>(
|
|||
LL │ ┃ Err::<(), _>(
|
||||
LL │ ┃ Ok::<_, ()>(
|
||||
‡ ┃
|
||||
LL │ ┃ )
|
||||
LL │ ┃ )
|
||||
│ ┗━━━━━┛ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
|
||||
╰╴
|
||||
|
|
|
@ -23,7 +23,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `x` invokes this custom destructor
|
||||
|
@ -31,7 +30,6 @@ note: `x` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
@ -66,7 +64,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `x` invokes this custom destructor
|
||||
|
@ -74,7 +71,6 @@ note: `x` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
@ -104,7 +100,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `x` invokes this custom destructor
|
||||
|
@ -112,7 +107,6 @@ note: `x` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
@ -142,7 +136,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `future` invokes this custom destructor
|
||||
|
@ -150,7 +143,6 @@ note: `future` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
@ -202,7 +194,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `x` invokes this custom destructor
|
||||
|
@ -210,7 +201,6 @@ note: `x` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
@ -282,7 +272,6 @@ note: `#1` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
note: `_x` invokes this custom destructor
|
||||
|
@ -290,7 +279,6 @@ note: `_x` invokes this custom destructor
|
|||
|
|
||||
LL | / impl Drop for LoudDropper {
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_^
|
||||
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
|
||||
|
|
|
@ -55,7 +55,6 @@ LL | #[inline]
|
|||
LL |
|
||||
LL | / mod inline {
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a function or closure
|
||||
|
||||
|
@ -70,7 +69,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | mod inner { #![no_link] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not an `extern crate` item
|
||||
|
||||
|
@ -85,7 +83,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | mod inner { #![export_name="2200"] }
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_- not a free function, impl method or static
|
||||
|
||||
|
@ -99,7 +96,6 @@ LL | / mod repr {
|
|||
LL | |
|
||||
LL | | mod inner { #![repr(C)] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a struct, enum, or union
|
||||
|
||||
|
@ -113,7 +109,6 @@ LL | / mod repr_rust {
|
|||
LL | |
|
||||
LL | | mod inner { #![repr(Rust)] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a struct, enum, or union
|
||||
|
||||
|
|
|
@ -228,7 +228,6 @@ LL | / mod no_mangle {
|
|||
LL | |
|
||||
LL | | mod inner { #![no_mangle] }
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }
|
||||
| |_- not a free function, impl method or static
|
||||
|
|
||||
|
@ -269,7 +268,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | mod inner { #![cold] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a function definition
|
||||
|
|
||||
|
@ -286,7 +284,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | #[link_name = "1900"]
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a foreign function or static
|
||||
|
|
||||
|
@ -303,7 +300,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | mod inner { #![link_section="1800"] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not a function or static
|
||||
|
|
||||
|
@ -320,7 +316,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | mod inner { #![link()] }
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- not an `extern` block
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | / fn main() {
|
|||
LL | | |_: [_; return || {}]| {};
|
||||
| | ^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
@ -18,7 +17,6 @@ LL | / fn main() {
|
|||
LL | | [(); return || {}];
|
||||
| | ^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
@ -30,7 +28,6 @@ LL | / fn main() {
|
|||
LL | | [(); return |ice| {}];
|
||||
| | ^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
@ -41,8 +38,7 @@ LL | / fn main() {
|
|||
... |
|
||||
LL | | [(); return while let Some(n) = Some(0) {}];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ LL | | #![warn(missing_docs)]
|
|||
LL | |
|
||||
LL | | #[macro_use]
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
|
||||
|
|
|
@ -31,8 +31,7 @@ LL | | 0;
|
|||
| | ||
|
||||
| | |help: consider removing this semicolon
|
||||
| | expected integer, found `()`
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____- `if` and `else` have incompatible types
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ LL | | 6 => 'b',
|
|||
LL | |
|
||||
LL | | _ => 42,
|
||||
| | ^^ expected `char`, found integer
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____- `match` arms have incompatible types
|
||||
|
||||
|
@ -54,8 +53,7 @@ LL | | x
|
|||
LL | | },
|
||||
LL | | None => {}
|
||||
| | ^^ expected `u32`, found `()`
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____- `match` arms have incompatible types
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@ LL | / unsafe {
|
|||
LL | |
|
||||
LL | | let x: *const ! = 0 as _;
|
||||
LL | | let _: ! = *x;
|
||||
LL | | // Since `*x` "diverges" in HIR, but doesn't count as a read in MIR, this
|
||||
LL | | // is unsound since we act as if it diverges but it doesn't.
|
||||
... |
|
||||
LL | | }
|
||||
| |_____^ expected `!`, found `()`
|
||||
|
|
||||
|
|
|
@ -219,7 +219,6 @@ LL | | A(
|
|||
LL | | A(_, a) |
|
||||
LL | | B(b),
|
||||
... |
|
||||
LL | |
|
||||
LL | | ) |
|
||||
| |_____________^ pattern doesn't bind `c`
|
||||
LL | V3(c),
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | | #![feature(rustc_attrs)]
|
|||
LL | |
|
||||
LL | | #[rustc_effective_visibility]
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | / #![feature(staged_api)]
|
|||
LL | |
|
||||
LL | | pub mod m {}
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | pub trait Trait {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | pub trait Trait {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | pub trait Trait {
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -7,8 +7,7 @@ LL | / unsafe {
|
|||
LL | |
|
||||
LL | | let x: *const ! = 0 as _;
|
||||
LL | | &raw const *x;
|
||||
LL | | // Since `*x` is `!`, HIR typeck used to think that it diverges
|
||||
LL | | // and allowed the block to coerce to any value, leading to UB.
|
||||
... |
|
||||
LL | | }
|
||||
| |_____^ expected type parameter `T`, found `()`
|
||||
|
|
||||
|
|
|
@ -6,7 +6,6 @@ LL | / fn main() {
|
|||
LL | | [(); return match 0 { n => n }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
@ -18,7 +17,6 @@ LL | / fn main() {
|
|||
LL | | [(); return match 0 { 0 => 0 }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
@ -30,7 +28,6 @@ LL | / fn main() {
|
|||
LL | | [(); return match () { 'a' => 0, _ => 0 }];
|
||||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_- ...not the enclosing function body
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ LL | / extern "C" {
|
|||
LL | |
|
||||
LL | | safe static TEST1: i32;
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ LL | |
|
|||
LL | |
|
||||
LL | | #[stable(feature = "a", since = "3.3.3")]
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ LL | | async_dummy();
|
|||
LL | | async_dummy()
|
||||
| | ^^^^^^^^^^^^^ expected `()`, found future
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____- `if` and `else` have incompatible types
|
||||
|
|
||||
|
@ -41,7 +40,6 @@ LL | | async_dummy();
|
|||
LL | | async_dummy2()
|
||||
| | ^^^^^^^^^^^^^^ expected `()`, found future
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____- `if` and `else` have incompatible types
|
||||
|
|
||||
|
@ -73,8 +71,7 @@ LL | | async_dummy()
|
|||
... |
|
||||
LL | | async_dummy2()
|
||||
| | ^^^^^^^^^^^^^^ expected future, found a different future
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____- `if` and `else` have incompatible types
|
||||
|
|
||||
|
|
|
@ -10,7 +10,6 @@ LL | | async_dummy();
|
|||
LL | | false => async_dummy(),
|
||||
| | ^^^^^^^^^^^^^ expected `()`, found future
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____- `match` arms have incompatible types
|
||||
|
|
||||
|
@ -41,7 +40,6 @@ LL | | async_dummy();
|
|||
LL | | false => async_dummy2(),
|
||||
| | ^^^^^^^^^^^^^^ expected `()`, found future
|
||||
... |
|
||||
LL | |
|
||||
LL | | };
|
||||
| |_____- `match` arms have incompatible types
|
||||
|
|
||||
|
@ -72,8 +70,7 @@ LL | | true => async_dummy(),
|
|||
LL | |
|
||||
LL | | false => async_dummy2(),
|
||||
| | ^^^^^^^^^^^^^^ expected future, found a different future
|
||||
LL | |
|
||||
LL | |
|
||||
... |
|
||||
LL | | };
|
||||
| |_____- `match` arms have incompatible types
|
||||
|
|
||||
|
|
|
@ -14,7 +14,6 @@ LL | |
|
|||
LL | | x?
|
||||
| | ^^ expected `()`, found integer
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_____- expected this to be `()`
|
||||
|
|
||||
|
|
|
@ -27,7 +27,6 @@ LL | async const fn bar(&self) {
|
|||
| _____`async` because of this
|
||||
| |
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_____-
|
||||
|
||||
|
@ -36,7 +35,6 @@ error[E0407]: method `bar` is not a member of trait `MyTrait`
|
|||
|
|
||||
LL | / async const fn bar(&self) {
|
||||
... |
|
||||
LL | |
|
||||
LL | | }
|
||||
| |_____^ not a member of trait `MyTrait`
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | | Assume {
|
|||
LL | | alignment: false,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_maybe_transmutable`
|
||||
help: consider removing the leading `&`-reference
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -38,7 +37,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -60,7 +58,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -82,7 +79,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -104,7 +100,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -126,7 +121,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -148,7 +142,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -170,7 +163,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -192,7 +184,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -214,7 +205,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -236,7 +226,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -258,7 +247,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -280,7 +268,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -302,7 +289,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -324,7 +310,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -346,7 +331,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -368,7 +352,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -390,7 +373,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -412,7 +394,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
@ -434,7 +415,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: true,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_transmutable`
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: false,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_maybe_transmutable`
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ LL | | Assume {
|
|||
LL | | alignment: true,
|
||||
LL | | lifetimes: false,
|
||||
... |
|
||||
LL | | }
|
||||
LL | | }>
|
||||
| |__________^ required by this bound in `is_maybe_transmutable`
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue