Created
March 8, 2024 01:00
-
-
Save adam-singer/a52d68460c3c95da3eb54eef7fc4f468 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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... |
Author
adam-singer
commented
Mar 8, 2024
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment