Skip to content

rustPackages.clippy fails to compile: can't find crate fmt_macros #77358

@curiousleo

Description

@curiousleo

Describe the bug

nix-build . -A rustPackages.clippy fails on master since e82fae1 with this error:

   Compiling clippy_lints v0.0.212 (/build/rustc-1.40.0-src/src/tools/clippy/clippy_lints)
error[E0463]: can't find crate for `fmt_macros`
  --> src/tools/clippy/clippy_lints/src/lib.rs:20:1
   |
20 | extern crate fmt_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

To Reproduce
Steps to reproduce the behavior:

  1. Check out any commit between e82fae1 and master
  2. nix-build . -A rustPackages.clippy
  3. Observe the compilation failure pasted above.

Expected behavior
nix-build . -A rustPackages.clippy should succeed.

Additional context
I discovered this build failure in the context of #77327.

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.93, NixOS, 19.09.1778.db3e8325a9b (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.1`
 - channels(root): `"nixos-19.09.1778.db3e8325a9b"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions