diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-26 16:27:12 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-26 20:15:23 -0700 |
| commit | e8fe718bfd4d88b0bc59117326a14a10f2598568 (patch) | |
| tree | 5fdc1f4bfbd51f490ee30a846491f4c0e6dfac4b /src/libsyntax/parse.rs | |
| parent | 64de6d638da71f7b3a55d663b194b95f7f06d6c8 (diff) | |
| download | rust-e8fe718bfd4d88b0bc59117326a14a10f2598568.tar.gz rust-e8fe718bfd4d88b0bc59117326a14a10f2598568.zip | |
core: Replace map/map_default with map_ref/map_default_ref
Diffstat (limited to 'src/libsyntax/parse.rs')
| -rw-r--r-- | src/libsyntax/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse.rs b/src/libsyntax/parse.rs index 751b3ce62b9..2c04b2a1419 100644 --- a/src/libsyntax/parse.rs +++ b/src/libsyntax/parse.rs @@ -73,7 +73,7 @@ fn parse_crate_from_crate_file(input: &Path, cfg: ast::crate_cfg, sess.chpos = rdr.chpos; sess.byte_pos = sess.byte_pos + rdr.pos; let cx = @{sess: sess, cfg: /* FIXME (#2543) */ copy p.cfg}; - let companionmod = input.filestem().map(|s| Path(s)); + let companionmod = input.filestem().map(|s| Path(*s)); let (m, attrs) = eval::eval_crate_directives_to_mod( cx, cdirs, &prefix, &companionmod); let mut hi = p.span.hi; |
