Skip to content

warning: output filename collision. #14253

Closed
@Wyvern

Description

@Wyvern

Problem

Got lots of warnings like below

warning: output filename collision.
The lib target `cfg_if` in package `cfg-if v1.0.0` has the same output filename as the lib target `cfg_if` in package `cfg-if v1.0.0`.
Colliding filename is: target/debug/deps/libcfg_if-b07c5e93d2d15f7e.rlib
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.

Steps

no warnings:

  • stable
  • cargo 1.81.0-nightly (a515d46 2024-07-02)

warnings:

  • cargo 1.81.0-nightly (154fdac 2024-07-07) start to pop up warnings.

Possible Solution(s)

No response

Notes

Version

nightly-x86_64-apple-darwin

Metadata

Metadata

Assignees

Labels

A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-target-applies-to-hostNightly: target-applies-to-hostregression-from-stable-to-betaRegression in beta that previously worked in stable.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions