diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-05-03 23:11:34 +0200 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-05-27 20:37:56 +0200 |
| commit | a977df35d160c1fe7040c76a9276b64e7a7aedec (patch) | |
| tree | e6ffc904637a409b0446c9fce8b57dcaba86305d /src/librustc_session | |
| parent | 2873165725c15e96dae521a412065c144d9c7a25 (diff) | |
Implement RFC 2585
Diffstat (limited to 'src/librustc_session')
| -rw-r--r-- | src/librustc_session/lint/builtin.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustc_session/lint/builtin.rs b/src/librustc_session/lint/builtin.rs index e55ddc26a94..7112ac35b08 100644 --- a/src/librustc_session/lint/builtin.rs +++ b/src/librustc_session/lint/builtin.rs @@ -526,6 +526,12 @@ declare_lint! { "using only a subset of a register for inline asm inputs", } +declare_lint! { + pub UNSAFE_OP_IN_UNSAFE_FN, + Allow, + "unsafe operations in unsafe functions without an explicit unsafe block are deprecated", +} + declare_lint_pass! { /// Does nothing as a lint pass, but registers some `Lint`s /// that are used by other parts of the compiler. @@ -597,6 +603,7 @@ declare_lint_pass! { SOFT_UNSTABLE, INLINE_NO_SANITIZE, ASM_SUB_REGISTER, + UNSAFE_OP_IN_UNSAFE_FN, ] } |
