Skip to content

false positive "--edition is unspecified" #164115

Closed as not planned
Closed as not planned

Description

@matthiaskrgr

RUSTFLAGS="--edition=2021" rustc src/main.rs will still warn

`--edition` is unspecified, defaulting to `2015` while the latest is `2024`; it must be one of: <2015|2018|2021|2024|future>

obviously the message is nonsense in this context
cc #158102 #160243

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 10, 2026
  2. hanna-kruppe commented on Oct 10, 2026

    @hanna-kruppe
    Contributor

    I don’t think rustc knows or cares about RUSTFLAGS, that’s a Cargo-ism, isn’t it?

  3. matthiaskrgr commented on Oct 10, 2026

    @matthiaskrgr
    MemberAuthor

    aah yes I think you're right. closing then :)

  4. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions