Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-singer/a52d68460c3c95da3eb54eef7fc4f468 to your computer and use it in GitHub Desktop.
Save adam-singer/a52d68460c3c95da3eb54eef7fc4f468 to your computer and use it in GitHub Desktop.
Compiling nativelink-util v0.2.0 (/Users/adam/workspace/nativelink-2/nativelink-util)
error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return types
--> nativelink-util/src/digest_hasher.rs:131:10
|
131 | ) -> impl Future<Output = Result<(DigestInfo, fs::ResumeableFileSlot<'static>), Error>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in trait method return types
--> nativelink-util/src/digest_hasher.rs:137:10
|
137 | ) -> impl Future<Output = Result<DigestInfo, Error>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0706]: functions in traits cannot be declared `async`
--> nativelink-util/src/digest_hasher.rs:203:5
|
203 | async fn digest_for_file(
| ^----
| |
| _____`async` because of this
| |
204 | | mut self,
205 | | mut file: fs::ResumeableFileSlot<'static>,
206 | | size_hint: Option<u64>,
207 | | ) -> Result<(DigestInfo, fs::ResumeableFileSlot<'static>), Error> {
| |_____________________________________________________________________^
|
= 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
Some errors have detailed explanations: E0562, E0706.
For more information about an error, try `rustc --explain E0562`.
error: could not compile `nativelink-util` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
@adam-singer
Copy link
Author

adam-singer commented Mar 8, 2024


commit 35daf433f01150cdf3b5da4e9a97e561be03cbdf (HEAD -> main, upstream/main, origin/main, origin/HEAD)
Author: Blake Hatch <blakewihatch@gmail.com>
Date:   Thu Mar 7 01:17:54 2024 -0500

    Add configuration breakdown page (#725)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment