mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Auto merge of #25075 - servo:rustup, r=nox
Upgrade to rustc 1.41.0-nightly (7afe6d9d1 2019-12-03)
This commit is contained in:
commit
1199631f79
3 changed files with 13 additions and 4 deletions
|
@ -21,9 +21,9 @@
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate matches;
|
extern crate matches;
|
||||||
#[macro_use]
|
|
||||||
extern crate rustc;
|
extern crate rustc;
|
||||||
extern crate rustc_driver;
|
extern crate rustc_driver;
|
||||||
|
extern crate rustc_session;
|
||||||
extern crate syntax;
|
extern crate syntax;
|
||||||
|
|
||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
|
@ -32,6 +32,7 @@ use rustc::hir::{self, ExprKind, HirId};
|
||||||
use rustc::lint::{LateContext, LateLintPass, LintContext, LintPass};
|
use rustc::lint::{LateContext, LateLintPass, LintContext, LintPass};
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use rustc_driver::plugin::Registry;
|
use rustc_driver::plugin::Registry;
|
||||||
|
use rustc_session::declare_lint;
|
||||||
use syntax::ast::{AttrKind, Attribute};
|
use syntax::ast::{AttrKind, Attribute};
|
||||||
use syntax::source_map;
|
use syntax::source_map;
|
||||||
use syntax::source_map::{ExpnKind, MacroKind, Span};
|
use syntax::source_map::{ExpnKind, MacroKind, Span};
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# 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 "$@"
|
|
||||||
|
if [[ "$*" == *--document-private-items* ]]
|
||||||
|
then
|
||||||
|
ARGS=""
|
||||||
|
else
|
||||||
|
ARGS="--document-private-items"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rustdoc -Z "unstable-options" --cap-lints warn $ARGS "$@"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nightly-2019-11-16
|
nightly-2019-12-04
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue