diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rayon/src/compile_fail/no_send_par_iter.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/rayon/src/compile_fail/no_send_par_iter.rs')
-rw-r--r-- | vendor/rayon/src/compile_fail/no_send_par_iter.rs | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/vendor/rayon/src/compile_fail/no_send_par_iter.rs b/vendor/rayon/src/compile_fail/no_send_par_iter.rs deleted file mode 100644 index 7573c03..0000000 --- a/vendor/rayon/src/compile_fail/no_send_par_iter.rs +++ /dev/null @@ -1,58 +0,0 @@ -// Check that `!Send` types fail early. - -/** ```compile_fail,E0277 - -use rayon::prelude::*; -use std::ptr::null; - -#[derive(Copy, Clone)] -struct NoSend(*const ()); - -unsafe impl Sync for NoSend {} - -let x = Some(NoSend(null())); - -x.par_iter() - .map(|&x| x) //~ ERROR - .count(); //~ ERROR - -``` */ -mod map {} - -/** ```compile_fail,E0277 - -use rayon::prelude::*; -use std::ptr::null; - -#[derive(Copy, Clone)] -struct NoSend(*const ()); - -unsafe impl Sync for NoSend {} - -let x = Some(NoSend(null())); - -x.par_iter() - .filter_map(|&x| Some(x)) //~ ERROR - .count(); //~ ERROR - -``` */ -mod filter_map {} - -/** ```compile_fail,E0277 - -use rayon::prelude::*; -use std::ptr::null; - -#[derive(Copy, Clone)] -struct NoSend(*const ()); - -unsafe impl Sync for NoSend {} - -let x = Some(NoSend(null())); - -x.par_iter() - .cloned() //~ ERROR - .count(); //~ ERROR - -``` */ -mod cloned {} |