Brian Anderson
628e80d525
syntax: Extract attribute parsing to its own mod
2012-04-19 21:58:45 -07:00
Niko Matsakis
3d6c79109e
update syntax to include a slash
2012-04-19 21:01:11 -07:00
Niko Matsakis
3c995fb8f3
make nominal types optionally parameterized by a self region.
...
Issue #2201 .
2012-04-19 21:01:11 -07:00
Niko Matsakis
f3f34bf09b
correct universally_quantify to use structure_of, and introduce a test for this
2012-04-19 21:01:11 -07:00
Niko Matsakis
bbfb83c2c5
Test for issue #1899 . It works now.
2012-04-19 20:54:23 -07:00
Niko Matsakis
171c89f4c5
Fix for #1989 , #1469 : when marking in CC, walk fn@ box like other boxes
2012-04-19 20:34:26 -07:00
Niko Matsakis
21f74be2c1
add a new runtime log (::rt::box) and make boxed_region use it
2012-04-19 20:34:26 -07:00
Brian Anderson
8be944e89e
doc: Remove unused keywords.txt
2012-04-19 20:06:13 -07:00
Tim Chevalier
31ff64c62d
Annotate FIXMEs in parser
...
Also, get rid of two FIXMEs by refactoring some code, and moving the
call_expr check for be expressions into typeck, where it seems to
make more sense.
2012-04-19 19:17:59 -07:00
Tim Chevalier
cdc8722f95
Add a lint pass to check for while true { ... } loops
...
And suggest changing them to loop { ... }. Had to fix the few
remaining while true loops (in core::io). Closes #1962 .
2012-04-19 18:14:38 -07:00
Brian Anderson
594d22e7e2
doc: Update keyword list
2012-04-19 16:59:28 -07:00
Brian Anderson
b9ae0c555b
syntax: Funnel all words through a single keyword table
2012-04-19 16:59:28 -07:00
Graydon Hoare
f641dce852
Get evec slices and unique-evec slice-borrowing working.
2012-04-19 16:51:37 -07:00
Tim Chevalier
b0074c5a92
Disallow rebinding / matching against consts in alts
...
As per Issue #1193 . Closes #1193 .
I had to rename a few variables ("info" and "epsilon") to avoid
clashing with in-scope constants, which is responsible for all the
changes other than resolve and issue-1193.rs.
2012-04-19 16:21:15 -07:00
Graydon Hoare
1e51196f33
Get fixed-size evecs working.
2012-04-19 15:52:50 -07:00
Brian Anderson
7ba0dce013
build: Fix logic around --enable-local-rust
2012-04-19 15:46:25 -07:00
Tim Chevalier
cd2effe022
Annotate FIXMEs (comments only)
2012-04-19 15:30:59 -07:00
Tim Chevalier
37ea010b0d
Move some functions from pprust to classify
...
As per a FIXME in syntax::parse::classify, move predicates on exprs
and stmts into classify, out of pprust
2012-04-19 15:30:58 -07:00
Tim Chevalier
1da18c70ac
Clean up FIXMEs in syntax::fold
...
Eta-reduce a function, fold over ty constrs, and annotate a FIXME.
2012-04-19 15:30:58 -07:00
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