Skip to content

Colliding filenames cause a panic when a build is re-run #10231

Closed
@saethlin

Description

@saethlin

Problem

When cargo emits a warning about output filename collision, running a second build produces a panic inside cargo.

Steps

Download either one of chipo-2.1.0 or paranoia-caller-0.1.0, run cargo build twice. The first run emits a warning, the second panics.

Possible Solution(s)

Promote the warning to a hard error.

Notes

This was found browsing crater outputs. Here are the two published crates that produce the error:
https://crater-reports.s3.amazonaws.com/beta-1.58-1/1.57.0/reg/chipo-2.1.0/log.txt
https://crater-reports.s3.amazonaws.com/beta-1.58-1/1.57.0/reg/paranoia-caller-0.1.0/log.txt

Version

cargo 1.59.0-nightly (fcef61230 2021-12-17)
release: 1.59.0-nightly
commit-hash: fcef61230c3b6213b6b0d233a36ba4ebd1649ec3
commit-date: 2021-12-17
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l)
os: Ubuntu 20.4.0 [64-bit]

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Error and warning messages generated by Cargo itself.A-layoutArea: target output directory layout, naming, and organizationC-bugCategory: bugE-easyExperience: Easy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions