Skip to content

make: stale diagnostics info in .json files can break unclean builds #25364

Closed
@pnkfelix

Description

@pnkfelix

make: error E0038 from librustc' also found intmp/extended-errors/librustc_typeck.json' (from unclean build?)

That is, I did a git pull up to:

commit fa433875274ff4a7c4cab7d87c1284ba782ef643
Merge: 30a42fa b799cd8
Author: bors <[email protected]>
Date:   Wed May 13 06:43:05 2015 +0000

    Auto merge of #24619 - nrc:rc-coerce, r=nikomatsakis

    r? @nikomatsakis (note a few TODOs left in the code where I wasn't sure about stuff).

in a build directory that already had artifacts from a prior build lying around.

I re-ran configure (something I do sometimes when git pull'ing with an unknown set of changes):

/Users/fklock/Dev/Mozilla/rust.git/configure --enable-debug --enable-optimize     --enable-ccache --enable-clang --prefix=~/opt/rust-dbg --disable-optimize-tests --disable-llvm-assertions 

And then when attempting the build, I got this:

rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc
/Users/fklock/Dev/Mozilla/rust.git/src/librustc/lib.rs:170:1: 170:52 error: error E0038 from `librustc' also found in `tmp/extended-errors/librustc_typeck.json'
/Users/fklock/Dev/Mozilla/rust.git/src/librustc/lib.rs:170 __build_diagnostic_array! { librustc, DIAGNOSTICS }
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions