Patrick Walton
daaeac56b1
rustc: Fix long lines
2012-01-19 14:34:23 -08:00
Patrick Walton
bdb8f6cf52
rustc: "tag" -> "enum"
2012-01-19 14:24:03 -08:00
Brian Anderson
e6a7383a5f
cargo: Fix unused argument warning
2012-01-19 13:46:28 -08:00
Brian Anderson
48e916c8fa
libstd: Long lines
2012-01-19 13:44:07 -08:00
Brian Anderson
f15182fffc
Use fn~ to simplify the core::test interface
2012-01-19 13:37:01 -08:00
Tim Chevalier
3e25444e51
In trans, allow _|_-typed things to be the argument to fail
...
Rationale: _|_-typed things diverge, so it's safe to use them in
any context.
Closes #1465
2012-01-19 13:30:31 -08:00
Graydon Hoare
4e7de69cda
Partial fix for #1561 , doesn't actually "fix" the problem but you get output now.
...
There's still something wrong with #error here, possibly cross-crate issue.
2012-01-19 11:11:47 -08:00
Niko Matsakis
882bea5b6d
Rename fn*() to fn() as originally planned.
2012-01-19 07:11:50 -08:00
Niko Matsakis
1f0b3d2247
treat fn*() as fn&()
...
This is not my ideal way of going about things. I'd prefer not
to have expressions typed as fn*(), for example, but I couldn't
get that to work together with inferring the modes of arguments
and other corner cases.
2012-01-19 07:10:59 -08:00
Haitao Li
d699db699a
rustc: Refactor lint check and avoid a segv fault
...
The segv fault issue is #1566
2012-01-19 20:31:43 +08:00
Haitao Li
7ffb2cb7e8
rustc: Name the lint-style check module lint
...
Issue #1543
2012-01-19 17:54:38 +08:00
Haitao Li
327a15d58c
rustc: Add a usage pass to collect one-off analyses
...
This patch starts from move the analysis which checkes of probably
incorrectly usage of `int|uint` in native fn.
Issue #1543
2012-01-19 17:27:44 +08:00
Haitao Li
45c0651a49
rustc: Use io::println for time-passes data
...
Issue #1561
2012-01-19 17:25:15 +08:00
Tim Chevalier
5b028f527f
Remove support for the '.' after a nullary tag in a pattern
...
(Commit also includes lots of changes to remove '.'s that a git
merge messed up, or else it was monkeys.)
2012-01-19 01:04:59 -08:00
Brian Anderson
9df0306889
rustdoc: Cleanup
2012-01-19 00:14:41 -08:00
Brian Anderson
f77458a676
rustdoc: Remove nullary-tag dots
2012-01-19 00:08:51 -08:00
Brian Anderson
398dadfeca
rustdoc: Write the full path to each mod
2012-01-19 00:04:59 -08:00
Brian Anderson
42e5d451b7
rustdoc: Change the header scheme so that all mods are h2, fns h3
2012-01-19 00:04:59 -08:00
Brian Anderson
a5e0f037be
rustdoc: Add path_pass for recording full paths to mods
2012-01-19 00:04:59 -08:00
Brian Anderson
c54f53b9d9
rustdoc: Add path field to doc::moddoc
2012-01-19 00:04:59 -08:00
Tim Chevalier
04a2887f87
Remove '.' after nullary tags in patterns
...
Does what it says on the tin.
The next commit will remove support for this syntax.
2012-01-18 23:17:34 -08:00
Brian Anderson
ca7cfbe3d0
rustdoc: Add more rustdocs
2012-01-18 23:11:20 -08:00
Tim Chevalier
b141de657b
Merge remote-tracking branch 'mozilla/snap-stage3'
2012-01-18 23:01:40 -08:00
Tim Chevalier
88e11e567b
Register snapshots
2012-01-18 22:46:18 -08:00
Brian Anderson
fb82e6ab79
rustdoc: Write fn arg descriptions to markdown
2012-01-18 22:40:06 -08:00
Brian Anderson
266cc7b0c3
rustdoc: Add fn arg descriptions to the doc tree
2012-01-18 22:24:29 -08:00
Brian Anderson
515fdb2863
rustdoc: Change field order on doc::fndoc
2012-01-18 21:57:18 -08:00
Brian Anderson
e9ddfbe3fd
rustdoc: Ignore nil-typed return values
2012-01-18 21:50:35 -08:00
Brian Anderson
a02a943cec
rustdoc: Write markdown for mod description
2012-01-18 21:33:37 -08:00
Tim Chevalier
8c97854c7d
Allow any alternative (not just a block) to follow a nullary tag pattern
2012-01-18 21:29:02 -08:00
Tim Chevalier
209d8c854f
allow dotless nullary patterns inside or-patterns
2012-01-18 21:29:02 -08:00
Tim Chevalier
a453197734
Another minor parser fix for nullary-tag patterns
2012-01-18 21:29:02 -08:00
Tim Chevalier
bf83fd3091
Allow nullary tag names to be qualified
2012-01-18 21:29:02 -08:00
Brian Anderson
3ebf7b42bd
rustc: Assert that the parser doesn't assign node id 0
...
It is reserved for indicating the crate, but doesn't exist in the AST
2012-01-18 19:59:24 -08:00
Brian Anderson
20b8509594
rustdoc: Add mod docs attrs to the doc tree
2012-01-18 19:59:24 -08:00
Brian Anderson
e39e34776e
rustdoc: Assign AST ids to mod docs
2012-01-18 19:59:24 -08:00
Brian Anderson
5bbf72e11c
rustdoc: Add brief and desc fields to module docs
2012-01-18 19:59:24 -08:00
Brian Anderson
08da893cdb
rustdoc: Parse module docs
2012-01-18 19:59:23 -08:00
Elly Jones
eafc9854bd
[cargo] argh
2012-01-18 22:52:00 -05:00
Elly Jones
4bd713bb84
[cargo] refactor test_one_crate
2012-01-18 22:36:57 -05:00
Graydon Hoare
1ce288d5aa
fix long line
2012-01-18 19:26:19 -08:00
Elly Jones
ad0065fe83
[cargo] add --test flag to install
2012-01-18 22:16:14 -05:00
Graydon Hoare
6a6aec04a2
Fix --out-dir a bit more in driver.
2012-01-18 18:44:07 -08:00
Niko Matsakis
54f6bf57e6
remove align_mode and rewrite GEP_tup_like to align correctly
...
Although the old version of GEP_tup_like was incorrect in some
cases, I do not believe we ever used it in an incorrect fashion.
In particular, it could go wrong with extended index sequences
like [0, 1, 3], but as near as I can tell we only ever use it
with short sequences like [0, i].
2012-01-18 17:20:46 -08:00
Niko Matsakis
da828747e6
correct use of GEP_tup_like in closure constr
...
also, streamline type_is_tup_like() to the cases which
actually work
2012-01-18 17:20:46 -08:00
Brian Anderson
2286d8c17e
rustdoc: Write argument names as code spans
2012-01-18 17:11:58 -08:00
Brian Anderson
c06e62e0ce
rustdoc: Write markdown for argument types
2012-01-18 17:10:04 -08:00
Brian Anderson
6da55efa4e
rustdoc: Add argument types to the doc
2012-01-18 17:05:03 -08:00
Brian Anderson
f3fa7c1555
rustdoc: Extract functions from tystr_pass::fold_fn
2012-01-18 16:09:32 -08:00
Brian Anderson
cbd7e8ed1b
rustdoc: Prune unconfigured items from AST
2012-01-18 15:48:09 -08:00
Brian Anderson
1b839a61c4
rustdoc: Write markdown for fn arguments
2012-01-18 15:02:43 -08:00
Brian Anderson
29df58d73b
rustdoc: Introduce type doc::argdoc
2012-01-18 15:02:43 -08:00
Brian Anderson
38852bf0a4
rustdoc: Extract function argument names from the AST
2012-01-18 15:02:43 -08:00
Brian Anderson
92f63b90f9
rustdoc: Merge the crate's name attribute into the doc tree
2012-01-18 15:02:43 -08:00
Brian Anderson
60b475ea88
rustdoc: Parse crate name from #[link] attr
2012-01-18 15:02:43 -08:00
Brian Anderson
810af2dada
rustdoc: Put fn docs inside fn bodies
2012-01-18 15:02:43 -08:00
Brian Anderson
9191911499
rustdoc: Document attr_parser::doc_meta
2012-01-18 15:02:42 -08:00
Patrick Walton
5ac57d1891
test: Don't test that tags with zero variants are supported
2012-01-18 12:43:01 -08:00
Patrick Walton
1aaee20737
rustc: Accept commas to separate tag variants
2012-01-18 12:27:12 -08:00
Haitao Li
7b1724fb40
libstd: Revert an integer type casting
...
Otherwise, rustctest failed by a segv fault.
2012-01-19 02:24:22 +08:00
Haitao Li
04882d7c43
rustc: Use integer from ctypes consistently
2012-01-19 02:10:36 +08:00
Haitao Li
dde41869ce
Use ctypes in native function declarations
2012-01-19 02:10:36 +08:00
Haitao Li
f03eb96f39
rustc: Warn when int or uint is used in a native type decl
...
Issue #1403
2012-01-19 02:10:36 +08:00
Brian Anderson
2d85e8f59a
rustdoc: Improve formatting of return type
2012-01-17 23:53:24 -08:00
Brian Anderson
6c295c0f49
rustdoc: Write a single line between brief and desc
2012-01-17 23:42:26 -08:00
Brian Anderson
c4d2cc4015
rustdoc: Extract various gen functions
2012-01-17 23:39:22 -08:00
Brian Anderson
c17d58d5ba
rustdoc: Extract boilerplate from gen tests
2012-01-17 23:33:11 -08:00
Brian Anderson
0142e807dd
rustdoc: Write blank lines after brief descriptions
2012-01-17 23:29:23 -08:00
Brian Anderson
971236e8f7
rustdoc: Remove some debug logging
2012-01-17 23:13:24 -08:00
Niko Matsakis
31b25d81eb
use 64-bit memset on 64-bit platforms. Fixes #1546 . Fixes #843 .
...
Actually, we don't "fix" #843 so much as close it: as with memmove,
we simply use an alignment of 1 with dynamically sized types.
2012-01-17 20:21:09 -08:00
Niko Matsakis
7bc2930cfa
roll back commit 1c7a62
2012-01-17 20:21:09 -08:00
Brian Anderson
6e27b27cf8
libstd: Move std tests into libstd
2012-01-17 19:48:58 -08:00
Brian Anderson
17bf4b0e1b
libcore: Move core tests into libcore
2012-01-17 19:41:05 -08:00
Brian Anderson
de4053f473
build: Start running libcore tests
2012-01-17 19:41:05 -08:00
Brian Anderson
8acae671c7
rustc: Allow std to be built as a test runner
2012-01-17 19:41:05 -08:00
Brian Anderson
e23e45bc6d
rustdoc: Add rustdocs
2012-01-17 17:45:37 -08:00
Brian Anderson
5fbadd24ec
rustdoc: Cleanup
2012-01-17 17:45:37 -08:00
Graydon Hoare
80c7bfb069
Rename some readmes and fix some dist logic.
2012-01-17 16:50:13 -08:00
Brian Anderson
cf31eca597
rustdoc: Write a blank line after headers
2012-01-17 16:31:26 -08:00
Brian Anderson
637f19965f
rustdoc: Convert markdown generation to a pass
2012-01-17 16:31:26 -08:00
Brian Anderson
a6bdaee7f9
rustdoc: Remove iface. Causing random crashes in resolve?
2012-01-17 16:31:26 -08:00
Brian Anderson
c0df13958c
Update crates with correct crate_type attribute
2012-01-17 15:13:43 -08:00
Brian Anderson
47b9fc278e
rustc: --test overrides the crate_type attribute
2012-01-17 15:13:43 -08:00
Brian Anderson
b4fc99e09e
dist: Add bin directory to system PATH in win32 installer
2012-01-17 14:07:17 -08:00
Graydon Hoare
92671d6a30
Python!
2012-01-17 12:54:23 -08:00
Graydon Hoare
2a42092e70
Long line, grumble.
2012-01-17 12:51:31 -08:00
Graydon Hoare
711fc20d88
Merge pull request #1544 from kevina/issue-1393
...
Minor cleanups to custom discriminator code.
2012-01-17 12:45:09 -08:00
Graydon Hoare
c4553caab3
Merge pull request #1554 from rtanglao/master
...
rustdocs for box.rs, comm.rs, ctypes.rs, char.rs
2012-01-17 12:44:25 -08:00
Graydon Hoare
65e3c35c8d
Merge pull request #1548 from grahame/fix-interrupted-downloads
...
don't leave files that will not checksum if download is interrupted
2012-01-17 12:43:30 -08:00
Roland Tanglao
93be00f995
Remove un-needed <
2012-01-17 11:56:13 -08:00
Brian Anderson
4ac44492c4
dist: Add the uninstaller to the win32 control panel
2012-01-17 11:36:21 -08:00
Brian Anderson
ac79f6100b
libcore: Remove bogus FIXME from core::tuple
2012-01-17 11:20:20 -08:00
Brian Anderson
943fcf6cdf
dist: Make the win32 uninstaller work
2012-01-17 11:19:38 -08:00
Lenny222
b19fdcced2
libstd => libcore
2012-01-17 10:51:43 -08:00
Lenny222
106dcf7b92
spin-off rustdocs tuple code to libstd
2012-01-17 10:51:43 -08:00
Niko Matsakis
a83ad1b9e6
encode variant names and have log print them out.
2012-01-17 10:33:28 -08:00
Tim Chevalier
c3bc8fada8
Allow omission of the '.' after nullary tag patterns
...
This commit allows patterns like:
alt x { some(_) { ... } none { } }
without the '.' after none. The parser suspends judgment about
whether a bare ident is a tag or a new bound variable; instead,
the resolver disambiguates.
This means that any code after resolution that pattern-matches on
patterns needs to call pat_util::normalize_pat, which consults
an environment to do this disambiguation.
In addition, local variables are no longer allowed to shadow
tag names, so this required changing some code (e.g. renaming
variables named "mut", and renaming ast::sub to subtract).
The parser currently accepts patterns with and without the '.'.
Once the compiler and libraries are changed, it will no longer
accept the '.'.
2012-01-17 10:08:16 -08:00
Tim Chevalier
a7bd817017
Fail slightly more gracefully when given an -o filename that doesn't have an extension
2012-01-17 10:08:16 -08:00
Marijn Haverbeke
87418dbc93
Prevent pretty-printer from trying to consume stdin twice
...
Why this didn't fail on my machine, I don't know.
2012-01-17 17:44:38 +01:00
Marijn Haverbeke
54d5a9846f
Try to fix pretty-printer failure
...
I can't reproduce it on my side, unfortunately.
2012-01-17 17:12:58 +01:00