Skip to content

Commit

Permalink
Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 24, 2019
1 parent 6ff2524 commit 714a5b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
7 changes: 1 addition & 6 deletions components/script_plugins/lib.rs
Expand Up @@ -21,17 +21,12 @@
#[cfg(feature = "unrooted_must_root_lint")]
#[macro_use]
extern crate rustc;

// Work around TLS failure: https://github.com/rust-lang/rust/issues/62717#issuecomment-511876555
#[allow(unused)]
extern crate rustc_driver;

extern crate rustc_plugin;
extern crate syntax;

extern crate weedle;

use rustc_plugin::Registry;
use rustc_driver::plugin::Registry;
use syntax::feature_gate::AttributeType::Whitelisted;
use syntax::symbol::Symbol;

Expand Down
8 changes: 2 additions & 6 deletions components/script_plugins/utils.rs
Expand Up @@ -30,12 +30,8 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[Symbol]) -> bool
}

pub fn in_derive_expn(span: Span) -> bool {
if let Some(i) = span.ctxt().outer_expn().expn_info() {
if let ExpnKind::Macro(MacroKind::Attr, n) = i.kind {
n.as_str().contains("derive")
} else {
false
}
if let ExpnKind::Macro(MacroKind::Attr, n) = span.ctxt().outer_expn_data().kind {
n.as_str().contains("derive")
} else {
false
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2019-08-16
nightly-2019-08-24

0 comments on commit 714a5b4

Please sign in to comment.