Commit graph

8709 commits

Author SHA1 Message Date
Brian Anderson
b22556a6f8 core: Convert to rustdoc 2012-03-09 22:56:53 -08:00
Tim Chevalier
a0521971b1 Merge branch 'master' into floop-for-snapshot 2012-03-09 22:16:52 -08:00
Tim Chevalier
c758ef3f38 Register snapshots 2012-03-09 22:16:15 -08:00
Brian Anderson
e2dad03f44 rustdoc: Change the formatting for enum variants 2012-03-09 21:20:51 -08:00
Brian Anderson
863840e319 Add Damien Grassart to AUTHORS.txt 2012-03-09 18:18:33 -08:00
Brian Anderson
31ce3637da Merge pull request #1950 from damag/master
Update README.txt with the new path to the compiler
2012-03-09 18:17:38 -08:00
Brian Anderson
f9755c666d rustdoc: Simplify attribute parsing 2012-03-09 18:13:14 -08:00
Brian Anderson
effe4559d2 rustdoc: Accept the first sentence as the brief description 2012-03-09 18:13:14 -08:00
Brian Anderson
4fc5b822e2 rustdoc: Simplify the relation between the brief and long description
Brief is just used for indexes now
2012-03-09 18:13:14 -08:00
Damien Grassart
c19ea057fa The compiler is now in src/rustc 2012-03-10 02:51:38 +01:00
Patrick Walton
e8c7b5347d rustc: Add a region checking pass
Errors aren't reported yet, because the regions aren't properly inferred from the & operator at the moment and that would break the tests.
2012-03-09 17:39:32 -08:00
Brian Anderson
0905ad2bbe rustdoc: Vastly simplify the document model
Don't attempt to impose any structure for documenting arguments, return
values, etc.
2012-03-09 17:24:56 -08:00
Brian Anderson
9f4c0d71e5 rustdoc: Update the demo module 2012-03-09 17:24:56 -08:00
Brian Anderson
e399263b5e rustdoc: Write sections in markdown 2012-03-09 17:24:56 -08:00
Brian Anderson
0ad8265fee rustdoc: Add the concept of 'sections' 2012-03-09 17:24:55 -08:00
Tim Chevalier
321fd80219 Add an infinite loop construct
Add a loop {} construct for infinite loops, and use it in test
cases. See #1906 for details.
2012-03-09 16:40:58 -08:00
Patrick Walton
4ffcb95974 rustc: Perform region inference 2012-03-09 16:40:37 -08:00
Graydon Hoare
7f55e7d087 Add a couple more missing pieces to libc and os. 2012-03-09 16:38:23 -08:00
Patrick Walton
b7d3874349 rustc: Wrap regions in a node ID 2012-03-09 16:10:11 -08:00
Patrick Walton
7b938d8903 rustc: Add region def ids to the AST 2012-03-09 15:55:13 -08:00
Patrick Walton
e2f6052c6d Revert "rustc: Create def IDs for region parameters"
This reverts commit 0d4cb75949.
2012-03-09 14:40:36 -08:00
Patrick Walton
0d4cb75949 rustc: Create def IDs for region parameters 2012-03-09 14:06:43 -08:00
Patrick Walton
2975bcdd7d rustc: Stub a to-string implementation for region types
Not too useful without region resolution yet, but there it is.
2012-03-08 18:24:17 -08:00
Patrick Walton
92ed73d0bd rustc: Add pretty printing support for the address-of operator. Un-XFAIL-pretty simple-regions.rs. 2012-03-08 18:10:07 -08:00
Patrick Walton
c40bfec45d test: Add a simple region test, xfail'd in the pretty printer 2012-03-08 17:45:36 -08:00
Patrick Walton
8ce6b0dd21 rustc: Add appropriate type predicates for references. Simple uses of references/region pointers now work. 2012-03-08 17:22:43 -08:00
Brian Anderson
256146bba4 rustdoc: Rename desc_pass to text_pass 2012-03-08 17:00:03 -08:00
Patrick Walton
71799cff2b rustc: Actually write the type back 2012-03-08 16:44:33 -08:00
Patrick Walton
ddeaea2287 rustc: Change the address-of operator to an explicit production so that we can parse the mutability 2012-03-08 16:34:36 -08:00
Patrick Walton
0722786664 rustc: Add some missing cases in various folds for reference types and some broken trans code for the address-of operator 2012-03-08 15:55:28 -08:00
Tim Chevalier
0c5fdc8745 Rename last to last_opt, last_unsafe to last
As per discussion on IRC. I am about to file an RFC for further
discussion about the more general issue of whether to enforce
invariants through types, typestate, or dynamic checks, but for now,
removing the misleading name "last_unsafe".
2012-03-08 15:25:56 -08:00
Patrick Walton
8047c0cd68 rustc: Typecheck dereference operations on safe references.
They require unsafe blocks for now. This will be removed once they typecheck properly.
2012-03-08 15:08:26 -08:00
Brian Anderson
57596cbe53 rustdoc: Improve formatting of subsection headers 2012-03-08 15:05:13 -08:00
Brian Anderson
7d686d6372 rustdoc: Format return values consistently 2012-03-08 15:05:13 -08:00
Brian Anderson
6ad653bb31 rustdoc: Add some more demo docs 2012-03-08 15:05:13 -08:00
Brian Anderson
ac8b2c8354 rustdoc: Don't bother reporting the type of return values 2012-03-08 15:05:13 -08:00
Brian Anderson
5c28b2c1d1 rustdoc: Don't bother reporting the type of arguments
This is already displayed in the function signature. Simpler this way.
2012-03-08 15:05:13 -08:00
Patrick Walton
fcde161f4f rustc: Stub typechecking for the address-of operator 2012-03-08 14:55:51 -08:00
Tim Chevalier
d048a00cf3 Change util::unreachable to core::unreachable
Closes #1931
2012-03-08 14:30:01 -08:00
Patrick Walton
0824d1501b rustc: Add ty_rptr support to the visitor 2012-03-08 14:23:22 -08:00
Patrick Walton
0e17cdb627 rustc: Add regions to the type system 2012-03-08 14:05:56 -08:00
Tim Chevalier
ebc1d3e704 Rename last_total to last_unsafe
See Issue 1943 for any discussion (reopen it if necessary).

Closes #1943
2012-03-08 13:07:31 -08:00
Patrick Walton
c9cf73f0a8 rustc: represend -> represent in a comment 2012-03-08 13:01:08 -08:00
Brian Anderson
a7c4c18667 configure: Cleanup 2012-03-08 12:57:40 -08:00
Daniel Brooks
2049d1f05e only require git if the source looks like it was checked out from git, otherwise don't attempt to manage the submodules 2012-03-08 12:57:40 -08:00
Daniel Brooks
11b403d513 it'll fail if you don't have git, so mark that as required 2012-03-08 12:57:39 -08:00
Marijn Haverbeke
e71703db02 Properly serialize is_last_use values
They were all normalized to the same thing by the serializer.
2012-03-08 21:29:07 +01:00
Marijn Haverbeke
c71306b0db Explicitly store self_ids use for self locals in methods
This makes it possible to move them between crates without confusion,
and to instantiate them at a point where the monomorphizing
substitutions are known.

Issue #1944
2012-03-08 21:17:32 +01:00
Marijn Haverbeke
fd465f91a8 Drop collect_items pass, create decls on demand
This solves a problem with inlined functions that have inner functions.
2012-03-08 21:17:32 +01:00
Patrick Walton
6f8fe78120 rustc: Parse the safe address-of operator 2012-03-08 12:12:04 -08:00