Skip to content

invalid type: string "debuginfo", expected enum Strip #8450

@tesuji

Description

@tesuji

Problem

I added this to ~/.cargo/config to try out strip feature:

cargo-features = ["strip"]
[profile.release]
strip = "debuginfo"

After that I ran cargo clean in a crate.

I expected to see this happen:

  • Clean successfully
  • Error about not be able to add the above part in ~/.cargo/config, only in Cargo.toml

Instead this happened:

% cargo clean
error: error in /home/lzutao/fork/rust/rustup/.cargo/config: could not load config key `profile.release`

Caused by:
  error in /home/lzutao/.cargo/config.toml: could not load config key `profile.release.strip`

Caused by:
  invalid type: string "debuginfo", expected enum Strip

Output of cargo version: cargo 1.46.0-nightly (fede83c 2020-07-02)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env varsA-profilesArea: profilesC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions