Use #[doc(hidden)]
instead of #[allow(missing_docs)]
on the const generated for #[test]
This commit is contained in:
parent
6eddbb704e
commit
5d456dfaa1
2 changed files with 5 additions and 5 deletions
|
@ -277,8 +277,8 @@ pub(crate) fn expand_test_or_bench(
|
|||
cx.attr_nested_word(sym::cfg, sym::test, attr_sp),
|
||||
// #[rustc_test_marker = "test_case_sort_key"]
|
||||
cx.attr_name_value_str(sym::rustc_test_marker, test_path_symbol, attr_sp),
|
||||
// #[allow(missing_docs)]
|
||||
cx.attr_nested_word(sym::allow, sym::missing_docs, attr_sp),
|
||||
// #[doc(hidden)]
|
||||
cx.attr_nested_word(sym::doc, sym::hidden, attr_sp),
|
||||
],
|
||||
// const $ident: test::TestDescAndFn =
|
||||
ast::ItemKind::Const(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue