Add comment and clean up expand_annotatable

This commit is contained in:
Jeffrey Seyfried
2016-06-09 00:47:52 +00:00
parent 13e3925e8d
commit dbf0326ddc
2 changed files with 8 additions and 8 deletions

View File

@@ -942,6 +942,8 @@ impl SyntaxEnv {
}
pub fn is_crate_root(&mut self) -> bool {
// The first frame is pushed in `SyntaxEnv::new()` and the second frame is
// pushed when folding the crate root pseudo-module (c.f. noop_fold_crate).
self.chain.len() == 2
}
}