rust/compiler/rustc_builtin_macros/src
Olivier Goffart 6eddbb704e Fix false positive with missing_docs and #[test]
Since #130025, the compiler don't ignore missing_docs when compiling the tests.
But there is now a false positive warning for every `#[test]`

For example, this code
```rust
//! Crate docs

fn just_a_test() {}
```

Would emit this warning when running `cargo test`

```
warning: missing documentation for a constant
 --> src/lib.rs:5:1
  |
4 | #[test]
  | ------- in this procedural macro expansion
5 | fn just_a_test() {}
  | ^^^^^^^^^^^^^^^^^^^
```
2024-09-11 11:33:10 +02:00
..
assert Reformat use declarations. 2024-07-29 08:26:52 +10:00
deriving Rollup merge of #123940 - kornelski:remove-derived-debug, r=Urgau 2024-08-29 16:21:46 +02:00
format_foreign
alloc_error_handler.rs chore: use shorthand initializer 2024-08-02 13:22:28 -04:00
asm.rs bootstrap naked_asm! for compiler-builtins 2024-09-09 12:47:40 +02:00
assert.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
cfg_accessible.rs Stabilize unsafe_attributes 2024-08-07 03:12:13 -05:00
cfg_eval.rs Distinguish the two kinds of token range. 2024-08-01 19:30:40 +10:00
cfg.rs Add toggle for parse_meta_item unsafe parsing 2024-07-30 18:28:43 -05:00
cmdline_attrs.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat_bytes.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat_idents.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
derive.rs Stabilize unsafe_attributes 2024-08-07 03:12:13 -05:00
edition_panic.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
env.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Add warn(unreachable_pub) to rustc_builtin_macros. 2024-08-16 08:46:57 +10:00
format_foreign.rs Add warn(unreachable_pub) to rustc_builtin_macros. 2024-08-16 08:46:57 +10:00
format.rs Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
global_allocator.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs bootstrap naked_asm! for compiler-builtins 2024-09-09 12:47:40 +02:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Mark Parser::eat/check methods as must_use 2024-07-29 21:29:08 -04:00
proc_macro_harness.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
source_util.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
standard_library_imports.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
test_harness.rs Allow missing_docs lint on the generated test harness 2024-09-09 14:51:39 +02:00
test.rs Fix false positive with missing_docs and #[test] 2024-09-11 11:33:10 +02:00
trace_macros.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
util.rs Stabilize unsafe_attributes 2024-08-07 03:12:13 -05:00