error: didn't expect any arguments here
  --> $DIR/invalid-doc-attr-3.rs:10:14
   |
LL | #[doc(hidden = true)]
   |              ^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
note: the lint level is defined here
  --> $DIR/invalid-doc-attr-3.rs:1:9
   |
LL | #![deny(invalid_doc_attributes)]
   |         ^^^^^^^^^^^^^^^^^^^^^^

error: didn't expect any arguments here
  --> $DIR/invalid-doc-attr-3.rs:13:13
   |
LL | #[doc(hidden("or you will be fired"))]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: didn't expect any arguments here
  --> $DIR/invalid-doc-attr-3.rs:16:14
   |
LL | #[doc(hidden = "handled transparently by codegen")]
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: malformed `doc` attribute input
  --> $DIR/invalid-doc-attr-3.rs:19:9
   |
LL | #[doc = 1]
   |         ^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: didn't expect any arguments here
  --> $DIR/invalid-doc-attr-3.rs:3:29
   |
LL | #![doc(test(no_crate_inject = 1))]
   |                             ^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: malformed `doc` attribute input
  --> $DIR/invalid-doc-attr-3.rs:6:1
   |
LL | #![doc(test(attr = 1))]
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: aborting due to 6 previous errors

