aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/utils.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-05-24 11:28:20 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-05-30 10:50:59 +0200
commita553964123d9e65fc483e608864d880ba1909300 (patch)
tree3a3654a25d84c45d371ec26bd83bdb3b7b58a6b8 /components/script_plugins/utils.rs
parent11a89bcc47c73701d8809cf33163a1f61d792b17 (diff)
downloadservo-a553964123d9e65fc483e608864d880ba1909300.tar.gz
servo-a553964123d9e65fc483e608864d880ba1909300.zip
Upgrade to rustc 1.28.0-nightly (524ad9b9e 2018-05-29)
Fixes https://github.com/servo/servo/issues/20844
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 45a348ea14f..9199e5b083b 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() == *p)
+ .all(|(nm, p)| &*nm.as_interned_str().as_str() == *p)
}
pub fn in_derive_expn(span: Span) -> bool {