rustdoc: use the same URL escape rules for fragments as for examples
This commit is contained in:
parent
658fad6c55
commit
5f98a7f00e
8 changed files with 68 additions and 78 deletions
|
@ -6,13 +6,13 @@
|
|||
pub trait Foo {}
|
||||
|
||||
// @has foo/trait.Foo.html
|
||||
// @has - '//section[@id="impl-Foo-for-(T%2C)"]/h3' 'impl<T> Foo for (T₁, T₂, …, Tₙ)'
|
||||
// @has - '//section[@id="impl-Foo-for-(T,)"]/h3' 'impl<T> Foo for (T₁, T₂, …, Tₙ)'
|
||||
#[doc(fake_variadic)]
|
||||
impl<T> Foo for (T,) {}
|
||||
|
||||
pub trait Bar {}
|
||||
|
||||
// @has foo/trait.Bar.html
|
||||
// @has - '//section[@id="impl-Bar-for-(U%2C)"]/h3' 'impl<U: Foo> Bar for (U₁, U₂, …, Uₙ)'
|
||||
// @has - '//section[@id="impl-Bar-for-(U,)"]/h3' 'impl<U: Foo> Bar for (U₁, U₂, …, Uₙ)'
|
||||
#[doc(fake_variadic)]
|
||||
impl<U: Foo> Bar for (U,) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue