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 dist can't release MIRAI for aarch64-apple-darwin target due to rustc errors #3

Open
zjp-CN opened this issue Sep 11, 2024 · 0 comments

Comments

@zjp-CN
Copy link
Member

zjp-CN commented Sep 11, 2024

https://github.com/os-checker/MIRAI/actions/runs/10803406690/job/29967209452

error[E0463]: can't find crate for `rustc_abi`
  --> checker/src/lib.rs:24:1
   |
24 | extern crate rustc_abi;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_ast`
  --> checker/src/lib.rs:25:1
   |
25 | extern crate rustc_ast;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_attr`
  --> checker/src/lib.rs:26:1
   |
26 | extern crate rustc_attr;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_data_structures`
  --> checker/src/lib.rs:27:1
   |
27 | extern crate rustc_data_structures;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
  --> checker/src/lib.rs:28:1
   |
28 | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
  --> checker/src/lib.rs:29:1
   |
29 | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_hir`
  --> checker/src/lib.rs:30:1
   |
30 | extern crate rustc_hir;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_index`
  --> checker/src/lib.rs:31:1
   |
31 | extern crate rustc_index;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_interface`
  --> checker/src/lib.rs:32:1
   |
32 | extern crate rustc_interface;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_middle`
  --> checker/src/lib.rs:33:1
   |
33 | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
  --> checker/src/lib.rs:34:1
   |
34 | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
  --> checker/src/lib.rs:35:1
   |
35 | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_target`
  --> checker/src/lib.rs:36:1
   |
36 | extern crate rustc_target;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0432]: unresolved imports `DefPathData::*`, `DefPathData::*`
   --> checker/src/known_names.rs:143:13
    |
143 |         use DefPathData::*;
    |             ^^^^^^^^^^^^^^
    |
   ::: checker/src/utils.rs:424:9
    |
424 |     use DefPathData::*;
    |         ^^^^^^^^^^^^^^

error[E0531]: cannot find tuple struct or tuple variant `TypeNs` in this scope
   --> checker/src/known_names.rs:154:25
    |
154 |                         TypeNs(name) | ValueNs(name) => Some(*name),
    |                         ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `ValueNs` in this scope
   --> checker/src/known_names.rs:154:40
    |
154 |                         TypeNs(name) | ValueNs(name) => Some(*name),
    |                                        ^^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `TypeNs` in this scope
   --> checker/src/utils.rs:426:9
    |
426 |         TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => {
    |         ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `ValueNs` in this scope
   --> checker/src/utils.rs:426:24
    |
426 |         TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => {
    |                        ^^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `MacroNs` in this scope
   --> checker/src/utils.rs:426:40
    |
426 |         TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => {
    |                                        ^^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `LifetimeNs` in this scope
   --> checker/src/utils.rs:426:56
    |
426 |         TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => {
    |                                                        ^^^^^^^^^^ not found in this scope

error[E0581]: return type references lifetime `'tcx`, which is not constrained by the fn input types
    --> checker/src/block_visitor.rs:1615:80
     |
1615 |         fn get_assert_msg_description<'tcx>(msg: &mir::AssertMessage<'tcx>) -> &'tcx str {
     |                                                                                ^^^^^^^^^

rustup component add rust-src rustc-dev llvm-tools-preview => these components have been already in rust-toolchain.toml, so why does rustc still suggest adding them?

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

1 participant