mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)
This commit is contained in:
parent
c9b5b8fad3
commit
389e69bafe
7 changed files with 17 additions and 13 deletions
|
@ -30,10 +30,12 @@ use js::rust::MutableHandleValue;
|
||||||
use libc::c_uint;
|
use libc::c_uint;
|
||||||
use std::slice::from_raw_parts;
|
use std::slice::from_raw_parts;
|
||||||
|
|
||||||
/// An optional stringified JS backtrace and stringified native backtrace from the
|
|
||||||
/// the last DOM exception that was reported.
|
|
||||||
#[cfg(feature = "js_backtrace")]
|
#[cfg(feature = "js_backtrace")]
|
||||||
thread_local!(static LAST_EXCEPTION_BACKTRACE: DomRefCell<Option<(Option<String>, String)>> = DomRefCell::new(None));
|
thread_local! {
|
||||||
|
/// An optional stringified JS backtrace and stringified native backtrace from the
|
||||||
|
/// the last DOM exception that was reported.
|
||||||
|
static LAST_EXCEPTION_BACKTRACE: DomRefCell<Option<(Option<String>, String)>> = DomRefCell::new(None);
|
||||||
|
}
|
||||||
|
|
||||||
/// DOM exceptions that can be thrown by a native DOM method.
|
/// DOM exceptions that can be thrown by a native DOM method.
|
||||||
#[derive(Clone, Debug, MallocSizeOf)]
|
#[derive(Clone, Debug, MallocSizeOf)]
|
||||||
|
|
|
@ -117,8 +117,8 @@ fn has_invalid_blend_constants(arg1: u32, arg2: u32) -> bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set of bitflags for texture unpacking (texImage2d, etc...)
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
|
/// Set of bitflags for texture unpacking (texImage2d, etc...)
|
||||||
#[derive(JSTraceable, MallocSizeOf)]
|
#[derive(JSTraceable, MallocSizeOf)]
|
||||||
struct TextureUnpacking: u8 {
|
struct TextureUnpacking: u8 {
|
||||||
const FLIP_Y_AXIS = 0x01;
|
const FLIP_Y_AXIS = 0x01;
|
||||||
|
|
|
@ -141,7 +141,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
||||||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
|
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
|
||||||
let ref map = cx.tcx.hir();
|
let ref map = cx.tcx.hir();
|
||||||
if map
|
if map
|
||||||
.expect_item_by_hir_id(map.get_parent_item(var.node.data.hir_id()))
|
.expect_item_by_hir_id(map.get_parent_item(var.node.id))
|
||||||
.attrs
|
.attrs
|
||||||
.iter()
|
.iter()
|
||||||
.all(|a| !a.check_name("must_root"))
|
.all(|a| !a.check_name("must_root"))
|
||||||
|
|
|
@ -14,11 +14,13 @@ use selectors::bloom::BloomFilter;
|
||||||
use servo_arc::Arc;
|
use servo_arc::Arc;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
|
||||||
/// Bloom filters are large allocations, so we store them in thread-local storage
|
thread_local! {
|
||||||
/// such that they can be reused across style traversals. StyleBloom is responsible
|
/// Bloom filters are large allocations, so we store them in thread-local storage
|
||||||
/// for ensuring that the bloom filter is zeroed when it is dropped.
|
/// such that they can be reused across style traversals. StyleBloom is responsible
|
||||||
thread_local!(static BLOOM_KEY: Arc<AtomicRefCell<BloomFilter>> =
|
/// for ensuring that the bloom filter is zeroed when it is dropped.
|
||||||
Arc::new(AtomicRefCell::new(BloomFilter::new())));
|
static BLOOM_KEY: Arc<AtomicRefCell<BloomFilter>> =
|
||||||
|
Arc::new(AtomicRefCell::new(BloomFilter::new()));
|
||||||
|
}
|
||||||
|
|
||||||
/// A struct that allows us to fast-reject deep descendant selectors avoiding
|
/// A struct that allows us to fast-reject deep descendant selectors avoiding
|
||||||
/// selector-matching.
|
/// selector-matching.
|
||||||
|
|
|
@ -545,7 +545,7 @@ macro_rules! font_face_descriptors {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// css-name rust_identifier: Type,
|
// css-name rust_identifier: Type,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
font_face_descriptors! {
|
font_face_descriptors! {
|
||||||
mandatory descriptors = [
|
mandatory descriptors = [
|
||||||
|
|
|
@ -60,8 +60,8 @@ pub type StylistSheet = crate::stylesheets::DocumentStyleSheet;
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub type StylistSheet = crate::gecko::data::GeckoStyleSheet;
|
pub type StylistSheet = crate::gecko::data::GeckoStyleSheet;
|
||||||
|
|
||||||
/// A cache of computed user-agent data, to be shared across documents.
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
|
/// A cache of computed user-agent data, to be shared across documents.
|
||||||
static ref UA_CASCADE_DATA_CACHE: Mutex<UserAgentCascadeDataCache> =
|
static ref UA_CASCADE_DATA_CACHE: Mutex<UserAgentCascadeDataCache> =
|
||||||
Mutex::new(UserAgentCascadeDataCache::new());
|
Mutex::new(UserAgentCascadeDataCache::new());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nightly-2019-03-03
|
nightly-2019-03-26
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue