Brian Anderson
1ac28c36ac
Remove unused types from codemap
2012-11-16 14:35:43 -08:00
Brian Anderson
4a5b28ff0c
Stop tracking CodeMap offsets in the parse session. Big simplification
2012-11-16 14:22:09 -08:00
Brian Anderson
2374154ded
Stop storing char positions in CodeMap
2012-11-16 14:10:17 -08:00
Brian Anderson
81d20156cd
Change spans to use byte offsets instead of char offsets
2012-11-16 12:06:44 -08:00
Brian Anderson
8cba337cce
Remove CodeMap.lookup_byte_pos
2012-11-15 17:32:14 -08:00
Brian Anderson
d5e35e3e87
Convert CodeMap and FileMap to use &self instead of @self
2012-11-15 15:00:49 -08:00
Brian Anderson
bcccf333ab
Add some comments to codemap and lexer
2012-11-15 14:43:31 -08:00
Brian Anderson
4a0f4f5e31
Refactor the lexer to use FilePos types
2012-11-15 14:24:53 -08:00
Brian Anderson
b1dff40bae
Create CodeMap.add_filemap
2012-11-14 21:56:58 -08:00
Brian Anderson
3a9ccd53e5
Factor out some position management code in the lexer
2012-11-14 21:56:55 -08:00
Brian Anderson
8069d2f266
Track character and byte positions together in the parser
2012-11-14 16:34:50 -08:00
Brian Anderson
f67bfe9738
Add types for character position and byte position in the codemap
2012-11-14 15:18:29 -08:00
Brian Anderson
9ecf86343a
Camel case all the codemap types except span
2012-11-14 15:18:26 -08:00
Brian Anderson
38b9740668
Remove unused get_snippet function from codemap
2012-11-12 18:36:03 -08:00
Brian Anderson
b22f941487
Make it clearer which codemap functions use chars vs. bytes
2012-11-12 18:35:17 -08:00
Brian Anderson
2ec09c4eb9
Objectify the codemap
2012-11-12 18:24:56 -08:00
Brian Anderson
15a5d2ccbf
Convert codemap from legacy_exports
2012-11-12 17:26:02 -08:00
Brian Anderson
d115944809
Remove expn_info box typedef from codemap
2012-11-12 17:19:56 -08:00
Brian Anderson
18a825bda0
Reorder codemap decls
2012-11-12 17:14:15 -08:00
Brian Anderson
5b248a6ca8
Remove CodeMap box typedef from codemap
2012-11-12 17:09:52 -08:00
Brian Anderson
385a4668e5
Reformatting in codemap
2012-11-12 16:47:17 -08:00
Brian Anderson
9fc75e8d66
Move codemap doc comments to the proper place
2012-11-12 16:45:24 -08:00
Brian Anderson
1f3303163c
Move filemap ctors to static methods
2012-11-12 16:44:53 -08:00
Brian Anderson
5f881b48cb
Remove filemap box typedef from codemap
2012-11-12 16:41:20 -08:00
Brian Anderson
4c68084963
Convert most codemap types from records to structs
2012-11-12 16:21:39 -08:00
Brian Anderson
f05e2da709
Add a test for multiple main functions
2012-11-09 12:13:55 -08:00
Brian Anderson
3f816bdd57
xfail-fast run-pass/pub-use-xcrate
2012-11-08 19:02:25 -08:00
Brian Anderson
166c10e666
std: Eliminate copy warning
2012-11-08 17:14:02 -08:00
Brian Anderson
c78020ef4f
Whitespace
2012-11-08 17:11:44 -08:00
Brian Anderson
8643f757a2
rustc: Fix cross-crate reexports. #3908 . r=pcwalton
2012-11-08 17:10:48 -08:00
Brian J. Burg
a5718ba377
Change option::expect to not require a Copy bound, and move instead.
2012-11-08 16:25:22 -08:00
Brian Anderson
17020244e4
Merge pull request #3923 from am0d/master
...
Fixes issue #3891
2012-11-08 12:35:14 -08:00
Brian Anderson
9f15237937
Attempt to fix tools.mk under cross-compile
2012-11-07 21:19:01 -08:00
a_m0d
062ac8cb97
Fix whitespace issues from previous commits.
...
Also added test for #3891 .
2012-11-07 23:49:01 -05:00
Patrick Walton
0fc952372a
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-07 19:29:30 -08:00
Patrick Walton
b223c9c465
rustc: Autovivify modules even when a type def is present in resolve. Closes #3931 . rs=nasty-bug
2012-11-07 14:28:16 -08:00
Brian Anderson
13c01dd48a
Fix make install rules for new libraries
2012-11-07 14:05:45 -08:00
Brian Anderson
c2ffa3e916
Fix install target for new libraries
2012-11-07 14:05:45 -08:00
Brian Anderson
69a8b4d8e2
Rename src/rustc to src/librustc. Use the driver crate
2012-11-07 13:53:39 -08:00
Patrick Walton
f72ef31ede
rustc: Long lines
2012-11-07 13:48:09 -08:00
Patrick Walton
2904095570
rustc: Implement the Drop trait. r=brson
2012-11-07 12:34:32 -08:00
Patrick Walton
70886d314d
libstd: Implement a thread pool. r=brson
2012-11-07 12:05:41 -08:00
Brian Anderson
c88c969b3e
Merge pull request #3932 from z0w0/mutptr
...
Implement Ptr trait for mutable unsafe pointers. Closes #3926 .
2012-11-06 22:56:12 -08:00
Zack Corr
a54d046174
Implement Ptr trait for mutable unsafe pointers. Closes #3926 .
2012-11-07 16:24:29 +10:00
Graydon Hoare
92e3a8c17e
rustc: reuse const vals, translate fn paths as consts. Close #2530 .
2012-11-06 17:13:52 -08:00
a_m0d
d42cf97bcc
Fix trailing whitespace issues
2012-11-06 19:16:01 -05:00
a_m0d
59a592f4c4
Add end_of_file handling to TcpBufferedSocket.
...
This fixes #3891 .
Also removed debug!(...) statement from socket destructor which causes a
crash when the logging level is set to debug.
2012-11-06 19:12:26 -05:00
Niko Matsakis
b0ed151539
Cleanup how we handle proto in types, remove unsound subtyping
...
Fixes #1896 which was never truly fixed, just masked.
The given tests would have failed had they used `~fn()` and
not `@fn()`. They now result in compilation errors.
Fixes #2978 .
Necessary first step for #2202 , #2263 .
2012-11-06 08:56:29 -08:00
Brian Anderson
53ec6c3f9b
rt: Remove shape code
2012-11-05 15:22:35 -08:00
Brian Anderson
bc3f89e92b
rustc: Stop declaring unused upcalls
2012-11-05 15:22:35 -08:00