r3-os / r3

R3-OS — Experimental static (μITRON-esque) RTOS for deeply embedded systems, testing the limit of Rust's compile-time evaluation and generics
Apache License 2.0
159 stars 8 forks source link

Update the target compiler version #6

Closed yvt closed 2 years ago

yvt commented 2 years ago

Build Failures

error: unconstrained generic constant
    --> src/r3_port_riscv/src/threading/imp.rs:1392:17
     |
1392 |                 PRIV = sym <<Traits as PortInstance>::Priv as csr::Num>::value,
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: try adding a `where` bound using this expression: `where [(); PRIV = sym <<Traits as PortInstance>::Priv as csr::Num>::value]:`
##[group]Run actions-rs/cargo@v1
with:
  command: test
  args: --workspace --
  use-cross: false
env:
  RUSTFLAGS: -A incomplete_features
  RUST_LOG: debug
##[endgroup]
[command]/home/runner/.cargo/bin/cargo test --workspace --
  ⋮
Error: internal compiler error: compiler/rustc_borrowck/src/universal_regions.rs:807:36: cannot convert `ReErased` to a region vid
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/compiler/rustc_errors/src/lib.rs:1313:9
stack backtrace:
   0:     0x7f742b5c69ed - std::backtrace_rs::backtrace::libunwind::trace::h7e24f1b268baded8
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f742b5c69ed - std::backtrace_rs::backtrace::trace_unsynchronized::h4e406aaf9bfb8b43
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f742b5c69ed - std::sys_common::backtrace::_print_fmt::hb14220ee1c3384af
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f742b5c69ed - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h79150e492b796ed8
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f742b62212c - core::fmt::write::h98b7856592a6c7ad
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/core/src/fmt/mod.rs:1194:17
   5:     0x7f742b5b80e1 - std::io::Write::write_fmt::h4cd1fd92935cd0a6
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/io/mod.rs:1655:15
   6:     0x7f742b5c9705 - std::sys_common::backtrace::_print::h3c1099b189a98d61
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f742b5c9705 - std::sys_common::backtrace::print::h3e18ac9c72fc07b8
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f742b5c9705 - std::panicking::default_hook::{{closure}}::hf0e1b39451f40a60
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/panicking.rs:295:22
   9:     0x7f742b5c9379 - std::panicking::default_hook::h629a27b071294339
                               at /rustc/879aff385a5fe0af78f3d45fd2f0b8762934e41e/library/std/src/panicking.rs:314:9
 ⋮
query stack during panic:
#0 [mir_borrowck] borrow-checking `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var::{constant#1}`
#1 [mir_drops_elaborated_and_const_checked] elaborating drops for `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var::{constant#1}`
#2 [mir_for_ctfe] caching mir of `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var::{constant#1}` for CTFE
#3 [eval_to_allocation_raw] const-evaluating + checking `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var::{constant#1}`
#4 [eval_to_const_value_raw] simplifying constant for the type system `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var::{constant#1}`  |  = note: this failure-note originates in the macro `sym_static` (in Nightly builds, run with -Z macro-backtrace for more info)

#5 [typeck] type-checking `sym::tests::<impl at src/r3_portkit/src/sym.rs:173:5: 180:6>::p_var`
#6 [typeck_item_bodies] type-checking all item bodies
#7 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `r3_portkit`
Error: warning: build failed, waiting for other jobs to finish...
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
yvt commented 2 years ago

Merged in 03937840ba4678d85851d7795947a4c3d52dfe04