You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split fuzzy_provenance_casts into lossy and fuzzy, feature gate and test it
* split `fuzzy_provenance_casts` into a ptr2int and a int2ptr lint
* feature gate both lints
* update documentation to be more realistic short term
* add tests for these lints
= note: the `fuzzy_provenance_casts` lint is unstable
9
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
10
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
11
+
12
+
warning: unknown lint: `lossy_provenance_casts`
13
+
--> $DIR/feature-gate-strict_provenance.rs:7:1
14
+
|
15
+
LL | #![deny(lossy_provenance_casts)]
16
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
+
|
18
+
= note: the `lossy_provenance_casts` lint is unstable
19
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
20
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
21
+
22
+
warning: unknown lint: `fuzzy_provenance_casts`
23
+
--> $DIR/feature-gate-strict_provenance.rs:3:1
24
+
|
25
+
LL | #![deny(fuzzy_provenance_casts)]
26
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
+
|
28
+
= note: the `fuzzy_provenance_casts` lint is unstable
29
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
30
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
31
+
32
+
warning: unknown lint: `lossy_provenance_casts`
33
+
--> $DIR/feature-gate-strict_provenance.rs:7:1
34
+
|
35
+
LL | #![deny(lossy_provenance_casts)]
36
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
+
|
38
+
= note: the `lossy_provenance_casts` lint is unstable
39
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
40
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
41
+
42
+
warning: unknown lint: `fuzzy_provenance_casts`
43
+
--> $DIR/feature-gate-strict_provenance.rs:3:1
44
+
|
45
+
LL | #![deny(fuzzy_provenance_casts)]
46
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
+
|
48
+
= note: the `fuzzy_provenance_casts` lint is unstable
49
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
50
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
51
+
52
+
warning: unknown lint: `lossy_provenance_casts`
53
+
--> $DIR/feature-gate-strict_provenance.rs:7:1
54
+
|
55
+
LL | #![deny(lossy_provenance_casts)]
56
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57
+
|
58
+
= note: the `lossy_provenance_casts` lint is unstable
59
+
= note: see issue #95228 <https://github.com/rust-lang/rust/issues/95228> for more information
60
+
= help: add `#![feature(strict_provenance)]` to the crate attributes to enable
= help: if you can't comply with strict provenance and don't have a pointer with the correct provenance you can use `std::ptr::from_exposed_addr()` instead
13
+
help: use `.with_addr()` to adjust a valid pointer in the same allocation, to this address
0 commit comments