Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo check fails for trust-dns-proto 0.22.0 #1401

Closed
teohhanhui opened this issue Oct 22, 2023 · 2 comments
Closed

cargo check fails for trust-dns-proto 0.22.0 #1401

teohhanhui opened this issue Oct 22, 2023 · 2 comments

Comments

@teohhanhui
Copy link

    Checking trust-dns-proto v0.22.0 (/home/teohhanhui/Projects/hickory-dns/hickory-dns/crates/proto)
error: missing optimized MIR for an item in the crate `tracing_core`
    |
note: missing optimized MIR for this item (was the crate `tracing_core` compiled with `--emit=metadata`?)
   --> /home/teohhanhui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.29/src/callsite.rs:362:5
    |
362 |     fn set_interest(&self, interest: Interest) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile `trust-dns-proto` (lib) due to previous error

Seems like it's hitting this: rust-lang/rust#115353

cargo check -p trust-dns-proto and cargo +nightly check -p trust-dns-proto are both successful.

@bjorn3
Copy link
Member

bjorn3 commented Oct 22, 2023

Weird. I will see if I can reproduce this tomorrow.

@bjorn3 bjorn3 closed this as completed in ed8c515 Oct 23, 2023
@bjorn3
Copy link
Member

bjorn3 commented Oct 23, 2023

Found the issue. cg_clif is calling assert_module_sources even when not doing codegen, which in turn triggers collect_and_partition_mono_items which will eventually fail with the error you are seeing. The LLVM backend only calls assert_module_sources when actually doing codegen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants