Skip to content

Commit a37f423

Browse files
authored
Rollup merge of #140074 - aDotInTheVoid:auto-test, r=GuillaumeGomez
rustdoc-json: Improve test for auto-trait impls The TODO is fixable now due-to #138763. While I was here I realized there's probably a a few more things we should also test. r? ```@GuillaumeGomez```
2 parents 96ac7d8 + c7e976e commit a37f423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: 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)