From b846b42c8dcf052eabda71d416a986a7891093f7 Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Sun, 12 Jan 2020 00:00:00 +0000 Subject: Selectively disable sanitizer instrumentation Add `no_sanitize` attribute that allows to opt out from sanitizer instrumentation in an annotated function. --- src/librustc_span/symbol.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/librustc_span') diff --git a/src/librustc_span/symbol.rs b/src/librustc_span/symbol.rs index e4f8b5a0143..31100cc573d 100644 --- a/src/librustc_span/symbol.rs +++ b/src/librustc_span/symbol.rs @@ -120,6 +120,7 @@ symbols! { abi_vectorcall, abi_x86_interrupt, aborts, + address, add_with_overflow, advanced_slice_patterns, adx_target_feature, @@ -445,6 +446,7 @@ symbols! { mem_uninitialized, mem_zeroed, member_constraints, + memory, message, meta, min_align_of, @@ -487,6 +489,7 @@ symbols! { None, non_exhaustive, non_modrs_mods, + no_sanitize, no_stack_check, no_start, no_std, @@ -721,6 +724,7 @@ symbols! { test_removed_feature, test_runner, then_with, + thread, thread_local, tool_attributes, tool_lints, -- cgit 1.4.1-3-g733a5