Skip to content

Commit

Permalink
Update embassy-time and embassy-sync revisions in
Browse files Browse the repository at this point in the history
This commit updates the revision of embassy-time and embassy-sync
in infra/pre-provision to fix the following compilation error:

error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
  --> /.cargo/git/checkouts/btmesh-e14acedbce757b27/6840160/btmesh-device/src/lib.rs:34:27
   |
34 |     embassy_sync::signal::Signal<embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex, T>;
   |                           ^^^^^^ expected 1 generic argument                                 - help: remove this generic argument
   |
note: struct defined here, with 1 generic parameter: `T`
  --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/3b58ac1/embassy-sync/src/signal.rs:31:12
   |
31 | pub struct Signal<T> {
   |            ^^^^^^ -

For more information about this error, try `rustc --explain E0107`.
error: could not compile `btmesh-device` due to previous error

The commit also adds a rust-toolchain.toml to configure nightly rustc as
currently there a number of compilation errors like the following two:

error[E0658]: generic associated types are unstable
   --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/b7d0944/embassy-sync/src/pipe.rs:450:9
    |
450 | /         type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>>
451 | |         where
452 | |             Self: 'a;
    | |_____________________^
    |
    = note: see issue #44265 <rust-lang/rust#44265> for more information
    = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

error[E0658]: where clauses on associated types are unstable
   --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/b7d0944/embassy-sync/src/pipe.rs:450:9
    |
450 | /         type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>>
451 | |         where
452 | |             Self: 'a;
    | |_____________________^
    |
    = note: see issue #44265 <rust-lang/rust#44265> for more information
    = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

   Compiling cargo_metadata v0.15.0
For more information about this error, try `rustc --explain E0658`.
error: could not compile `embassy-sync` due to 18 previous errors
warning: build failed, waiting for other jobs to finish...
  • Loading branch information
danbev committed Oct 14, 2022
1 parent 2d5f596 commit b8e93ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/pre-provision/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ btmesh-driver = { git = "https://github.com/drogue-iot/btmesh.git", branch = "ma
#btmesh-models = { path = "../../drogue-iot/btmesh/btmesh-models" }
#btmesh-driver = { path = "../../drogue-iot/btmesh/btmesh-driver" }

embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "3b58ac1bf86a2373e479e8e3cf92d2df7c29e00b" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "3b58ac1bf86a2373e479e8e3cf92d2df7c29e00b" }
embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "b7d09442650d765562b25f9f27d654c2ef5e014a" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "b7d09442650d765562b25f9f27d654c2ef5e014a" }
2 changes: 2 additions & 0 deletions infra/pre-provision/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"

0 comments on commit b8e93ff

Please sign in to comment.