diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-07-30 16:58:26 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-07-30 17:04:52 +0200 |
commit | 930921b0c39c860351eb8874a4939b6cec93cb41 (patch) | |
tree | e315278f79b9fc047e7b95dd1ee935bd15f485dc /components/plugins/utils.rs | |
parent | a3c0366bd62bc4ac9a52b3e45bf81ba5fea4ed1a (diff) | |
download | servo-930921b0c39c860351eb8874a4939b6cec93cb41.tar.gz servo-930921b0c39c860351eb8874a4939b6cec93cb41.zip |
Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30)
Diffstat (limited to 'components/plugins/utils.rs')
-rw-r--r-- | components/plugins/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/utils.rs b/components/plugins/utils.rs index 9cd843ae5a7..573eca63f6e 100644 --- a/components/plugins/utils.rs +++ b/components/plugins/utils.rs @@ -22,7 +22,7 @@ pub fn match_ty_unwrap<'a>(ty: &'a Ty, segments: &[&str]) -> Option<&'a [P<Ty>]> // I could muck around with the maps and find the full path // however the more efficient way is to simply reverse the iterators and zip them // which will compare them in reverse until one of them runs out of segments - if seg.iter().rev().zip(segments.iter().rev()).all(|(a,b)| a.identifier.as_str() == *b) { + if seg.iter().rev().zip(segments.iter().rev()).all(|(a,b)| a.identifier.name.as_str() == *b) { match seg.last() { Some(&PathSegment {parameters: AngleBracketedParameters(ref a), ..}) => { Some(&a.types) |