Marijn Haverbeke
d673f76fdf
Remove misguided indirect return in trans_closure
...
Closes #1528
2012-01-16 14:27:41 +01:00
Marijn Haverbeke
936c933fd8
Move emacs mode into tree
2012-01-16 12:44:24 +01:00
Marijn Haverbeke
1375b31c1c
Store type names in crate metadata
...
Improves type error messages referring to external types.
Issue #1507
2012-01-16 12:08:00 +01:00
Marijn Haverbeke
c2fe7b6398
When pretty-printing fn types, leave off arg modes when they are the default
...
This reduces ++/&& spam in the output to a bare minimum.
Issue #1507
2012-01-16 12:08:00 +01:00
Kevin Atkinson
e1c50c4410
Don't evaluate discriminator value constants when parsing.
...
Remove disr_val from ast::variant_ and always use ty::variant_info
when the value is needed. Move what was done during parsing into
other passes, primary typeck.rs. This move also correctly type checks
the disr. value expression; thus, fixing rustc --pretty=typed when
disr. values are used.
2012-01-16 11:19:33 +01:00
Marijn Haverbeke
96f1eda6d0
Be more careful about pretty-printing literals
...
Before, literal printing would basically get derailed completely when
a literal was encountered that did not end up being printed. This
caused the strangeness seen in #1532 .
Also cleans up pretty-printing of discriminants a little.
Closes #1510
Closes #1532
2012-01-16 11:19:32 +01:00
Kevin Atkinson
2d36a71aee
Update pretty printer to print out disr. values.
...
Partly fixes issue #1510 . "rustc --pretty=typed" fails.
2012-01-16 11:19:32 +01:00
Marijn Haverbeke
13b9a16a7b
Properly print u suffix for uint literals
...
Issue #1532
2012-01-16 11:19:32 +01:00
Brian Anderson
b39154233a
rustdoc: Attach the doc writer to the doc extractor
2012-01-16 01:07:42 -08:00
Brian Anderson
a8428a896e
rustdoc: Write fn docs
2012-01-16 01:07:42 -08:00
Brian Anderson
d928952191
rustdoc: Write crate name
2012-01-16 01:07:42 -08:00
Brian Anderson
ae584263da
rustdoc: Set the crate name in the top module
2012-01-16 01:07:42 -08:00
Brian Anderson
77690baa70
rustdoc: Attach the AST node id to fndocs
2012-01-16 01:07:42 -08:00
Brian Anderson
7a9ba240a0
rustdoc: Rename type rustdoc to gen::ctxt
2012-01-16 01:07:42 -08:00
Brian Anderson
906a7c2174
rustdoc: Move rustdoc type into the gen module
2012-01-16 01:07:42 -08:00
Brian Anderson
237d96512a
rustdoc: Wire up the doc extractor to attribute parser
2012-01-16 01:07:42 -08:00
Brian Anderson
763f3c4d5b
rustdoc: Add regression tests for existing attr parsing behavior
2012-01-16 01:07:42 -08:00
Brian Anderson
01fedcad77
rustdoc: Change parse_fn to take a vector of attributes
2012-01-16 01:07:42 -08:00
Brian Anderson
d85fa7c8dc
rustdoc: Rename parse_compound_fndoc to parse_fn
2012-01-16 01:07:42 -08:00
Brian Anderson
f3c4263635
rustdoc: Move parse_compound_fndoc into mod attr_parser
2012-01-16 01:07:42 -08:00
Brian Anderson
46a662ecb2
rustdoc: Build mod and fn nodes from the AST
2012-01-16 01:07:42 -08:00
Brian Anderson
995c50b69b
rustdoc: Add extract module for building doc model from AST
2012-01-16 01:07:41 -08:00
Brian Anderson
555d5aed37
rustdoc: Move markdown-writing functions into gen module
2012-01-16 01:07:41 -08:00
Brian Anderson
140fbd3019
rustdoc: Move document model into doc module
2012-01-16 01:07:41 -08:00
Brian Anderson
e32cf827ff
rustdoc: Add cratedoc and moddoc types
2012-01-16 01:07:41 -08:00
Brian Anderson
c59a0ec774
rustdoc: Move parse module to its own file
2012-01-16 01:07:41 -08:00
Brian Anderson
377316d8f6
rustdoc: Add parse::from_str for testing purposes
2012-01-16 01:07:41 -08:00
Brian Anderson
0e65ddfaea
rustdoc: Move AST parsing into the parse module
2012-01-16 01:07:41 -08:00
Jyun-Yan You
e4d553c534
use correct size for logging mod_entry state fields
...
The compiler outputs 32-bit values for these and on 64-bit FreeBSD
the runtime was scribbling on some state used by getenv and segfaulting.
2012-01-16 00:41:14 -08:00
Jyun-Yan You
79d7388455
add lgamma functions for FreeBSD
2012-01-16 00:38:52 -08:00
Kevin Cantu
d8b0a1910a
Added string functions: split_func, split_char, lines, lines_any, words,
...
and more tests
2012-01-15 20:20:06 -08:00
Brian Anderson
3466c9b4be
rustc: Parse fn inner attributes. Closes #1506
2012-01-15 17:48:58 -08:00
Brian Anderson
17585cc47e
rustc: Extract comman parts of view parsing
2012-01-15 16:25:31 -08:00
Brian Anderson
16462a77b0
build: Add rustdoc to tidy rules
2012-01-15 14:30:12 -08:00
Brian Anderson
66e97a9b08
rustdoc: Add a crate file
2012-01-15 14:30:12 -08:00
Brian Anderson
6860dcc958
Register snapshots
2012-01-15 13:50:37 -08:00
Brian Anderson
48debac944
Revert "Register snapshots"
...
This reverts commit 28423bddb1
.
2012-01-15 13:45:31 -08:00
Brian Anderson
28423bddb1
Register snapshots
2012-01-15 13:36:10 -08:00
Brian Anderson
7e6ce6637e
bench: Lower the default inputs on many shootout benchmarks
...
Make them run a bit faster during normal testing
2012-01-14 20:34:02 -08:00
Brian Anderson
1588ae204e
bench: Update shootout-nbody for style
2012-01-14 20:29:56 -08:00
Brian Anderson
93dcb9fb6b
bench: Update fannkuchredux for style
2012-01-14 20:13:03 -08:00
Brian Anderson
9c21673e3f
bench: Update shootout-binarytrees for style
2012-01-14 20:13:03 -08:00
Brian Anderson
c53d0a0af8
bench: Update shootout-ackermann for performance
2012-01-14 20:13:01 -08:00
Brian Anderson
492dba8bfe
bench: Update shootout-fibo for performance
2012-01-14 19:39:52 -08:00
Brian Anderson
bc77d7bdb0
libcore: Add sys::set_min_stack
...
Adding this back to the library as a stopgap measure to recover some benchmark
performance. See #1527 .
2012-01-14 19:24:33 -08:00
Brian Anderson
b93ed36555
Merge pull request #1521 from grahame/master
...
Simple update of the vim syntax file
2012-01-14 18:49:58 -08:00
Brian Anderson
c6f62b6374
bench: Update shootout-binarytrees to use unique boxes
...
Shared boxes have a huge performance overhead due to #1493
2012-01-14 17:02:51 -08:00
Brian Anderson
793e3b231c
rustc: Output a note about how to debug unexpected failures
2012-01-14 16:33:33 -08:00
Brian Anderson
cb8eabab3d
rustc: Fix tests
2012-01-14 15:14:43 -08:00
Brian Anderson
e36ea8e993
rustc: Run the compiler in a subtask and monitor the diagnostics
...
Since we are no longer logging to the console it's possible for us to
hit a plain-old-fail statement and not output anything.
This adds a defensive mechanism that will monitor the emitted errors
and compare them to the result of the compiler task. If the compiler
fails without emitting an error it results in an ICE.
2012-01-14 15:14:43 -08:00