rust/tests/rustdoc-json
Chris Denton df9e15e69f
Rollup merge of #140076 - aDotInTheVoid:jsondocline, r=GuillaumeGomez
jsondocck: Require command is at start of line

In one place we use `///``@``` instead of `//``@`.`` The test-runner allowed it, but it probably shouldn't. Ran into by ``@lolbinarycat`` in https://github.com/rust-lang/rust/pull/132748#issuecomment-2816469322:

```
error: unknown disambiguator `?(`
##[error] --> /checkout/tests/rustdoc-json/fns/return_type_alias.rs:3:25
  |
3 | ///@ set foo = "$.index[?(``@.name=='Foo')].id"``
  |                         ^^
  |
```

Maybe it's also worth erroring on this like we added in #137103

r? ``@GuillaumeGomez``
2025-04-21 18:53:19 +00:00
..
attrs rustdoc-json: Add test for #[automatically_derived] attribute 2025-03-31 20:42:49 +00:00
auxiliary rustdoc-json: Rename Path::name to path, and give it path (again). 2025-01-22 19:29:48 +00:00
enums rustdoc: Use own logic to print #[repr(..)] attributes in JSON output. 2025-03-22 18:47:12 +00:00
fn_pointer tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
fns jsondocck: Require command is at start of line 2025-04-20 11:37:00 +00:00
generic-associated-types tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
impls rustdoc-json: Improve test for auto-trait impls 2025-04-20 11:28:16 +00:00
intra-doc-links tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
lifetime tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
methods tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
primitives tests/rustdoc-json: change assertions to use RFC 9535 jsonpath 2025-03-21 00:48:09 +00:00
reexport tests/rustdoc-json: change assertions to use RFC 9535 jsonpath 2025-03-21 00:48:09 +00:00
statics tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
structs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
targets rustdoc: Output target feature information 2025-04-15 21:26:14 -05:00
traits tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
type tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
unions tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
assoc_items.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
assoc_type.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
blanket_impls.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
doc_hidden_failure.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
generic_impl.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
glob_import.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
impl-trait-in-assoc-type.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
impl-trait-precise-capturing.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
keyword.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
keyword_private.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
nested.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
non_lifetime_binders.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
output_generics.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
path_name.rs tests/rustdoc-json: replace $.paths[*][? with $.paths[? 2025-03-21 00:48:09 +00:00
pub_mod_in_private_mod.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
return-type-notation.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
return_private.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
span.rs Add regression test for span 1-indexed check 2025-04-18 20:32:40 +02:00
stripped_modules.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
the_smallest.rs rustdoc-json: discard non-local inherent impls 2024-08-05 11:19:22 +01:00
trait_alias.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00
type_alias.rs tests/rustdoc-json: replace $.index[*][? with $.index[? 2025-03-21 00:48:09 +00:00