Skip to content

1.94 beta regression: "malformed doc attribute input" #151865

@theemathas

Description

@theemathas

The following errors are all the errors found in the 1.94 beta crater run that are related to the doc attribute.

Error 1

[INFO] [stdout] error[E0538]: malformed `doc` attribute input
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-stream-0.1.2/src/lib.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / #![doc(test(
[INFO] [stdout] 21 | |     no_crate_inject,
[INFO] [stdout]    | |     --------------- found `no_crate_inject` used as a key more than once
[INFO] [stdout] 22 | |     attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
[INFO] [stdout] 23 | | ))]
[INFO] [stdout]    | |___^

The above error comes from 125 crates that depend on tokio-stream verions 0.1.0-0.1.3, such as:

Error 2

[INFO] [stdout] error[E0539]: malformed `doc` attribute input
[INFO] [stdout]   --> tests/tagname.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     #[doc("other attribute")]
[INFO] [stdout]    |     ^^^^^^-----------------^^
[INFO] [stdout]    |           |
[INFO] [stdout]    |           expected this to be of the form `... = "..."`

Error 3

[INFO] [stdout] error[E0539]: malformed `doc` attribute input
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/horrorshow-0.8.3/src/helper.rs:5:9
[INFO] [stdout]    |
[INFO] [stdout]  5 |         #[doc($doc)]
[INFO] [stdout]    |         ^^^^^^----^^
[INFO] [stdout]    |               |
[INFO] [stdout]    |               expected this to be of the form `... = "..."`
[INFO] [stdout] ...
[INFO] [stdout] 13 |     c!("The standard HTML5 doctype (this *is* the doctype you're looking for)." => HTML "<!DOCTYPE html>");
[INFO] [stdout]    |     ------------------------------------------------------------------------------------------------------ in this macro invocation
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `c` (in Nightly builds, run with -Z macro-backtrace for more info)

Dependendents of horrorshow versions 0.6.6, 0.7.0, and 0.8.3

Error 4

[INFO] [stdout] error[E0539]: malformed `doc` attribute input
[INFO] [stdout]    --> src/agda/repl.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |             #[doc($d)]
[INFO] [stdout]     |             ^^^^^^--^^
[INFO] [stdout]     |                   |
[INFO] [stdout]     |                   expected this to be of the form `... = "..."`
[INFO] [stdout] ...
[INFO] [stdout] 134 | next_resp_of!(next_give_action, GiveAction, "Skip until next give-action.");
[INFO] [stdout]     | --------------------------------------------------------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `next_resp_of` (in Nightly builds, run with -Z macro-backtrace for more info)

Error 5

[INFO] [stdout] error[E0565]: malformed `doc` attribute input
[INFO] [stdout]   --> sdk/src/protocol/incoming.rs:85:5
[INFO] [stdout]    |
[INFO] [stdout] 85 |     #[doc(hidden = "handled transparently by codegen")]
[INFO] [stdout]    |     ^^^^^^^^^^^^^------------------------------------^^
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  didn't expect any arguments here

Error 6

[INFO] [stdout] error[E0565]: malformed `doc` attribute input
[INFO] [stdout]   --> src/lib.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | #[doc(hidden("or you will be fired"))]
[INFO] [stdout]    | ^^^^^^^^^^^^------------------------^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             didn't expect any arguments here

Error 7

[INFO] [stdout] error[E0565]: malformed `doc` attribute input
[INFO] [stdout]    --> src/lib.rs:180:1
[INFO] [stdout]     |
[INFO] [stdout] 180 | #[doc(hidden = true)]
[INFO] [stdout]     | ^^^^^^^^^^^^^------^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              didn't expect any arguments here

Error 8

[INFO] [stdout] error[E0538]: malformed `doc` attribute input
[INFO] [stdout]  --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rgeometry-0.10.0/src/lib.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | #![doc(test(no_crate_inject))]
[INFO] [stdout]   | ^^^^^^^^^^^^---------------^^^
[INFO] [stdout]   |             |
[INFO] [stdout]   |             found `no_crate_inject` used as a key more than once

Error 9

(Huge wall of error text omitted)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions