Skip to content

Commit 0dfe70f

Browse files
committed
Change test to not trigger emoji error
This change is needed to land rust-lang/rust#88781, as it changes the handling of emojis in source code to treat them as identifiers.
1 parent e1fb176 commit 0dfe70f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/testsuite/doc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,17 +803,15 @@ fn output_not_captured() {
803803
"a/src/lib.rs",
804804
"
805805
/// ```
806-
///
806+
/// `
807807
/// ```
808808
pub fn foo() {}
809809
",
810810
)
811811
.build();
812812

813813
p.cargo("doc")
814-
.without_status()
815-
.with_stderr_contains("[..]☃")
816-
.with_stderr_contains(r"[..]unknown start of token: \u{2603}")
814+
.with_stderr_contains("[..]unknown start of token: `")
817815
.run();
818816
}
819817

0 commit comments

Comments
 (0)