rust/src
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
..
cargo Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str. 2012-01-23 17:37:15 -08:00
comp Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str. 2012-01-23 17:37:15 -08:00
compiletest issue #1352: change param order on vec::init_elt, putting block in final position. 2012-01-21 13:33:16 -08:00
etc rustdoc: Add a script for running rustdoc output through markdown/pandoc 2012-01-23 15:16:14 -08:00
fuzzer Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str. 2012-01-23 17:37:15 -08:00
libcore core: Write docs that format correctly in markdown or pandoc 2012-01-23 17:11:01 -08:00
libstd std: Add some hacks to use libuv 2012-01-22 20:06:58 -08:00
libuv@f1859eb841 Re-add libuv as a submodule. 2011-11-08 19:01:47 -08:00
llvm@d578b905de Revert accidental change to LLVM submodule. 2012-01-19 21:39:49 -08:00
rt std: Add some hacks to use libuv 2012-01-22 20:06:58 -08:00
rustdoc Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str. 2012-01-23 17:37:15 -08:00
rustllvm llvm: Switch back to LLVM trunk 2012-01-13 11:05:59 -08:00
test add msgsend.rs to benchmarks 2012-01-23 16:04:14 -08:00
README.txt Rename some readmes and fix some dist logic. 2012-01-17 16:50:13 -08:00
snapshots.txt Register snapshots 2012-01-22 15:38:13 -08:00

This is preliminary version of the Rust compiler.

Source layout:

comp/              The self-hosted compiler

cargo/             The package manager

libcore/           The core library (imported and linked by default)
libstd/            The standard library (slightly more peripheral code)

rustllvm/          LLVM support code

rt/                The runtime system
rt/rust_*.cpp      - The majority of the runtime services
rt/isaac           - The PRNG used for pseudo-random choices in the runtime
rt/bigint          - The bigint library used for the 'big' type
rt/uthash          - Small hashtable-and-list library for C, used in runtime
rt/libuv           - The library used for async IO in the runtime
rt/{sync,util}     - Small utility classes for the runtime.

test/              Testsuite
test/compile-fail  - Tests that should fail to compile
test/run-fail      - Tests that should compile, run and fail
test/run-pass      - Tests that should compile, run and succeed
test/bench         - Benchmarks and miscellanea

Please be gentle, it's a work in progress.