Instead of renaming, treat differently marked identifiers as unequal

This commit is contained in:
Jeffrey Seyfried
2016-06-22 02:50:05 +00:00
parent ca924047de
commit a15dfca54f
6 changed files with 37 additions and 560 deletions

View File

@@ -26,7 +26,6 @@ use parse::token::{InternedString, intern, str_to_ident};
use ptr::P;
use util::small_vector::SmallVector;
use util::lev_distance::find_best_match_for_name;
use ext::mtwt;
use fold::Folder;
use std::collections::{HashMap, HashSet};
@@ -483,15 +482,12 @@ pub type NamedSyntaxExtension = (Name, SyntaxExtension);
pub struct BlockInfo {
/// Should macros escape from this scope?
pub macros_escape: bool,
/// What are the pending renames?
pub pending_renames: mtwt::RenameList,
}
impl BlockInfo {
pub fn new() -> BlockInfo {
BlockInfo {
macros_escape: false,
pending_renames: Vec::new(),
}
}
}