1
Fork 0
Empowering everyone to build reliable and efficient software. Gabriel's commits. https://www.rust-lang.org/
Find a file
Kevin Atkinson ad21d9c64a Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.
This correctly fixes issue #1362.

chpos/byte_pos are now the offsets within a particular file, but
rather the offsets within a virtual file with is formed by combing all
of the modules within a crate.  Thus, resetting them to 0 causes an
overlap and hence, bogus source locations.

Fix #1362 by moving chpos/byte_pos to parse_sess so that
new_parser_from_source_str has access to them and hence can chose an
initial value that is not already been used in the crate.

Note that the trigger for bug 1361 was that syntax/ext/expand.rs calls
parse_expr_from_source_str (which calls new_parser_from_source_str)
using the same codemap as the current crate (and hence causing overlap
with files in the crate as new_parser_from_source_str resets the
chpos/byte_pos to 0).
2012-01-23 17:37:15 -08:00
doc Update docs to reflect new export forms 2012-01-23 16:35:39 -08:00
man rustc: Name the lint-style check module lint 2012-01-19 17:54:38 +08:00
mk Add an INSTALL.txt and make it part of the source distribution 2012-01-23 16:07:01 -06:00
src Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str. 2012-01-23 17:37:15 -08:00
.gitignore Update .gitignore 2012-01-20 17:26:20 -08:00
.gitmodules Re-add libuv as a submodule. 2011-11-08 19:01:47 -08:00
AUTHORS.txt Merge pull request #1620 from thoughtpolice/email-fix 2012-01-23 14:01:07 -08:00
configure build: Run tutorial tests 2012-01-20 19:56:06 -08:00
INSTALL.txt doc: Just remove mention of the busted win installer from INSTALL.txt 2012-01-23 14:15:40 -08:00
LICENSE.txt BSD -> MIT, they're legally synonymous as far as I know. Just being clearer. 2012-01-17 18:58:06 -08:00
Makefile.in Merge pull request #1583 from killerswan/ubuntu_ppa 2012-01-20 16:12:50 -08:00
README.txt Rename some readmes and fix some dist logic. 2012-01-17 16:50:13 -08:00
RELEASES.txt doc: Fix typo in RELEASES.txt 2012-01-19 22:54:08 -08:00

This is a compiler and suite of associated libraries and documentation for the
Rust programming language.

See LICENSE.txt for terms of copyright and redistribution.

See http://www.rust-lang.org for more information.