Upgrade to rustc 1.3.0-nightly (4d52d7c85 2015-07-30)

This commit is contained in:
Manish Goregaokar
2015-07-31 12:00:06 +05:30
parent 0e8e8cfc9b
commit de5ccdfab6
6 changed files with 13 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ pub fn match_def_path(cx: &Context, def_id: DefId, path: &[&str]) -> bool {
/// `match_path(path, &["std", "rt", "begin_unwind"])`
pub fn match_path(path: &Path, segments: &[&str]) -> bool {
path.segments.iter().rev().zip(segments.iter().rev()).all(
|(a,b)| a.identifier.as_str() == *b)
|(a,b)| a.identifier.name == b)
}
/// convert a span to a code snippet if available, otherwise use default, e.g.