diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-21 18:53:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-21 18:53:18 +0000 |
| commit | a37f4236cd5aa8bb8774aac1347efecb26388aa1 (patch) | |
| tree | 1b56125d079f0014d7721032aad4924fb8d9f04c | |
| parent | 96ac7d8b5e141ac7ccac7e7c2160dcacf7e24fc0 (diff) | |
| parent | c7e976eb1e4ba7590efd19a29a6a1eba23eb352a (diff) | |
| download | rust-a37f4236cd5aa8bb8774aac1347efecb26388aa1.tar.gz rust-a37f4236cd5aa8bb8774aac1347efecb26388aa1.zip | |
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```
| -rw-r--r-- | tests/rustdoc-json/impls/auto.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/rustdoc-json/impls/auto.rs b/tests/rustdoc-json/impls/auto.rs index ce47d1be690..5440301f965 100644 --- a/tests/rustdoc-json/impls/auto.rs +++ b/tests/rustdoc-json/impls/auto.rs @@ -17,6 +17,8 @@ impl Foo { // Testing spans, so all tests below code //@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 1]" //@ is "$.index[?(@.docs=='has span')].span.end" "[15, 2]" -// FIXME: this doesn't work due to https://github.com/freestrings/jsonpath/issues/91 -// is "$.index[?(@.inner.impl.is_synthetic==true)].span" null +//@ is "$.index[?(@.docs=='has span')].inner.impl.is_synthetic" false +//@ is "$.index[?(@.inner.impl.is_synthetic==true)].span" null +//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.for.resolved_path.path" '"Foo"' +//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.trait.path" '"Bar"' pub struct Foo; |
