mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Stop allowing unused_unsafe.
This commit is contained in:
parent
fd68091491
commit
f0d749a544
2 changed files with 1 additions and 12 deletions
|
@ -26,15 +26,6 @@
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
// 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 define_css_keyword_enum! in -moz-appearance
|
#![recursion_limit = "500"] // For define_css_keyword_enum! in -moz-appearance
|
||||||
|
|
||||||
extern crate app_units;
|
extern crate app_units;
|
||||||
|
|
|
@ -590,9 +590,7 @@ impl PrevSiblingOrFreeCount {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn as_free_count(&self) -> &AtomicUsize {
|
unsafe fn as_free_count(&self) -> &AtomicUsize {
|
||||||
unsafe {
|
mem::transmute(&self.0)
|
||||||
mem::transmute(&self.0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue