You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm playing with parallelism, and rustc gave me this error:
error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait `core::marker::Send` for the type `[closure src/main.rs:106:28: 109:10]`
As I'm not yet really experienced with rust, I'm not really sure it's the compiler fault, but I suppose false positives are better than hidden positives :)
If I may help you by providing any informations, please do not hesitate to ask.
I tried this code:
struct ExtendedHSPs {
query_pos: i64,
bank_pos: i64,
extension: i32,
score: i32,
}
[...]
let NB_CPU: usize = 4;
let total_size: usize = query_candidates.len();
let slice_size: usize = total_size/NB_CPU;
let (tx, rx) = mpsc::channel();
for cpu in 0..NB_CPU {
let bottom = cpu*slice_size;
let top = if cpu+1 == NB_CPU {total_size} else {(cpu+1)*slice_size};
let my_tx = tx.clone();
thread::spawn(move || {
let mut my_HSPs = Vec::new();
my_tx.send(my_HSPs);
});
}
drop(tx);
let HSPs: Vec<_> = rx.iter().collect();
[...]
I'm playing with parallelism, and rustc gave me this error:
As I'm not yet really experienced with rust, I'm not really sure it's the compiler fault, but I suppose false positives are better than hidden positives :)
If I may help you by providing any informations, please do not hesitate to ask.
I tried this code:
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: