about summary refs log tree commit diff
path: root/src/test/rustdoc-json/traits
diff options
context:
space:
mode:
authorNixon Enraght-Moony <nixon.emoony@gmail.com>2022-09-10 01:30:47 +0100
committerNixon Enraght-Moony <nixon.emoony@gmail.com>2022-09-10 01:30:47 +0100
commit5634b26ed68efdbf0b25a4df7823cb47ef65c49e (patch)
treedd8c10dec3aaa342ea1b69bf021acaa136e1f45a /src/test/rustdoc-json/traits
parent98f3001eecbe4cbd091c10ffab45b4c164bb507b (diff)
downloadrust-5634b26ed68efdbf0b25a4df7823cb47ef65c49e.tar.gz
rust-5634b26ed68efdbf0b25a4df7823cb47ef65c49e.zip
Rustdoc-Json Tests: Use `@is` and `@ismany` more often.
Diffstat (limited to 'src/test/rustdoc-json/traits')
-rw-r--r--src/test/rustdoc-json/traits/has_body.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/rustdoc-json/traits/has_body.rs b/src/test/rustdoc-json/traits/has_body.rs
index 4565aba6587..a57cb97d4a6 100644
--- a/src/test/rustdoc-json/traits/has_body.rs
+++ b/src/test/rustdoc-json/traits/has_body.rs
@@ -1,21 +1,21 @@
 // @has "$.index[*][?(@.name=='Foo')]"
 pub trait Foo {
-    // @has "$.index[*][?(@.name=='no_self')].inner.has_body" false
+    // @is "$.index[*][?(@.name=='no_self')].inner.has_body" false
     fn no_self();
-    // @has "$.index[*][?(@.name=='move_self')].inner.has_body" false
+    // @is "$.index[*][?(@.name=='move_self')].inner.has_body" false
     fn move_self(self);
-    // @has "$.index[*][?(@.name=='ref_self')].inner.has_body" false
+    // @is "$.index[*][?(@.name=='ref_self')].inner.has_body" false
     fn ref_self(&self);
 
-    // @has "$.index[*][?(@.name=='no_self_def')].inner.has_body" true
+    // @is "$.index[*][?(@.name=='no_self_def')].inner.has_body" true
     fn no_self_def() {}
-    // @has "$.index[*][?(@.name=='move_self_def')].inner.has_body" true
+    // @is "$.index[*][?(@.name=='move_self_def')].inner.has_body" true
     fn move_self_def(self) {}
-    // @has "$.index[*][?(@.name=='ref_self_def')].inner.has_body" true
+    // @is "$.index[*][?(@.name=='ref_self_def')].inner.has_body" true
     fn ref_self_def(&self) {}
 }
 
 pub trait Bar: Clone {
-    // @has "$.index[*][?(@.name=='method')].inner.has_body" false
+    // @is "$.index[*][?(@.name=='method')].inner.has_body" false
     fn method(&self, param: usize);
 }