mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03)
This commit is contained in:
parent
a2b76b0169
commit
43a75011be
7 changed files with 14 additions and 6 deletions
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
#![feature(type_alias_enum_variants)]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate bitflags;
|
extern crate bitflags;
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
// Work around https://github.com/rust-lang/rust/issues/62132
|
||||||
|
#![recursion_limit = "128"]
|
||||||
|
|
||||||
//! The layout thread. Performs layout on the DOM, builds display lists and sends them to be
|
//! The layout thread. Performs layout on the DOM, builds display lists and sends them to be
|
||||||
//! painted.
|
//! painted.
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
#![feature(inner_deref)]
|
#![feature(inner_deref)]
|
||||||
#![feature(on_unimplemented)]
|
#![feature(on_unimplemented)]
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![feature(type_alias_enum_variants)]
|
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
#![doc = "The script crate contains all matters DOM."]
|
#![doc = "The script crate contains all matters DOM."]
|
||||||
|
|
|
@ -151,7 +151,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
||||||
_gen: &'tcx hir::Generics,
|
_gen: &'tcx hir::Generics,
|
||||||
id: HirId,
|
id: HirId,
|
||||||
) {
|
) {
|
||||||
let item = match cx.tcx.hir().get_by_hir_id(id) {
|
let item = match cx.tcx.hir().get(id) {
|
||||||
hir::Node::Item(item) => item,
|
hir::Node::Item(item) => item,
|
||||||
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
||||||
};
|
};
|
||||||
|
|
|
@ -190,7 +190,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WebIdlPass {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let item = match cx.tcx.hir().get_by_hir_id(id) {
|
let item = match cx.tcx.hir().get(id) {
|
||||||
hir::Node::Item(item) => item,
|
hir::Node::Item(item) => item,
|
||||||
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Work around https://github.com/rust-lang/rust/issues/62132
|
||||||
|
if [ "$2" = "synstructure" -o "$2" = "derivative" ]
|
||||||
|
then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Emit documentation for private items so it is easier to look
|
# Emit documentation for private items so it is easier to look
|
||||||
# up internal definitions.
|
# up internal definitions.
|
||||||
#
|
#
|
||||||
# Deny "deny warnings" to ensure documenting the crates
|
# Deny "deny warnings" to ensure documenting the crates
|
||||||
# succeeds even if new warnings are introduced to the compiler.
|
# succeeds even if new warnings are introduced to the compiler.
|
||||||
rustdoc -Z "unstable-options" --cap-lints warn --document-private-items "$@"
|
rustdoc -Z "unstable-options" --cap-lints warn --document-private-items "$@"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nightly-2019-06-19
|
nightly-2019-07-04
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue