about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlona Enraght-Moony <code@alona.page>2025-04-20 11:28:16 +0000
committerAlona Enraght-Moony <code@alona.page>2025-04-20 11:28:16 +0000
commitc7e976eb1e4ba7590efd19a29a6a1eba23eb352a (patch)
treee3a280e47d56a3fd789633a024b24a28aa765689
parent49e5e4e3a5610c240a717cb99003a5d5d3356679 (diff)
downloadrust-c7e976eb1e4ba7590efd19a29a6a1eba23eb352a.tar.gz
rust-c7e976eb1e4ba7590efd19a29a6a1eba23eb352a.zip
rustdoc-json: Improve test for auto-trait impls
-rw-r--r--tests/rustdoc-json/impls/auto.rs6
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;