You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/formatter.rs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1666,7 +1666,7 @@ fn main() {
1666
1666
.annotation(AnnotationKind::Primary.span(89..90))
1667
1667
).element(
1668
1668
Level::NOTE
1669
-
.title("required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>`")
1669
+
.message("required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>`")
1670
1670
,
1671
1671
)];
1672
1672
@@ -1752,9 +1752,9 @@ fn main() {
1752
1752
.annotation(AnnotationKind::Primary.span(89..90))
1753
1753
).element(
1754
1754
Level::NOTE
1755
-
.title("required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>`")
1755
+
.message("required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>`")
1756
1756
).element(
1757
-
Level::NOTE.title("a second note"),
1757
+
Level::NOTE.message("a second note"),
1758
1758
)];
1759
1759
1760
1760
let expected = str![[r#"
@@ -1902,13 +1902,13 @@ fn main() {
1902
1902
)
1903
1903
).element(
1904
1904
Level::NOTE
1905
-
.title("expected struct `Atype<Btype<..., i32>, i32>`\n found enum `Result<Result<..., _>, _>`")
1905
+
.message("expected struct `Atype<Btype<..., i32>, i32>`\n found enum `Result<Result<..., _>, _>`")
1906
1906
).element(
1907
1907
Level::NOTE
1908
-
.title("the full name for the type has been written to '$TEST_BUILD_DIR/$FILE.long-type-hash.txt'")
1908
+
.message("the full name for the type has been written to '$TEST_BUILD_DIR/$FILE.long-type-hash.txt'")
1909
1909
).element(
1910
1910
Level::NOTE
1911
-
.title("consider using `--verbose` to print the full type name to the console")
1911
+
.message("consider using `--verbose` to print the full type name to the console")
1912
1912
,
1913
1913
)];
1914
1914
@@ -1986,7 +1986,7 @@ fn main() {
1986
1986
),
1987
1987
).element(
1988
1988
Level::NOTE
1989
-
.title("expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`\n found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`")
1989
+
.message("expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`\n found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`")
Level::NOTE.title("`Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated")),
1968
+
Level::NOTE.message("`Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated")),
1969
1969
Group::with_title(Level::HELP.title("you might have meant to use `Iterator::for_each`"))
1970
1970
.element(
1971
1971
Snippet::source(source)
@@ -2555,7 +2555,8 @@ fn mismatched_types1() {
2555
2555
),
2556
2556
)
2557
2557
.element(
2558
-
Level::NOTE.title("expected reference `&[u8]`\n found reference `&'static str`"),
2558
+
Level::NOTE
2559
+
.message("expected reference `&[u8]`\n found reference `&'static str`"),
2559
2560
),
2560
2561
];
2561
2562
@@ -2607,7 +2608,7 @@ fn mismatched_types2() {
2607
2608
)
2608
2609
.element(
2609
2610
Level::NOTE
2610
-
.title("expected reference `&str`\n found reference `&'static [u8; 0]`"),
2611
+
.message("expected reference `&str`\n found reference `&'static [u8; 0]`"),
0 commit comments