Skip to content

Commit ea0c8b8

Browse files
committed
---
yaml --- r: 35270 b: refs/heads/master c: 42c2c2a h: refs/heads/master v: v3
1 parent ea121c4 commit ea0c8b8

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b9f9ab8f7775039e02cbe38c270c81e893da8e2b
2+
refs/heads/master: 42c2c2ab2f4dfa350dd01d33025cd5027a358d33
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/src/libsyntax/parse.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,6 @@ fn new_parser_from_file(sess: parse_sess, cfg: ast::crate_cfg,
153153
match io::read_whole_file_str(path) {
154154
result::Ok(move src) => {
155155

156-
// HACK: If the file contains a special token use a different
157-
// source file. Used to send the stage1+ parser (the stage0 parser
158-
// doesn't have this hack) to a different crate file.
159-
// Transitional. Remove me.
160-
let src = if src.starts_with("// DIVERT") {
161-
let actual_path = &path.with_filestem("alternate_crate");
162-
result::unwrap(io::read_whole_file_str(actual_path))
163-
} else {
164-
move src
165-
};
166-
167156
let filemap = sess.cm.new_filemap(path.to_str(), @move src);
168157
let srdr = lexer::new_string_reader(sess.span_diagnostic, filemap,
169158
sess.interner);

0 commit comments

Comments
 (0)