about summary refs log tree commit diff
path: root/tests/rustdoc/const-generics/const-impl.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-03-20 17:56:45 -0700
committerMichael Howell <michael@notriddle.com>2023-09-21 15:16:44 -0700
commit3583e86674749c279e7edd96641255bbf8595de1 (patch)
treeea75abe39d43a6ca31cf23c5a8162558c9849ae9 /tests/rustdoc/const-generics/const-impl.rs
parent3fbfe2bca5e0227e2b9c9363558dc6a5dec54351 (diff)
downloadrust-3583e86674749c279e7edd96641255bbf8595de1.tar.gz
rust-3583e86674749c279e7edd96641255bbf8595de1.zip
rustdoc: update test cases for changes to the printing style
This whole thing changes it so that the JS and the UI both use
rustc's own path printing to handle the impl IDs. This results in
the format changing a little bit; full paths are used in spots
where they aren't strictly necessary, and the path sometimes uses
generics where the old system used the trait's own name, but it
shouldn't matter since the orphan rules will prevent it anyway.
Diffstat (limited to 'tests/rustdoc/const-generics/const-impl.rs')
-rw-r--r--tests/rustdoc/const-generics/const-impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/const-generics/const-impl.rs b/tests/rustdoc/const-generics/const-impl.rs
index 152b643bf4b..b424ea4b33c 100644
--- a/tests/rustdoc/const-generics/const-impl.rs
+++ b/tests/rustdoc/const-generics/const-impl.rs
@@ -31,7 +31,7 @@ impl<T> VSet<T, { Order::Unsorted }> {
 
 pub struct Escape<const S: &'static str>;
 
-// @has foo/struct.Escape.html '//*[@id="impl-Escape%3Cr%23%22%3Cscript%3Ealert(%22Escape%22);%3C/script%3E%22%23%3E"]/h3[@class="code-header"]' 'impl Escape<r#"<script>alert("Escape");</script>"#>'
+// @has foo/struct.Escape.html '//*[@id="impl-Escape%3C%22%3Cscript%3Ealert(%5C%22Escape%5C%22);%3C/script%3E%22%3E"]/h3[@class="code-header"]' 'impl Escape<r#"<script>alert("Escape");</script>"#>'
 impl Escape<r#"<script>alert("Escape");</script>"#> {
     pub fn f() {}
 }