mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
script_bindings Start wrapping unsafe code in unsafe {}
(#38545)
This is useful to better isolate `unsafe` code. Once all unsafe calls are wrapped we can enable the Rust warning. This also explicitly disables the warning for generated code, which is a much more difficult task. After this change there are 211 warnings left in `script_bindings`. Testing: This should not change behavior and is thus covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
c9541f2906
commit
5c307a38df
8 changed files with 91 additions and 70 deletions
|
@ -45,7 +45,7 @@ pub mod trace;
|
|||
pub mod utils;
|
||||
pub mod weakref;
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(non_snake_case, unsafe_op_in_unsafe_fn)]
|
||||
pub mod codegen {
|
||||
pub mod Globals {
|
||||
include!(concat!(env!("OUT_DIR"), "/Globals.rs"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue