Skip to content

build.rs should not detect nightly feature #323

@loynoir

Description

@loynoir

quote

rust-lang/cargo#12872 (comment)

Personally, I think auto-detecting nightly features is a mistake and instead feature flags should be used to enable them explicitly.

actual

build.rs detect nightly feature.

anyhow/build.rs

Lines 17 to 18 in 05e4132

const PROBE: &str = r#"
#![feature(error_generic_member_access)]

expected

build.rs should not detect nightly feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions