Skip to content

Commit afb072d

Browse files
committed
Remove feature(proc_macro_hygiene).
This is no longer needed since the latest Rust release.
1 parent 2438835 commit afb072d

File tree

9 files changed

+0
-27
lines changed

9 files changed

+0
-27
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Inline Python code directly in your Rust code.
55
## Example
66

77
```rust
8-
#![feature(proc_macro_hygiene)]
98
use inline_python::python;
109

1110
fn main() {
@@ -22,8 +21,6 @@ fn main() {
2221
## How to use
2322

2423
Use the `python!{..}` macro to write Python code directly in your Rust code.
25-
You'll need to add `#![feature(proc_macro_hygiene)]`, and use a nightly
26-
version of the compiler that supports this feature.
2724

2825
### Using Rust variables
2926

ct-python/examples/example.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro_hygiene)]
2-
31
use inline_python_macros::ct_python;
42

53
ct_python! {

ct-python/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! # Example
44
//!
55
//! ```
6-
//! #![feature(proc_macro_hygiene)]
76
//! use ct_python::ct_python;
87
//!
98
//! static SIN_2: f64 = ct_python! {
@@ -27,9 +26,6 @@
2726
//! The output of the script (`print()` and anything else through `sys.stdout`)
2827
//! is captured, and will be parsed as Rust code.
2928
//!
30-
//! If you want to use the macro to generate an expression (as in the example),
31-
//! you'll need to add `#![feature(proc_macro_hygiene)]`.
32-
//!
3329
//! ## Python Errors
3430
//!
3531
//! Any syntax errors or runtime exceptions from the Python code will be

examples/context.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro_hygiene)]
2-
31
use inline_python::{python, Context};
42

53
fn main() {

examples/matplotlib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro_hygiene)]
2-
31
use inline_python::python;
42

53
fn main() {

examples/rust-fn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro_hygiene)]
2-
31
use inline_python::{python, Context};
42
use pyo3::{prelude::*, wrap_pyfunction};
53

src/context.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use pyo3::{types::PyDict, AsPyRef, FromPyObject, Py, PyObject, PyResult, Python,
77
/// This can be used to keep all global variables and imports intact between macro invocations:
88
///
99
/// ```
10-
/// # #![feature(proc_macro_hygiene)]
1110
/// # use inline_python::{Context, python};
1211
/// let c = Context::new();
1312
///
@@ -24,7 +23,6 @@ use pyo3::{types::PyDict, AsPyRef, FromPyObject, Py, PyObject, PyResult, Python,
2423
/// or set global variables before running:
2524
///
2625
/// ```
27-
/// # #![feature(proc_macro_hygiene)]
2826
/// # use inline_python::{Context, python};
2927
/// let c = Context::new();
3028
///
@@ -131,7 +129,6 @@ impl Context {
131129
/// Use this with `pyo3::wrap_pyfunction` or `pyo3::wrap_pymodule`.
132130
///
133131
/// ```ignore
134-
/// # #![feature(proc_macro_hygiene)]
135132
/// # use inline_python::{Context, python};
136133
/// use pyo3::{prelude::*, wrap_pyfunction};
137134
///
@@ -171,7 +168,6 @@ impl Context {
171168
/// This function should be called using the `python!{}` macro:
172169
///
173170
/// ```
174-
/// # #![feature(proc_macro_hygiene)]
175171
/// # use inline_python::{Context, python};
176172
/// let c = Context::new();
177173
///

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! # Example
44
//!
55
//! ```
6-
//! #![feature(proc_macro_hygiene)]
76
//! use inline_python::python;
87
//!
98
//! fn main() {
@@ -20,8 +19,6 @@
2019
//! # How to use
2120
//!
2221
//! Use the `python!{..}` macro to write Python code directly in your Rust code.
23-
//! You'll need to add `#![feature(proc_macro_hygiene)]`, and use a nightly
24-
//! version of the compiler that supports this feature.
2522
//!
2623
//! ## Using Rust variables
2724
//!
@@ -34,7 +31,6 @@
3431
//! The context can be re-used for multiple invocations to share global variables across macro calls.
3532
//!
3633
//! ```
37-
//! # #![feature(proc_macro_hygiene)]
3834
//! # use inline_python::{Context, python};
3935
//! let c = Context::new();
4036
//!
@@ -52,7 +48,6 @@
5248
//! in it.
5349
//!
5450
//! ```
55-
//! # #![feature(proc_macro_hygiene)]
5651
//! # use inline_python::{Context, python};
5752
//! let c: Context = python! {
5853
//! foo = 5
@@ -70,7 +65,6 @@
7065
//! [`Context::get`].
7166
//!
7267
//! ```
73-
//! # #![feature(proc_macro_hygiene)]
7468
//! # use inline_python::{Context, python};
7569
//! let c: Context = python! {
7670
//! foo = 5

tests/shared_context.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(proc_macro_hygiene)]
2-
31
use inline_python::python;
42

53
#[test]

0 commit comments

Comments
 (0)