mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Eliminate warning about unsafe references to extern static variables.
MozReview-Commit-ID: 7UJNBaEWnH7
This commit is contained in:
parent
cad5a4e326
commit
8abc1bd275
3 changed files with 4936 additions and 2466 deletions
|
@ -32,7 +32,14 @@
|
|||
#![cfg_attr(feature = "servo", plugin(heapsize_plugin))]
|
||||
#![cfg_attr(feature = "servo", plugin(plugins))]
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
// FIXME(bholley): We need to blanket-allow unsafe code in order to make the
|
||||
// gecko atom!() macro work. When Rust 1.14 is released [1], we can uncomment
|
||||
// the commented-out attributes in regen_atoms.py and go back to denying unsafe
|
||||
// code by default.
|
||||
//
|
||||
// [1] https://github.com/rust-lang/rust/issues/15701#issuecomment-251900615
|
||||
//#![deny(unsafe_code)]
|
||||
#![allow(unused_unsafe)]
|
||||
|
||||
#![recursion_limit = "500"] // For match_ignore_ascii_case in PropertyDeclaration::parse
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue