diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-03 17:36:27 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-02-03 17:58:26 -0700 |
| commit | 5f98a7f00e338c0985e7743be5b23dbd8f1039b3 (patch) | |
| tree | 93bf5c211f244b20af8f2336127b63fcbe9e704b /tests/rustdoc/const-generics/const-generics-docs.rs | |
| parent | 658fad6c5506f41c35b64fb1a22ceb0992697ff3 (diff) | |
| download | rust-5f98a7f00e338c0985e7743be5b23dbd8f1039b3.tar.gz rust-5f98a7f00e338c0985e7743be5b23dbd8f1039b3.zip | |
rustdoc: use the same URL escape rules for fragments as for examples
Diffstat (limited to 'tests/rustdoc/const-generics/const-generics-docs.rs')
| -rw-r--r-- | tests/rustdoc/const-generics/const-generics-docs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc/const-generics/const-generics-docs.rs b/tests/rustdoc/const-generics/const-generics-docs.rs index ade70bbe80d..7e27ef8d8e5 100644 --- a/tests/rustdoc/const-generics/const-generics-docs.rs +++ b/tests/rustdoc/const-generics/const-generics-docs.rs @@ -21,8 +21,8 @@ pub use extern_crate::WTrait; // 'pub trait Trait<const N: usize>' // @has - '//*[@id="impl-Trait%3C1%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<1> for u8' // @has - '//*[@id="impl-Trait%3C2%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<2> for u8' -// @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<{1 + 2}> for u8' -// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3[@class="code-header"]' \ +// @has - '//*[@id="impl-Trait%3C%7B1+%2B+2%7D%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<{1 + 2}> for u8' +// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8;+N%5D"]//h3[@class="code-header"]' \ // 'impl<const N: usize> Trait<N> for [u8; N]' pub trait Trait<const N: usize> {} impl Trait<1> for u8 {} @@ -47,7 +47,7 @@ impl<const M: usize> Foo<M> where u8: Trait<M> { } } -// @has foo/struct.Bar.html '//*[@id="impl-Bar%3Cu8%2C%20M%3E"]/h3[@class="code-header"]' 'impl<const M: usize> Bar<u8, M>' +// @has foo/struct.Bar.html '//*[@id="impl-Bar%3Cu8,+M%3E"]/h3[@class="code-header"]' 'impl<const M: usize> Bar<u8, M>' impl<const M: usize> Bar<u8, M> { // @has - '//*[@id="method.hey"]' \ // 'pub fn hey<const N: usize>(&self) -> Foo<N>where u8: Trait<N>' |
