Commit graph

6893 commits

Author SHA1 Message Date
Elly Fong-Jones
6c7fbd27c9 [cargo] detect libs properly
The change to do build and test in different directories broke library
detection.
2012-01-21 14:59:10 -05:00
Haitao Li
2a59ab8fa5 rustc: Specify lint checks via crate attributes
A crate attribute like `#[lint(no_ctypes)]` can now be used to turn off
ctypes checking.

Issue #1543
2012-01-22 01:33:37 +08:00
Haitao Li
4d757b9e9f Remove keyword multitable generator script
The script was used for generating a easy to read Rust keywords table in
texinfo format.
2012-01-21 19:23:52 +08:00
Haitao Li
635e8200e1 rustc: Always resolve reexported names from original def
Issue #1501
2012-01-21 18:03:09 +08:00
Brian Anderson
a303fd98c7 cargo: Remove may package list. I am a proud cargo-central user 2012-01-20 23:19:35 -08:00
Brian Anderson
327c8bc733 build: Run tutorial tests 2012-01-20 19:56:06 -08:00
Tim Chevalier
ba5cc236f7 WIP on issue 1426 (exporting all tags)
Support Lenny222's proposed syntax for exporting a tag without
its variants, or selected tags from a variant, in the AST and parser.
No support further down the line yet. Tests are xfailed.
2012-01-20 19:48:33 -08:00
Tim Chevalier
e36df0f6c8 Handle fail after return correctly in typestate
Previously, typestate would conclude that this function was
correctly diverging:

fn f() -> ! { ret; fail; }

even though it always returns to the caller. It wasn't handling the
i_diverge and i_return bits correctly in the fail case. Fixed it.

Closes #897
2012-01-20 17:26:31 -08:00
Graydon Hoare
f49d781dc0 Fix formatting. 2012-01-20 16:12:25 -08:00
Graydon Hoare
32c9f7e8cf Merge pull request #1585 from mbrubeck/master
Update the keyword lists in rust.md and syntax.vim
2012-01-20 16:13:45 -08:00
Matt Brubeck
155601eefe Update the keyword lists in rust.md and syntax.vim
Add new keywords "enum" and "of", and remove old keywords "auth", "chan",
"log_err", "tag", and "task".

Also add reserved words to the syntax file, to help Vim users avoid using them
as identifiers.
2012-01-20 16:08:51 -08:00
Niko Matsakis
cac46eac4b revert accidental commits 2012-01-20 09:34:15 -08:00
Niko Matsakis
b7811e613d small fixes for building dist on windows 2012-01-20 08:59:07 -08:00
Kevin Cantu
62bef762a3 Add a Python script which downloads only the latest Linux snapshots (derived from other scripts here) 2012-01-20 04:23:07 -08:00
Brian Anderson
2d9910383e rust-mode: tag -> enum. Closes #1577 2012-01-20 01:04:50 -08:00
Tim Chevalier
d242edb57b Handle predicates that recurse in a check() expression
typestate was using the enclosing function ID for the "this function
returns" constraint, which meant confusion and panic in the case
where a predicate p includes "check p()". Fixed it to use a fresh
ID.

Closes #933
2012-01-19 22:53:22 -08:00
Tycho Sci
35cbcbe0c2 Fix cargo install * fails at assertion. 2012-01-20 14:50:33 +09:00
Graydon Hoare
e3cb1a9e50 Revert accidental change to LLVM submodule. 2012-01-19 21:39:49 -08:00
Ben Striegel
1a295096b1 tutorial.md: spelling corrections for sections 1-5 2012-01-20 00:22:05 -05:00
Graydon Hoare
7b1a8f0a91 Additional ; to , changes, disable "tag" and ";" in parser. Close #1430. Close #1428. 2012-01-19 19:29:21 -08:00
Patrick Walton
a23f188bdb rustc: Stop parsing "tag" 2012-01-19 19:23:47 -08:00
Brian Anderson
fdbe206a76 rustdoc: Make doc::retdoc non-optional 2012-01-19 19:14:29 -08:00
Patrick Walton
6222e98dda lib: ';' to ',' in enums in more places 2012-01-19 19:08:49 -08:00
Brian Anderson
2d2bdfe845 rustdoc: Write markdown for function signatures 2012-01-19 18:59:02 -08:00
Patrick Walton
d1fe582040 misc: ';' to ',' in enums in cargo, compiletest, and fuzzer 2012-01-19 18:47:30 -08:00
Patrick Walton
59ebe6af18 rustc: Make the pretty printer output commas after enum variants. Update all tests accordingly. 2012-01-19 18:41:06 -08:00
Brian Anderson
c6278e53dc rustdoc: Remove debug logging 2012-01-19 18:36:20 -08:00
Brian Anderson
2a442f9f8f rustdoc: Add function signatures to the doc tree 2012-01-19 18:14:17 -08:00
Brian Anderson
991db34b5b rustc: Fix fun_to_str 2012-01-19 18:14:17 -08:00
Brian Anderson
052340980b rustdoc: Add function signature field to the doc::fndoc 2012-01-19 18:14:17 -08:00
Patrick Walton
c267821742 rustc: ";" to "," in enums 2012-01-19 18:04:25 -08:00
Patrick Walton
194d8e3bd5 lib: ";" to "," in enums 2012-01-19 18:04:24 -08:00
Graydon Hoare
874390831a Fix a bunch of broken internal links in the docs. Add a hokey link checker. 2012-01-19 17:50:21 -08:00
Brian Anderson
6d4884d983 libcore: Use 4x the number of scheduler threads for testing
An arbitrary number. I've done no measurements but it's intended to overcome
the effects of tasks randomly being scheduled to threads and no work stealing.

If scheduler threads == 1 then we just use a single test task.
2012-01-19 17:54:21 -08:00
Brian Anderson
928e55815c libcore: Do less blocking in the test runner 2012-01-19 17:54:21 -08:00
Patrick Walton
7a663032fb rustc: Remove trailing whitespace 2012-01-19 17:49:23 -08:00
Tim Chevalier
c7592803d9 Compute typestates for FRU exprs correctly, plus a bit of cleanup
The code in Issue 948 was causing typestate to diverge because
it was using the prestate for the whole expression -- not the post-
state for the fields list -- as the prestate for the record base
expression. Fixed.

Closes #948
2012-01-19 17:24:27 -08:00
Patrick Walton
b58f2b7bfb Merge pull request #1571 from kevina/fixup-1
Remove incorrect comments from a few test cases.
2012-01-19 17:21:29 -08:00
Kevin Atkinson
d388daa996 Remove incorrect comments from a few test cases. 2012-01-19 17:31:36 -07:00
Patrick Walton
035b56d8aa misc: "tag" -> "enum" for cargo, compiletest, fuzzer, rustdoc 2012-01-19 16:21:33 -08:00
Patrick Walton
3333fef1af test: "tag" -> "enum" in run-pass and run-fail 2012-01-19 16:11:17 -08:00
Patrick Walton
1461cfe416 test: "tag" -> "enum" in bench 2012-01-19 16:11:17 -08:00
Patrick Walton
d97783e3e5 test: "tag" -> "enum" in compile-fail 2012-01-19 16:01:47 -08:00
Patrick Walton
97ed871fc1 libcore: "tag" -> "enum" 2012-01-19 15:56:54 -08:00
Patrick Walton
c5a407b11b stdlib: "tag" -> "enum" 2012-01-19 15:22:25 -08:00
Patrick Walton
1731f5d709 test: Fix error patterns in name-clash-nullary 2012-01-19 14:47:43 -08:00
Tim Chevalier
94d2063577 Handle log expressions with a _|_-typed level
If we have log(foo, quux) where foo:_|_, just translate foo and
ignore the rest of the expression.

Closes #1459
2012-01-19 14:44:40 -08:00
Brian Anderson
840a057556 rustdoc: Add a blank line after the return value description 2012-01-19 14:35:19 -08:00
Brian Anderson
df9bf1f45f rustdoc: Attach return value descriptions to the doc tree 2012-01-19 14:35:18 -08:00
Brian Anderson
00afef0bd8 rustdoc: Run tystr pass before attr pass 2012-01-19 14:35:18 -08:00