diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-09 00:47:52 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-09 00:49:42 +0000 |
| commit | dbf0326ddc041e772b5ab07b19e893e8955bf934 (patch) | |
| tree | 963e18545279512da44b52de59b21ee3121239b2 /src/libsyntax/ext/base.rs | |
| parent | 13e3925e8d816b71f3d857217981d2e3d9988b5e (diff) | |
| download | rust-dbf0326ddc041e772b5ab07b19e893e8955bf934.tar.gz rust-dbf0326ddc041e772b5ab07b19e893e8955bf934.zip | |
Add comment and clean up `expand_annotatable`
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 4b7086695eb..95624a43373 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -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 } } |
