]> git.proxmox.com Git - cargo.git/commitdiff
Change test to not trigger emoji error
authorEsteban Kuber <esteban@kuber.com.ar>
Wed, 24 Nov 2021 05:59:42 +0000 (05:59 +0000)
committerEsteban Kuber <esteban@kuber.com.ar>
Wed, 24 Nov 2021 17:07:40 +0000 (17:07 +0000)
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.

tests/testsuite/doc.rs

index 965e7eaa9bd6261d46c337f5433b5c8061580016..6bcdd2d02cf801ee89da57251a3abf4c3c244672 100644 (file)
@@ -803,7 +803,7 @@ fn output_not_captured() {
             "a/src/lib.rs",
             "
             /// ```
-            /// 
+            /// `
             /// ```
             pub fn foo() {}
         ",
@@ -811,9 +811,7 @@ fn output_not_captured() {
         .build();
 
     p.cargo("doc")
-        .without_status()
-        .with_stderr_contains("[..]☃")
-        .with_stderr_contains(r"[..]unknown start of token: \u{2603}")
+        .with_stderr_contains("[..]unknown start of token: `")
         .run();
 }