rustdoc-search: add unbox flag to Result aliases

Fixes #139665
This commit is contained in:
Michael Howell
2025-04-11 11:35:10 -07:00
parent 71b68da1bd
commit e013cf8afc
6 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// exact-check
// Test case for https://github.com/rust-lang/rust/issues/139665
// make sure that std::io::Result and std::thread::Result get unboxed
const EXPECTED = [
{
query: "File -> Metadata",
others: [
{ path: "std::fs::File", name: "metadata" },
{ path: "std::fs::File", name: "metadata_at" },
]
},
{
query: "JoinHandle<T> -> T",
others: [
{ path: "std::thread::JoinHandle", name: "join" },
]
},
];