-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check Rust version in cargo #165
Merged
Merged
Conversation
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
Add required minimum version of Rust (1.63.0) to build master. No way to compile with 1.59, 1.60, 1.61, 1.62, 1.62.1 versions. The error is: error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:264:42 | 264 | HashFn::Metro => file_hash::<MetroHash128>(chunk, self.buf_len, progress), | ^^^^^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:266:41 | 266 | HashFn::Xxh3 => file_hash::<Xxh3>(chunk, self.buf_len, progress), | ^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:268:43 | 268 | HashFn::Blake3 => file_hash::<blake3::Hasher>(chunk, self.buf_len, progress), | ^^^^^^^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:270:43 | 270 | HashFn::Sha256 => file_hash::<Sha256>(chunk, self.buf_len, progress), | ^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:272:43 | 272 | HashFn::Sha512 => file_hash::<Sha512>(chunk, self.buf_len, progress), | ^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:274:45 | 274 | HashFn::Sha3_256 => file_hash::<Sha3_256>(chunk, self.buf_len, progress), | ^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:276:45 | 276 | HashFn::Sha3_512 => file_hash::<Sha3_512>(chunk, self.buf_len, progress), | ^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:332:44 | 332 | HashFn::Metro => stream_hash::<MetroHash128>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:334:43 | 334 | HashFn::Xxh3 => stream_hash::<Xxh3>(stream, chunk.len, buf_len, |_| {}), | ^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:336:45 | 336 | HashFn::Blake3 => stream_hash::<blake3::Hasher>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:338:45 | 338 | HashFn::Sha256 => stream_hash::<Sha256>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:340:45 | 340 | HashFn::Sha512 => stream_hash::<Sha512>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:342:47 | 342 | HashFn::Sha3_256 => stream_hash::<Sha3_256>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:344:47 | 344 | HashFn::Sha3_512 => stream_hash::<Sha3_512>(stream, chunk.len, buf_len, |_| {}), | ^^^^^^^^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position --> src/hasher.rs:628:30 | 628 | let hash = stream_hash::<H>(&mut file, chunk.len, buf_len, progress)?.1; | ^ explicit generic argument not allowed | = note: see issue #83701 <rust-lang/rust#83701> for more information For more information about this error, try `rustc --explain E0632`. error: could not compile `fclones` due to 15 previous errors Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add required minimum version of Rust (1.63.0) to build master. No way to compile with 1.59, 1.60, 1.61, 1.62, 1.62.1 versions.
The error is:
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:264:42
|
264 | HashFn::Metro => file_hash::(chunk, self.buf_len, progress),
| ^^^^^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:266:41
|
266 | HashFn::Xxh3 => file_hash::(chunk, self.buf_len, progress),
| ^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:268:43
|
268 | HashFn::Blake3 => file_hash::blake3::Hasher(chunk, self.buf_len, progress),
| ^^^^^^^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:270:43
|
270 | HashFn::Sha256 => file_hash::(chunk, self.buf_len, progress),
| ^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:272:43
|
272 | HashFn::Sha512 => file_hash::(chunk, self.buf_len, progress),
| ^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:274:45
|
274 | HashFn::Sha3_256 => file_hash::<Sha3_256>(chunk, self.buf_len, progress),
| ^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:276:45
|
276 | HashFn::Sha3_512 => file_hash::<Sha3_512>(chunk, self.buf_len, progress),
| ^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:332:44
|
332 | HashFn::Metro => stream_hash::(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:334:43
|
334 | HashFn::Xxh3 => stream_hash::(stream, chunk.len, buf_len, |_| {}),
| ^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:336:45
|
336 | HashFn::Blake3 => stream_hash::blake3::Hasher(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:338:45
|
338 | HashFn::Sha256 => stream_hash::(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:340:45
|
340 | HashFn::Sha512 => stream_hash::(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:342:47
|
342 | HashFn::Sha3_256 => stream_hash::<Sha3_256>(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:344:47
|
344 | HashFn::Sha3_512 => stream_hash::<Sha3_512>(stream, chunk.len, buf_len, |_| {}),
| ^^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
error[E0632]: cannot provide explicit generic arguments when
impl Trait
is used in argument position--> src/hasher.rs:628:30
|
628 | let hash = stream_hash::(&mut file, chunk.len, buf_len, progress)?.1;
| ^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information
For more information about this error, try
rustc --explain E0632
. error: could not compilefclones
due to 15 previous errorsSigned-off-by: Andrea Gelmini andrea.gelmini@gelma.net