Skip to content

"Renaming of the library C was specified" error only on nightly #38850

Closed
@dylanede

Description

@dylanede

This appears to be caused by a change in #37403.

This appears to be causing a breaking change on nightly from stable. I'm compiling an (unreleased) FFI library that handles the linking to certain static libraries in a build script (so the extern "C" block is unannotated). It depends on the libc crate. Other than that it does nothing out of the ordinary. I'm compiling using the windows msvc x64 toolchain. On nightly, but not on stable, I get the error message:

error: renaming of the library `C` was specified, however this crate contains no #[link(...)] attributes referencing this library.

Is this library C referring to libc? My crate has an entirely unrelated name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions