about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorniluxv <niluxv.opensource.C-h2ty6xl@yandex.com>2022-04-02 21:07:00 +0200
committerniluxv <niluxv.opensource.C-h2ty6xl@yandex.com>2022-04-08 17:41:28 +0200
commit98a483423720bda1f51a22f01b378fa8e8e8b9a3 (patch)
treee50134ec6c786368347afef03cc053a7d5ca4d98 /compiler/rustc_span
parent1040cab53b95aa47c2ea8e1a6de73eddadc57aa7 (diff)
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
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index f5803aaa078..dc4d10f699c 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1348,6 +1348,7 @@ symbols! {
         str_trim,
         str_trim_end,
         str_trim_start,
+        strict_provenance,
         stringify,
         stringify_macro,
         struct_field_attributes,