Skip to content

Commit c7e976e

Browse files
committed
rustdoc-json: Improve test for auto-trait impls
1 parent 49e5e4e commit c7e976e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/rustdoc-json/impls/auto.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ impl Foo {
1717
// Testing spans, so all tests below code
1818
//@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 1]"
1919
//@ is "$.index[?(@.docs=='has span')].span.end" "[15, 2]"
20-
// FIXME: this doesn't work due to https://github.com/freestrings/jsonpath/issues/91
21-
// is "$.index[?(@.inner.impl.is_synthetic==true)].span" null
20+
//@ is "$.index[?(@.docs=='has span')].inner.impl.is_synthetic" false
21+
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].span" null
22+
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.for.resolved_path.path" '"Foo"'
23+
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.trait.path" '"Bar"'
2224
pub struct Foo;

0 commit comments

Comments
 (0)