forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#60562 - iliekturtles:proc-macro-missing-doc…
…s, r=alexcrichton Add #[doc(hidden)] attribute on compiler generated module. Resolves unavoidable `missing_docs` warning/error on proc-macro crates. Resolves rust-lang#42008. Changes not yet tested locally, however I wanted to submit first since `rustc` takes forever to compile.
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! Verify that the `decls` module implicitly added by the compiler does not cause `missing_docs` | ||
//! warnings. | ||
|
||
// compile-pass | ||
// force-host | ||
// no-prefer-dynamic | ||
|
||
#![crate_type = "proc-macro"] | ||
#![deny(missing_docs)] | ||
|
||
extern crate proc_macro; | ||
use proc_macro::*; | ||
|
||
/// Foo1. | ||
#[proc_macro] | ||
pub fn foo1(input: TokenStream) -> TokenStream { input } |