diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-28 13:36:55 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-28 14:39:48 -0800 |
| commit | 42c2c2ab2f4dfa350dd01d33025cd5027a358d33 (patch) | |
| tree | 52e35a8c5b7225de7076b2e170ca136841e61f23 | |
| parent | b9f9ab8f7775039e02cbe38c270c81e893da8e2b (diff) | |
| download | rust-42c2c2ab2f4dfa350dd01d33025cd5027a358d33.tar.gz rust-42c2c2ab2f4dfa350dd01d33025cd5027a358d33.zip | |
Remove parser hack
| -rw-r--r-- | src/libsyntax/parse.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libsyntax/parse.rs b/src/libsyntax/parse.rs index ccca4139c9b..9d243556c03 100644 --- a/src/libsyntax/parse.rs +++ b/src/libsyntax/parse.rs @@ -153,17 +153,6 @@ fn new_parser_from_file(sess: parse_sess, cfg: ast::crate_cfg, match io::read_whole_file_str(path) { result::Ok(move src) => { - // HACK: If the file contains a special token use a different - // source file. Used to send the stage1+ parser (the stage0 parser - // doesn't have this hack) to a different crate file. - // Transitional. Remove me. - let src = if src.starts_with("// DIVERT") { - let actual_path = &path.with_filestem("alternate_crate"); - result::unwrap(io::read_whole_file_str(actual_path)) - } else { - move src - }; - let filemap = sess.cm.new_filemap(path.to_str(), @move src); let srdr = lexer::new_string_reader(sess.span_diagnostic, filemap, sess.interner); |
