Commit Graph

9491 Commits

Author SHA1 Message Date
Tim Chevalier
030404c793 Cleanup FIXMEs in syntax::ext::qquote
Inline some one-off functions, add an error message, annotate a FIXME
2012-04-19 15:30:58 -07:00
Tim Chevalier
e6b5b4827b Removed a FIXME from librustcsyntax/ext/build.rs
I removed a FIXME about cleaning up function names because I
couldn't tell what needed cleaning up. If you know, please add a
FIXME and a corresponding issue tracker issue that explains the
problem!
2012-04-19 15:30:58 -07:00
Tim Chevalier
df28ab1bd1 Comments only: annotate FIXMEs in lexer 2012-04-19 15:24:49 -07:00
Niko Matsakis
a17d065c58 Merge pull request #2241 from jwise/master
simple update of keywords.txt
2012-04-19 10:58:45 -07:00
Brian Anderson
7a1dc76b0f core: Move set_exit_status from sys to os 2012-04-19 01:26:17 -07:00
Brian Anderson
1cad6322c3 core: Move last_os_error from sys to os 2012-04-19 01:23:00 -07:00
Brian Anderson
01e20dd0b3 core: Improve docs 2012-04-19 01:18:37 -07:00
Joshua Wise
e5f51bf5ef doc: Update keywords.txt with modern list of keywords derived from parser. 2012-04-19 00:05:55 -07:00
Brian Anderson
9604544e23 rt: Don't log in the stack switching failure path
The runtime is in an uncertain state here and, instead of thinking
about how to make the logger work correctly, let's just avoid it.

Currently, it ends up hitting an assert saying that we can't log on
the rust stack.
2012-04-18 18:45:24 -07:00
Graydon Hoare
75cf13ec72 Add str/& component accessor and test. 2012-04-18 17:50:58 -07:00
Graydon Hoare
956bc773c6 Fix [] on str to exclude the trailing null. 2012-04-18 17:50:58 -07:00
Brian Anderson
9a8a04629e syntax: Put the main parser interface in mod parse 2012-04-18 10:50:50 -07:00
Brian Anderson
2c0cb901c8 syntax: Begin moving functions from mod parser to mod classify 2012-04-18 10:50:50 -07:00
Brian Anderson
d51973a6a6 syntax: Move some functions from parser to token 2012-04-18 10:50:50 -07:00
Brian Anderson
476d5a099d syntax: Extract prec mod from parser mod 2012-04-18 10:50:50 -07:00
Marijn Haverbeke
aa4278a3f5 Require values to be copyable when cast
Closes #2222
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
a65af017ca Remove tri.rs and four.rs
Closes #1892
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
fda7bb6721 Fix oversight in type_use.rs
Closes #2053
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
73ea690016 Describe new for construct in the tutorial
Closes #2141
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
054a312a33 Stop duplicating non-generic resource destructors
Closes #2177
2012-04-18 17:21:39 +02:00
Marijn Haverbeke
a0fa099469 Add a needs_drop intrinsic
Closes #2055
2012-04-18 13:15:02 +02:00
Marijn Haverbeke
35b8f87b89 Fix use of wrong block context in return-from-loop code
Closes #2142
2012-04-18 13:00:18 +02:00
Brian Anderson
321ccc123d syntax: Add explicit exports in parser mods 2012-04-17 20:10:58 -07:00
Graydon Hoare
70a9ce626d Implement slice-borrowing on estr-uniq and str values. 2012-04-17 15:15:20 -07:00
Brian Anderson
fac7fcc123 syntax: Remove extra 'mut' from bad word table 2012-04-17 14:22:47 -07:00
Niko Matsakis
4c26d70a0a new debug flag, new test 2012-04-17 12:02:36 -07:00
Niko Matsakis
6b549f9f14 repair LUB/GLB of free/scope regions, and enable test 2012-04-17 12:02:36 -07:00
Niko Matsakis
58f8cb343d change printout to be what users will expect 2012-04-17 12:02:36 -07:00
Niko Matsakis
2b5ad256f5 along long lines if they contain error msgs 2012-04-17 12:02:36 -07:00
Patrick Walton
f9eca218e1 etc: Modernize the indenter 2012-04-17 08:01:17 -07:00
Niko Matsakis
35a93e61d4 rewrite region resolution so it takes place in typeck 2012-04-16 19:48:00 -07:00
Brian Anderson
a532ad2828 Merge pull request #2224 from tedhorst/cleandsym
properly clean .dSYM directories
2012-04-16 18:27:04 -07:00
Ted Horst
71be233432 properly clean .dSYM directories 2012-04-16 19:44:40 -05:00
Graydon Hoare
82727b926f Get explicit unique estrs working. 2012-04-16 16:17:51 -07:00
Brian Anderson
dea8ae4e6f rustc: Resolve external impls defined in yet other crates. Issue #2196 2012-04-16 14:58:58 -07:00
Brian Anderson
c461fc869c test: Add xfailed test for #2196 2012-04-16 13:51:40 -07:00
Brian Anderson
2a957237da Add Evan McClanahan to AUTHORS.txt 2012-04-16 13:01:30 -07:00
Brian Anderson
6b398e1978 Merge pull request #2184 from evanmcc/local_rust
add the configure option --enable-local-rust to pull rust from your environment
2012-04-16 12:59:51 -07:00
Brian Anderson
f466a2fa8f rustc: -L also indicates the location of native libraries
-L currently specifies paths to search for Rust crates

Building crates that use native libraries is difficult. When the
library is located somewhere unexpected there is no way
to tell rustc additional paths to look in.

If libclang is located at `.` then rustc is not going to
know that and linking will fail.

To get around that I often end up inserting

    #[link_args = "-L."] native mod m { }

into other crates to get them to build.

Now you just `rustc -L .` and it builds.

This doesn't do any rpathing so it's still up to somebody else
to put the library somewhere it will be found or use LD_LIBRARY_PATH

This feature comes with a single, XFAILed test, because I could
not think of a way to test it. Odd.
2012-04-16 12:33:21 -07:00
Brian Anderson
903cb0e3a5 core: Factor out uint/u8/16/32/64 mods into uint-template 2012-04-16 12:31:34 -07:00
Brian Anderson
6bb181341b core: Factor out int/i8/16/32/64 mods into int-template 2012-04-16 12:31:34 -07:00
Brian Anderson
7a2d7aa5de core: Add extension methods for is_null, is_not_null 2012-04-15 21:46:29 -07:00
Brian Anderson
0f65872438 Add Alexander Stavonin to AUTHORS.txt 2012-04-15 16:20:34 -07:00
Brian Anderson
79a6fe5c7b Merge pull request #2211 from astavonin/master
export buf_len from ptr
2012-04-15 16:18:39 -07:00
Brian Anderson
b78ca38380 syntax: Remove unused lexer field 2012-04-15 05:13:10 -07:00
Brian Anderson
3df37c3c45 syntax: Cleanup in diagnostic 2012-04-15 04:40:05 -07:00
Brian Anderson
e88b17c3b2 syntax: Limit exports in codemap 2012-04-15 04:34:51 -07:00
Brian Anderson
34ba1850b9 syntax: Some minor lexer refactoring 2012-04-15 04:19:52 -07:00
Brian Anderson
4b4f064315 syntax: lexer doesn't need to store the src length 2012-04-15 04:02:25 -07:00
Brian Anderson
2319c2d1ba syntax: lexer doesn't need a codemap 2012-04-15 03:57:24 -07:00