Commit 7dafc0b
committed
add
Due to `raw_ref_op` not being stable until rustc 1.82 (which is the
"proper" msrv, when no default features), we have to explicitly enable
it using a feature gate.
This commit also adds a flag `RUSTC_RAW_REF_OP_IS_STABLE` to the
`build.rs` to communicate with cargo for conditional compilation
as to whether the `raw_ref_op` feature gate is needed, based on the
RUSTC version.
Finally it adds the feature gate behind the conditional flag mentioned
above to the examples and tests, so they don't fail the nightly-msrv
checks (where `raw_ref_op` is currently unstable).
Signed-off-by: Antonio Hickey <contact@antoniohickey.com>raw_ref_op feature gate to examples & tests1 parent 87facba commit 7dafc0b
File tree
4 files changed
+8
-0
lines changed- examples
- tests
4 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments