Kevin Cantu
8f367ebfeb
Rename (again) str::unsafe::slice -> str::unsafe::slice_bytes and
...
str::unsafe::safe_slice -> str::unsafe::slice_bytes_safe_range
2012-02-01 21:56:53 -08:00
Kevin Cantu
47c57a17dc
Propagating unsafe::slice 1
2012-02-01 21:56:53 -08:00
Tim Chevalier
e5d095d67e
Change option::t to option
...
Now that core exports "option" as a synonym for option::t, search-and-
replace option::t with option.
The only place that still refers to option::t are the modules in libcore
that use option, because fixing this requires a new snapshot
(forthcoming).
2012-01-31 17:05:20 -08:00
Tim Chevalier
fba35e1a3c
Require alts to be exhaustive
...
middle::check_alt does the work. Lots of changes to add default cases
into alts that were previously inexhaustive.
2012-01-31 10:08:24 -08:00
Patrick Walton
9ecd5ee81d
rustc: Split diagnostics into "span diagnostics" and "diagnostics".
...
The former contain a codemap (which is per-crate), and the latter don't. This
will be useful in order to allow more than one crate to be compiled in one run
of the compiler.
2012-01-24 21:42:54 -08:00
Grahame Bowland
fe70212f5a
suggest sync/init to user as appropriate
2012-01-25 00:08:58 +08:00
Brian Anderson
6766d0ead0
cargo: Long lines
2012-01-23 21:14:48 -08:00
Brian Anderson
5e9ca11c8d
cargo: Remove unused imports - work around mystery resolve failure
2012-01-23 21:08:13 -08:00
Brian Anderson
3d08840f34
Merge pull request #1628 from startling/cargo-descriptions
...
Implemented package descriptions for cargo
2012-01-23 20:46:33 -08:00
tim
2c3cd1749e
Added a newline after each description.
...
`<@graydon> maybe an extra newline to make the grouping clearer?`
2012-01-23 21:50:32 -06:00
tim
65840f3625
Get description
attribute for packages from json.
2012-01-23 21:42:29 -06:00
Niko Matsakis
5e13d19cc0
s/block()/fn()/g
2012-01-23 19:06:33 -08:00
tim
dfae48736f
Steps towards package descriptions.
...
I added a description field for `package` objects (it's read from
a literal string for now) and `print_pkg` now prints descriptions if
they're there.
2012-01-23 20:23:31 -06:00
Kevin Atkinson
ad21d9c64a
Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.
...
This correctly fixes issue #1362 .
chpos/byte_pos are now the offsets within a particular file, but
rather the offsets within a virtual file with is formed by combing all
of the modules within a crate. Thus, resetting them to 0 causes an
overlap and hence, bogus source locations.
Fix #1362 by moving chpos/byte_pos to parse_sess so that
new_parser_from_source_str has access to them and hence can chose an
initial value that is not already been used in the crate.
Note that the trigger for bug 1361 was that syntax/ext/expand.rs calls
parse_expr_from_source_str (which calls new_parser_from_source_str)
using the same codemap as the current crate (and hence causing overlap
with files in the crate as new_parser_from_source_str resets the
chpos/byte_pos to 0).
2012-01-23 17:37:15 -08:00
Matthew O'Connor
d38000d1f5
Point to correct cargo-central.
2012-01-22 21:33:53 -07:00
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
Brian Anderson
a303fd98c7
cargo: Remove may package list. I am a proud cargo-central user
2012-01-20 23:19:35 -08:00
Tycho Sci
35cbcbe0c2
Fix cargo install *
fails at assertion.
2012-01-20 14:50:33 +09:00
Patrick Walton
d1fe582040
misc: ';' to ',' in enums in cargo, compiletest, and fuzzer
2012-01-19 18:47:30 -08:00
Patrick Walton
035b56d8aa
misc: "tag" -> "enum" for cargo, compiletest, fuzzer, rustdoc
2012-01-19 16:21:33 -08:00
Brian Anderson
e6a7383a5f
cargo: Fix unused argument warning
2012-01-19 13:46:28 -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
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
Brian Anderson
c0df13958c
Update crates with correct crate_type attribute
2012-01-17 15:13:43 -08:00
Brian Anderson
8f57be5bff
rustc: Rename mk_codemap_handler to mk_handler
2012-01-14 15:14:43 -08:00
Brian Anderson
e4849d5e5d
rustc: Allow a custom diagnostic emitter when building the handler
2012-01-14 15:14:43 -08:00
Brian Anderson
eb41fd9021
Update tools for new parser API
2012-01-13 22:07:55 -08:00
Marijn Haverbeke
34d7f05292
Major clean-up of std::io
...
Use ifaces instead of objs, stop wrapping everything in two (or three)
layers of no-value-added indirection, and remove some of the more
pointless/outdated idioms from the code.
2012-01-11 21:00:11 +01:00
Brian Anderson
be565a1a7a
cargo: Print rustc's stdout when compilation fails
...
stdout is where all the useful info is, not stderr.
2012-01-06 18:04:25 -08:00
Brian Anderson
e746ed6880
rustc: Add cargo's lib directory to search paths
2012-01-05 16:03:31 -08:00
Graydon Hoare
f0dfbe7b1b
Register new snapshots, purge log_err and log_full in favour of log(...).
2011-12-22 17:53:53 -08:00
Erick Tryzelaar
f816d8c71c
cargo: Adding my package index.
2011-12-22 15:05:59 -08:00
Graydon Hoare
8b580954fe
Register snapshots and switch logging over to use of log_full or #error / #debug.
2011-12-22 14:42:52 -08:00
Brian Anderson
085c813fe3
Merge pull request #1365 from elly/cargo
...
cargo: allow 'ref' package key for git packages.
2011-12-20 20:59:03 -08:00
Elly Jones
bbc534bccc
cargo: allow 'ref' package key for git packages.
...
This lets you specify e.g. a tag or a branch name to be checked out for that
package.
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-12-20 23:41:22 -05:00
Graydon Hoare
2841ce7822
Missing comma.
2011-12-20 19:09:53 -08:00
Graydon Hoare
200439406d
Add pointer to cargo-central.
2011-12-20 19:04:02 -08:00
Elly Jones
2bdb0b6d40
cargo: syntax fixes
2011-12-20 21:52:50 -05:00
Elly Jones
9834321615
cargo: Add list and search.
...
In aid of search, add a new field to the packages.json format, called "tags",
whose value is a list of strings. Search accepts a list of tags, all of which
must match for the package to be shown.
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-12-20 20:41:23 -05:00
Elly Jones
af564caff7
cargo: support optional signing of packages.json files.
2011-12-20 20:10:21 -05:00
Brian Anderson
a5d48ce286
cargo: Make sources.json parsable again
2011-12-20 16:38:54 -08:00
Brian Anderson
82cdbfc818
cargo: Add my package index
2011-12-20 16:35:25 -08:00
Elly Jones
bb2c1f7613
cargo: complain if rustc fails
2011-12-16 20:40:10 -08:00
Elly Jones
648b69d692
cargo: shorten a line
2011-12-16 23:15:13 -05:00
Elly Jones
c8427e4ffd
cargo: fix lib detection logic
2011-12-16 22:39:33 -05:00
Elly Jones
b7e30bc4c5
cargo: fix remaining warnings
2011-12-16 22:31:49 -05:00
Elly Jones
7bd003a1d0
cargo: remove obsolete rust-pkg-index lookup code
2011-12-16 22:27:47 -05:00