Graydon Hoare
236b304f19
Convert some material covering items, view-items, types.
2012-01-16 16:13:34 -08:00
Graydon Hoare
e20d906718
Merge pull request #1540 from lht/exclude-stage3-by-default
...
build: Stop building stage3 on normal test cycles
2012-01-16 12:18:45 -08:00
Josh Matthews
ea1e360c15
Ensure library file always has a proper suffix.
2012-01-16 13:35:35 -05:00
Josh Matthews
1223bbc4de
Make str::replace smarter.
2012-01-16 13:35:35 -05:00
Marijn Haverbeke
b3927d6052
Don't write out type names when hashing types
...
I hope this is why my patch made things so much slower...
2012-01-16 17:03:51 +01:00
Marijn Haverbeke
d673f76fdf
Remove misguided indirect return in trans_closure
...
Closes #1528
2012-01-16 14:27:41 +01:00
Haitao Li
394a80cfd8
build: Stop building stage3 on normal test cycles
...
Issue #1419
2012-01-16 20:30:39 +08:00
Marijn Haverbeke
498ad91d06
Upgrade CodeMirror mode used to highlight the tutorial code
2012-01-16 13:07:16 +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
Kevin Atkinson
edf11ebf02
In the tutorial, document that C-like enums can have the discriminator
...
values set and that it is possible to cast them to scalar values.
2012-01-16 11:19:32 +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
b9cd983f36
build: Start running rustdoc tests
2012-01-16 01:07:41 -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
Brian Anderson
c847c80715
Add Kevin Cantu to AUTHORS.txt
2012-01-15 21:27:19 -08:00
Brian Anderson
350f4804d1
Merge pull request #1534 from killerswan/string_work
...
Added string functions: split_func, split_char, lines, lines_any, words
2012-01-15 21:26:19 -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