diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-03-21 16:44:06 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-03-30 22:56:52 +0200 |
| commit | 3ef8d2d6075bcac4975b271684ebc6e67c20c83e (patch) | |
| tree | 300fa357a66d99e438c527d978432f84e6193db1 /tests/rustdoc/primitive-slice-auto-trait.rs | |
| parent | f40aa598e97465feb753abbb18268a368ef0118e (diff) | |
| download | rust-3ef8d2d6075bcac4975b271684ebc6e67c20c83e.tar.gz rust-3ef8d2d6075bcac4975b271684ebc6e67c20c83e.zip | |
Update tests for rustc_doc_primitive
Diffstat (limited to 'tests/rustdoc/primitive-slice-auto-trait.rs')
| -rw-r--r-- | tests/rustdoc/primitive-slice-auto-trait.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc/primitive-slice-auto-trait.rs b/tests/rustdoc/primitive-slice-auto-trait.rs index 77922414676..ba15a73ca1d 100644 --- a/tests/rustdoc/primitive-slice-auto-trait.rs +++ b/tests/rustdoc/primitive-slice-auto-trait.rs @@ -1,7 +1,7 @@ // compile-flags: --crate-type lib --edition 2018 #![crate_name = "foo"] -#![feature(rustdoc_internals)] +#![feature(rustc_attrs)] // @has foo/primitive.slice.html '//a[@class="primitive"]' 'slice' // @has - '//h1' 'Primitive Type slice' @@ -9,6 +9,6 @@ // @has - '//h2[@id="synthetic-implementations"]' 'Auto Trait Implementations' // @has - '//div[@id="synthetic-implementations-list"]//h3' 'impl<T> Send for [T]where T: Send' // @has - '//div[@id="synthetic-implementations-list"]//h3' 'impl<T> Sync for [T]where T: Sync' -#[doc(primitive = "slice")] +#[rustc_doc_primitive = "slice"] /// this is a test! mod slice_prim {} |
