aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/utils.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-05-18 11:44:47 -0500
committerJosh Matthews <josh@joshmatthews.net>2018-05-18 11:44:47 -0500
commite7979380bafbb484ea63f7ad5f338b266a6bc0a5 (patch)
tree1fa4903319fcd9a16b037069283109d5787ffa9a /components/script_plugins/utils.rs
parenta8bdd44ecea6dc6cd553f80e31d1705e3f34c559 (diff)
downloadservo-e7979380bafbb484ea63f7ad5f338b266a6bc0a5.tar.gz
servo-e7979380bafbb484ea63f7ad5f338b266a6bc0a5.zip
Revert "Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02)"
This reverts commit 46ad8110172cfc9d8d420e8eb41863f3d394e24d.
Diffstat (limited to 'components/script_plugins/utils.rs')
-rw-r--r--components/script_plugins/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/utils.rs b/components/script_plugins/utils.rs
index 0999467545b..45a348ea14f 100644
--- a/components/script_plugins/utils.rs
+++ b/components/script_plugins/utils.rs
@@ -25,7 +25,7 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
other.into_iter()
.map(|e| e.data)
.zip(path)
- .all(|(nm, p)| nm.as_interned_str().with(|nm| nm == *p))
+ .all(|(nm, p)| &*nm.as_interned_str() == *p)
}
pub fn in_derive_expn(span: Span) -> bool {