parent
815ee0f691
commit
947b06e0ad
@ -1,25 +0,0 @@
|
|||||||
From 8728e54845a01940d060f0764adf96bb5eea6d01 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Fabio Valentini <decathorpe@gmail.com>
|
|
||||||
Date: Tue, 17 Jan 2023 20:40:56 +0100
|
|
||||||
Subject: [PATCH] ignore doctest with missing send_wrapper dependency
|
|
||||||
|
|
||||||
---
|
|
||||||
src/marker.rs | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/marker.rs b/src/marker.rs
|
|
||||||
index f159d89..c4bc4af 100644
|
|
||||||
--- a/src/marker.rs
|
|
||||||
+++ b/src/marker.rs
|
|
||||||
@@ -70,7 +70,7 @@
|
|
||||||
//! This will "work" to smuggle Python references across the closure, because we're not actually
|
|
||||||
//! doing anything with threads:
|
|
||||||
//!
|
|
||||||
-//! ```rust, no_run
|
|
||||||
+//! ```rust, ignore
|
|
||||||
//! use pyo3::prelude::*;
|
|
||||||
//! use pyo3::types::PyString;
|
|
||||||
//! use send_wrapper::SendWrapper;
|
|
||||||
--
|
|
||||||
2.39.0
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
From 1a011b0266117687ff2b2d2de588064af964b968 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabio Valentini <decathorpe@gmail.com>
|
||||||
|
Date: Wed, 5 Jul 2023 19:13:56 +0200
|
||||||
|
Subject: [PATCH] ignore doctests with missing send_wrapper dependency
|
||||||
|
|
||||||
|
---
|
||||||
|
src/marker.rs | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/marker.rs b/src/marker.rs
|
||||||
|
index e5b3ed8..343bbb4 100644
|
||||||
|
--- a/src/marker.rs
|
||||||
|
+++ b/src/marker.rs
|
||||||
|
@@ -66,7 +66,7 @@
|
||||||
|
//! This will "work" to smuggle Python references across the closure, because we're not actually
|
||||||
|
//! doing anything with threads:
|
||||||
|
//!
|
||||||
|
-//! ```rust, no_run
|
||||||
|
+//! ```rust, ignore
|
||||||
|
//! use pyo3::prelude::*;
|
||||||
|
//! use pyo3::types::PyString;
|
||||||
|
//! use send_wrapper::SendWrapper;
|
||||||
|
@@ -158,7 +158,7 @@ use std::os::raw::c_int;
|
||||||
|
/// This also implies that the interplay between `with_gil` and `allow_threads` is unsound, for example
|
||||||
|
/// one can circumvent this protection using the [`send_wrapper`](https://docs.rs/send_wrapper/) crate:
|
||||||
|
///
|
||||||
|
-/// ```no_run
|
||||||
|
+/// ```ignore
|
||||||
|
/// # use pyo3::prelude::*;
|
||||||
|
/// # use pyo3::types::PyString;
|
||||||
|
/// use send_wrapper::SendWrapper;
|
||||||
|
@@ -225,7 +225,7 @@ unsafe impl<T: Send> Ungil for T {}
|
||||||
|
/// On nightly Rust, this is not based on the [`Send`] auto trait and hence we are able
|
||||||
|
/// to prevent incorrectly circumventing it using e.g. the [`send_wrapper`](https://docs.rs/send_wrapper/) crate:
|
||||||
|
///
|
||||||
|
-/// ```compile_fail
|
||||||
|
+/// ```ignore
|
||||||
|
/// # use pyo3::prelude::*;
|
||||||
|
/// # use pyo3::types::PyString;
|
||||||
|
/// use send_wrapper::SendWrapper;
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
@ -1 +1 @@
|
|||||||
SHA512 (pyo3-0.18.3.crate) = 39f044a19a42a5e2f46049431fbe3fe10c14d12a4741cc789b42de7cbf448bcbded7fe38a0f124d994ff9bcd3d95a19305dbfdc7462331fda3e6686cc4289be5
|
SHA512 (pyo3-0.19.1.crate) = b27500cf49f1c6f217d21344d24ac96c07b82c157dd36fa4550b94059da5715ba7d0e085ec07dd5f8a8ac9de4d7e9239c1cceac4337294eb0dc9f6102049d5ff
|
||||||
|
Loading…
Reference in new issue