about summary refs log tree commit diff
path: root/tests/rustdoc-json
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-05 18:36:01 +0200
committerGitHub <noreply@github.com>2024-08-05 18:36:01 +0200
commit376a6f9f431c152c7899d18281268024cb4a8d67 (patch)
tree5ad00384841b9aea6e4c1efc7531d0edd776ad0b /tests/rustdoc-json
parent83e9b93c90bcd7f52d17d09b52e3a2eff707c46a (diff)
parent7499e21a1ef918ed503fb8c4e5ab5c808d71bb44 (diff)
downloadrust-376a6f9f431c152c7899d18281268024cb4a8d67.tar.gz
rust-376a6f9f431c152c7899d18281268024cb4a8d67.zip
Rollup merge of #128385 - its-the-shrimp:fix_114039, r=aDotInTheVoid
rustdoc-json: discard non-local inherent impls for primitives

Fixes #114039
at least it should
r? `@aDotInTheVoid`
Diffstat (limited to 'tests/rustdoc-json')
-rw-r--r--tests/rustdoc-json/the_smallest.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-json/the_smallest.rs b/tests/rustdoc-json/the_smallest.rs
new file mode 100644
index 00000000000..2f6f91e6e27
--- /dev/null
+++ b/tests/rustdoc-json/the_smallest.rs
@@ -0,0 +1,5 @@
+// This test asserts that `index` is not polluted with unrelated items.
+// See https://github.com/rust-lang/rust/issues/114039
+
+//@ count "$.index[*]" 1
+fn main() {}