mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update to 3/12 rustc nightly.
This commit is contained in:
parent
2985d48b77
commit
129c583799
3 changed files with 37 additions and 5 deletions
|
@ -210,7 +210,8 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
|
||||||
/// All structs containing #[unrooted_must_root_lint::must_root] types
|
/// All structs containing #[unrooted_must_root_lint::must_root] types
|
||||||
/// must be #[unrooted_must_root_lint::must_root] themselves
|
/// must be #[unrooted_must_root_lint::must_root] themselves
|
||||||
fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item) {
|
fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item) {
|
||||||
if has_lint_attr(&self.symbols, &item.attrs, self.symbols.must_root) {
|
let attrs = cx.tcx.hir().attrs(item.hir_id());
|
||||||
|
if has_lint_attr(&self.symbols, &attrs, self.symbols.must_root) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if let hir::ItemKind::Struct(def, ..) = &item.kind {
|
if let hir::ItemKind::Struct(def, ..) = &item.kind {
|
||||||
|
@ -235,7 +236,8 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
|
||||||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant) {
|
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant) {
|
||||||
let ref map = cx.tcx.hir();
|
let ref map = cx.tcx.hir();
|
||||||
let parent_item = map.expect_item(map.get_parent_item(var.id));
|
let parent_item = map.expect_item(map.get_parent_item(var.id));
|
||||||
if !has_lint_attr(&self.symbols, &parent_item.attrs, self.symbols.must_root) {
|
let attrs = cx.tcx.hir().attrs(parent_item.hir_id());
|
||||||
|
if !has_lint_attr(&self.symbols, &attrs, self.symbols.must_root) {
|
||||||
match var.data {
|
match var.data {
|
||||||
hir::VariantData::Tuple(fields, ..) => {
|
hir::VariantData::Tuple(fields, ..) => {
|
||||||
for field in fields {
|
for field in fields {
|
||||||
|
@ -268,10 +270,10 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
|
||||||
id: HirId,
|
id: HirId,
|
||||||
) {
|
) {
|
||||||
let in_new_function = match kind {
|
let in_new_function = match kind {
|
||||||
visit::FnKind::ItemFn(n, _, _, _, _) | visit::FnKind::Method(n, _, _, _) => {
|
visit::FnKind::ItemFn(n, _, _, _) | visit::FnKind::Method(n, _, _) => {
|
||||||
&*n.as_str() == "new" || n.as_str().starts_with("new_")
|
&*n.as_str() == "new" || n.as_str().starts_with("new_")
|
||||||
},
|
},
|
||||||
visit::FnKind::Closure(_) => return,
|
visit::FnKind::Closure => return,
|
||||||
};
|
};
|
||||||
|
|
||||||
if !in_derive_expn(span) {
|
if !in_derive_expn(span) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nightly-2021-02-25
|
nightly-2021-03-12
|
||||||
|
|
|
@ -1,4 +1,34 @@
|
||||||
[event-insertion.html]
|
[event-insertion.html]
|
||||||
|
[< [Insert same event at same time\] 1 out of 15 assertions were failed.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[X Linear+Expo: At time 0.01556396484375 (frame 255) output is not close to 1.99609375 within a relative error of 0 (RelErr=0.4964742940465998). Got 2.98710298538208.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[X Expo+Linear: At time 0.01556396484375 (frame 255) output is not close to 2.9871532226369792 within a relative error of 0.0000042533 (RelErr=0.3317790074896618). Got 1.9960784912109375.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[< [Linear + Expo\] 1 out of 6 assertions were failed.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[< [Expo + Linear\] 1 out of 6 assertions were failed.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[X Linear+SetTarget: At time 0.015625 (frame 256) output is not equal to 100. Got NaN.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[X Multiple linear ramps: Output at frame 63 is not close to 1.984375 within a relative error of 0 (RelErr=3.9673788716473917). Got 9.857142448425293.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[X Multiple exponential ramps: Output at frame 63 is not close to 1.978456026387951 within a relative error of 5.3924e-7 (RelErr=3.873046650665318). Got 9.641108512878418.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[< [Multiple linear ramps at the same time\] 1 out of 6 assertions were failed.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[< [Multiple exponential ramps at the same time\] 1 out of 6 assertions were failed.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
[X Output at frame 512 (time 0.03125) is not equal to 4. Got 3.]
|
[X Output at frame 512 (time 0.03125) is not equal to 4. Got 3.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue