Skip to content

Commit c73a9c9

Browse files
committed
refactoring mod.rs
1 parent a2493ad commit c73a9c9

File tree

5 files changed

+437
-163
lines changed

5 files changed

+437
-163
lines changed

src/librustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub fn parse_input(sess: Session, cfg: ast::crate_cfg, input: &input)
149149
-> @ast::crate {
150150
match *input {
151151
file_input(ref file) => {
152-
parse::parse_crate_from_file_using_tts(&(*file), cfg, sess.parse_sess)
152+
parse::parse_crate_from_file(&(*file), cfg, sess.parse_sess)
153153
}
154154
str_input(ref src) => {
155155
// FIXME (#2319): Don't really want to box the source string

src/librustdoc/attr_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mod test {
7979

8080
let parse_sess = syntax::parse::new_parse_sess(None);
8181
let parser = parse::new_parser_from_source_str(
82-
parse_sess, ~[], ~"-", codemap::FssNone, @source);
82+
parse_sess, ~[], ~"-", @source);
8383
8484
parser.parse_outer_attributes()
8585
}

0 commit comments

Comments
 (0)