]> git.lizzy.rs Git - rust.git/commit
Use XPATH notation to match against flattened nodes
authorPhilip Munksgaard <pmunksgaard@gmail.com>
Wed, 10 Oct 2018 19:04:52 +0000 (21:04 +0200)
committerPhilip Munksgaard <pmunksgaard@gmail.com>
Wed, 10 Oct 2018 19:04:52 +0000 (21:04 +0200)
commite8bc04e1c8e0e27bcc3e5915d465ca12b0254565
treee2721a135d012f9c6579ff5306dd083e99158468
parent28596ade7169abd483410b22a4bd8703c4ccc8f7
Use XPATH notation to match against flattened nodes

The generated code would look like `<code>impl <a href="...">Foo</a></code>`
which the plain text matcher doesn't match. But by using the XPATH notation, the
nodes are flattened and we can correctly assert that `impl Foo` does not occur
in the generated docs.
src/test/rustdoc/hidden-methods.rs