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/primitive.rs | |
| parent | f40aa598e97465feb753abbb18268a368ef0118e (diff) | |
| download | rust-3ef8d2d6075bcac4975b271684ebc6e67c20c83e.tar.gz rust-3ef8d2d6075bcac4975b271684ebc6e67c20c83e.zip | |
Update tests for rustc_doc_primitive
Diffstat (limited to 'tests/rustdoc/primitive/primitive.rs')
| -rw-r--r-- | tests/rustdoc/primitive/primitive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc/primitive/primitive.rs b/tests/rustdoc/primitive/primitive.rs index 516c7c0c6fe..32af2636c18 100644 --- a/tests/rustdoc/primitive/primitive.rs +++ b/tests/rustdoc/primitive/primitive.rs @@ -1,6 +1,6 @@ #![crate_name = "foo"] -#![feature(rustdoc_internals)] +#![feature(rustc_attrs)] // @has foo/index.html '//h2[@id="primitives"]' 'Primitive Types' // @has foo/index.html '//a[@href="primitive.i32.html"]' 'i32' @@ -11,11 +11,11 @@ // @has foo/primitive.i32.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'this is a test!' // @has foo/index.html '//a/@href' '../foo/index.html' // @!has foo/index.html '//span' '🔒' -#[doc(primitive = "i32")] +#[rustc_doc_primitive = "i32"] /// this is a test! mod i32{} // @has foo/primitive.bool.html '//section[@id="main-content"]//div[@class="docblock"]//p' 'hello' -#[doc(primitive = "bool")] +#[rustc_doc_primitive = "bool"] /// hello mod bool {} |
