embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.48k stars 765 forks source link

Unable to add embassy-net crate #1134

Closed LimpidCrypto closed 1 year ago

LimpidCrypto commented 1 year ago

I'm trying to add the embassy-net crate to my Cargo.toml like so:

[dependencies.embassy-net]
git = "https://github.com/embassy-rs/embassy"
package = "embassy-net"
version = "0.1.0"
features = ["nightly", "tcp", "medium-ethernet", "dhcpv4"]

When I'm trying to build it, I always get errors stating that functions in traits can't be async.

    ~/dev/Rust/em-as-ws    main !1 ?2  cargo build                                                                                                                                                                                                                                                           ✔ 
   Compiling embedded-io v0.4.0
error[E0706]: functions in traits cannot be declared `async`
 --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:9:5
  |
9 |     async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
  |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     `async` because of this
  |
  = note: `async` trait functions are not currently supported
  = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
  = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:12:5
   |
12 |     async fn read_exact(&mut self, mut buf: &mut [u8]) -> Result<(), ReadExactError<Self::Error>> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:33:5
   |
33 |     async fn fill_buf(&mut self) -> Result<&[u8], Self::Error>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:44:5
   |
44 |     async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:47:5
   |
47 |     async fn flush(&mut self) -> Result<(), Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:52:5
   |
52 |     async fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:70:5
   |
70 |     async fn seek(&mut self, pos: crate::SeekFrom) -> Result<u64, Self::Error>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:73:5
   |
73 |     async fn rewind(&mut self) -> Result<(), Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:79:5
   |
79 |     async fn stream_position(&mut self) -> Result<u64, Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:86:5
   |
86 |     async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:92:5
   |
92 |     async fn fill_buf(&mut self) -> Result<&[u8], Self::Error> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:103:5
    |
103 |     async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:108:5
    |
108 |     async fn flush(&mut self) -> Result<(), Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:115:5
    |
115 |     async fn seek(&mut self, pos: crate::SeekFrom) -> Result<u64, Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:126:5
    |
126 |     async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:146:5
    |
146 |     async fn fill_buf(&mut self) -> Result<&[u8], Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:167:5
    |
167 |     async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/lib.rs:2:40
  |
2 | #![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
  |                                        ^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/lib.rs:2:59
  |
2 | #![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
  |                                                           ^^^^^^^^^^^^^^^^^^^^^^

error[E0635]: unknown feature `async_fn_in_trait`
 --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/lib.rs:2:40
  |
2 | #![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
  |                                        ^^^^^^^^^^^^^^^^^

error[E0635]: unknown feature `impl_trait_projections`
 --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/lib.rs:2:59
  |
2 | #![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
  |                                                           ^^^^^^^^^^^^^^^^^^^^^^

error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
  --> /.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:86:49
   |
86 |     async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
   |                                                 ^^^^^^^^^^^^^^----^^^^^^^^
   |                                                               |
   |                                                               help: consider spelling out the type instead: `<&mut T as asynch::Read>`

error: internal compiler error: compiler/rustc_middle/src/ty/subst.rs:548:13: Region parameter out of range when substituting in region '_ (index=1)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/897e37553bba8b42751c67658967889d11ecd120/compiler/rustc_errors/src/lib.rs:1462:9
stack backtrace:
   0:        0x10637e662 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd2e8cbde22b780fc
   1:        0x1063d5d2a - core::fmt::write::hd6692086cdd356a7
   2:        0x1063706cc - std::io::Write::write_fmt::h6043124a2486acbb
   3:        0x10638154b - std::panicking::default_hook::{{closure}}::h87a12b8b06887dd7
   4:        0x106381257 - std::panicking::default_hook::h7f68dad17e0bfaa4
   5:        0x10ed263ca - rustc_driver[16e15c4795dce443]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:        0x106381c7e - std::panicking::rust_panic_with_hook::hd57427cbbfc3717a
   7:        0x113366b47 - std[550525b9dd91a68e]::panicking::begin_panic::<rustc_errors[a43e87068ce59fd]::ExplicitBug>::{closure#0}
   8:        0x113364399 - std[550525b9dd91a68e]::sys_common::backtrace::__rust_end_short_backtrace::<std[550525b9dd91a68e]::panicking::begin_panic<rustc_errors[a43e87068ce59fd]::ExplicitBug>::{closure#0}, !>
   9:        0x1139e4349 - std[550525b9dd91a68e]::panicking::begin_panic::<rustc_errors[a43e87068ce59fd]::ExplicitBug>
  10:        0x11335c439 - std[550525b9dd91a68e]::panic::panic_any::<rustc_errors[a43e87068ce59fd]::ExplicitBug>
  11:        0x11335b336 - <rustc_errors[a43e87068ce59fd]::HandlerInner>::bug::<&alloc[bc7f897b574022f6]::string::String>
  12:        0x11335aab7 - <rustc_errors[a43e87068ce59fd]::Handler>::bug::<&alloc[bc7f897b574022f6]::string::String>
  13:        0x1134bdbb2 - rustc_middle[bb0c5e8c48bbcb6f]::ty::context::tls::with_context_opt::<rustc_middle[bb0c5e8c48bbcb6f]::ty::context::tls::with_opt<rustc_middle[bb0c5e8c48bbcb6f]::util::bug::opt_span_bug_fmt<rustc_span[e569a852badd08b3]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  14:        0x1134c25b1 - rustc_middle[bb0c5e8c48bbcb6f]::util::bug::opt_span_bug_fmt::<rustc_span[e569a852badd08b3]::span_encoding::Span>
  15:        0x1139e537e - rustc_middle[bb0c5e8c48bbcb6f]::util::bug::bug_fmt
  16:        0x1139e54d9 - <rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::SubstFolder as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeFolder>::fold_region::region_param_out_of_range
  17:        0x1134e5316 - <rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::SubstFolder as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeFolder>::fold_region
  18:        0x113526b04 - rustc_middle[bb0c5e8c48bbcb6f]::ty::util::fold_list::<rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::SubstFolder, rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::GenericArg, <&rustc_middle[bb0c5e8c48bbcb6f]::ty::list::List<rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::GenericArg> as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeFoldable>::try_fold_with<rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::SubstFolder>::{closure#0}>
  19:        0x1133886a5 - <rustc_middle[bb0c5e8c48bbcb6f]::ty::Ty as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeSuperFoldable>::super_fold_with::<rustc_middle[bb0c5e8c48bbcb6f]::ty::subst::SubstFolder>
  20:        0x11311da1c - rustc_trait_selection[7d1569814c746233]::traits::project::project
  21:        0x11311a512 - rustc_trait_selection[7d1569814c746233]::traits::project::opt_normalize_projection_type
  22:        0x11311503e - rustc_trait_selection[7d1569814c746233]::traits::project::normalize_projection_type
  23:        0x11311389b - <rustc_trait_selection[7d1569814c746233]::traits::project::AssocTypeNormalizer as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeFolder>::fold_ty
  24:        0x111a6944f - <&rustc_middle[bb0c5e8c48bbcb6f]::ty::list::List<rustc_middle[bb0c5e8c48bbcb6f]::ty::Ty> as rustc_middle[bb0c5e8c48bbcb6f]::ty::fold::TypeFoldable>::try_fold_with::<rustc_trait_selection[7d1569814c746233]::traits::project::AssocTypeNormalizer>
  25:        0x111b88271 - <rustc_trait_selection[7d1569814c746233]::traits::project::AssocTypeNormalizer>::fold::<rustc_middle[bb0c5e8c48bbcb6f]::ty::sty::FnSig>
  26:        0x111b8cb15 - rustc_trait_selection[7d1569814c746233]::traits::project::normalize::<rustc_middle[bb0c5e8c48bbcb6f]::ty::sty::FnSig>
  27:        0x111ad902d - <rustc_infer[5797815828da93d2]::infer::InferCtxt as rustc_trait_selection[7d1569814c746233]::infer::InferCtxtExt>::partially_normalize_associated_types_in::<rustc_middle[bb0c5e8c48bbcb6f]::ty::sty::FnSig>
  28:        0x111a00693 - <rustc_trait_selection[7d1569814c746233]::traits::engine::ObligationCtxt>::normalize::<rustc_middle[bb0c5e8c48bbcb6f]::ty::sty::FnSig>
  29:        0x111ab1564 - <rustc_infer[5797815828da93d2]::infer::InferCtxtBuilder>::enter::<core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>, rustc_typeck[8dbcb784b8f8b98e]::check::compare_method::compare_predicate_entailment::{closure#0}>
  30:        0x111a41e27 - rustc_typeck[8dbcb784b8f8b98e]::check::compare_method::compare_impl_method
  31:        0x1119c0fcf - rustc_typeck[8dbcb784b8f8b98e]::check::check::check_item_type
  32:        0x1119c503e - rustc_typeck[8dbcb784b8f8b98e]::check::check::check_mod_item_types
  33:        0x1124e76cf - rustc_query_system[dd5f4cbbefd3ac00]::query::plumbing::try_execute_query::<rustc_query_impl[cb317dc1728e98be]::plumbing::QueryCtxt, rustc_query_system[dd5f4cbbefd3ac00]::query::caches::DefaultCache<rustc_span[e569a852badd08b3]::def_id::LocalDefId, ()>>
  34:        0x1125c7c65 - rustc_query_system[dd5f4cbbefd3ac00]::query::plumbing::get_query::<rustc_query_impl[cb317dc1728e98be]::queries::check_mod_item_types, rustc_query_impl[cb317dc1728e98be]::plumbing::QueryCtxt>
  35:        0x1119e9688 - <rustc_middle[bb0c5e8c48bbcb6f]::hir::map::Map>::for_each_module::<rustc_typeck[8dbcb784b8f8b98e]::check_crate::{closure#6}::{closure#0}>
  36:        0x111a2efe9 - <rustc_session[7981c40e681cffbf]::session::Session>::time::<(), rustc_typeck[8dbcb784b8f8b98e]::check_crate::{closure#6}>
  37:        0x111b5e42f - rustc_typeck[8dbcb784b8f8b98e]::check_crate
  38:        0x10ee60e2a - rustc_interface[10c69fc32fc6154b]::passes::analysis
  39:        0x11255a596 - rustc_query_system[dd5f4cbbefd3ac00]::query::plumbing::try_execute_query::<rustc_query_impl[cb317dc1728e98be]::plumbing::QueryCtxt, rustc_query_system[dd5f4cbbefd3ac00]::query::caches::DefaultCache<(), core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>>
  40:        0x1125d1ae9 - rustc_query_system[dd5f4cbbefd3ac00]::query::plumbing::get_query::<rustc_query_impl[cb317dc1728e98be]::queries::analysis, rustc_query_impl[cb317dc1728e98be]::plumbing::QueryCtxt>
  41:        0x10ed5eb49 - <rustc_interface[10c69fc32fc6154b]::passes::QueryContext>::enter::<rustc_driver[16e15c4795dce443]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>
  42:        0x10ed2d1d0 - rustc_interface[10c69fc32fc6154b]::interface::create_compiler_and_run::<core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>, rustc_driver[16e15c4795dce443]::run_compiler::{closure#1}>
  43:        0x10ed9e065 - <scoped_tls[7d2a033726ec5167]::ScopedKey<rustc_span[e569a852badd08b3]::SessionGlobals>>::set::<rustc_interface[10c69fc32fc6154b]::interface::run_compiler<core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>, rustc_driver[16e15c4795dce443]::run_compiler::{closure#1}>::{closure#0}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>
  44:        0x10ed6316a - std[550525b9dd91a68e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[10c69fc32fc6154b]::util::run_in_thread_pool_with_globals<rustc_interface[10c69fc32fc6154b]::interface::run_compiler<core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>, rustc_driver[16e15c4795dce443]::run_compiler::{closure#1}>::{closure#0}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>::{closure#0}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>
  45:        0x10ed66898 - <<std[550525b9dd91a68e]::thread::Builder>::spawn_unchecked_<rustc_interface[10c69fc32fc6154b]::util::run_in_thread_pool_with_globals<rustc_interface[10c69fc32fc6154b]::interface::run_compiler<core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>, rustc_driver[16e15c4795dce443]::run_compiler::{closure#1}>::{closure#0}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>::{closure#0}, core[bb3d6b31f0e973c8]::result::Result<(), rustc_errors[a43e87068ce59fd]::ErrorGuaranteed>>::{closure#1} as core[bb3d6b31f0e973c8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  46:        0x10638abb7 - std::sys::unix::thread::Thread::new::thread_start::haa45038b11bc331d
  47:     0x7ff819dc9259 - __pthread_start

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.65.0 (897e37553 2022-11-02) running on x86_64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [check_mod_item_types] checking item types in module `asynch`
#1 [analysis] running analysis passes on this crate
end of query stack
Some errors have detailed explanations: E0554, E0635, E0706, E0760.
For more information about an error, try `rustc --explain E0554`.
error: could not compile `embedded-io` due to 22 previous errors
    ~/dev/Rust/em-as-ws    main !1 ?2                                                                                                                                                                                                                                                                    101 ✘ 

Is there anything I'm missing? Thank you :)

Dirbaio commented 1 year ago

Make sure you're using this nightly.

LimpidCrypto commented 1 year ago

Make sure you're using this nightly.

Thanks for your help. I was using nightly-2022-11-22-x86_64-apple-darwin as toolchain and switched it to nightly-x86_64-apple-darwin. Works now :)