aboutsummaryrefslogtreecommitdiff
path: root/vendor/rayon/src/compile_fail/no_send_par_iter.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rayon/src/compile_fail/no_send_par_iter.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-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.rs58
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 {}