Keegan McAllister
7c674aceeb
Add a test for deprecated phase(syntax)
2014-06-09 14:29:30 -07:00
Keegan McAllister
5084de3aaf
Convert tests to use #[plugin_registrar]
2014-06-09 14:29:30 -07:00
Keegan McAllister
aca0bac29f
Convert libraries to use #[plugin_registrar]
2014-06-09 14:29:30 -07:00
Keegan McAllister
ed41b71fbe
Use phase(plugin) in tests
2014-06-09 14:29:30 -07:00
Keegan McAllister
84243ed6e1
Use phase(plugin) in other crates
2014-06-09 14:29:30 -07:00
Keegan McAllister
ffb2f12ed8
Use phase(plugin) in bootstrap crates
...
Do this to avoid warnings on post-stage0 builds.
2014-06-09 14:29:30 -07:00
Keegan McAllister
6d15c6749c
Implement #[plugin_registrar]
...
See RFC 22.
[breaking-change]
2014-06-09 14:29:29 -07:00
bors
b6146e652a
auto merge of #14775 : alexcrichton/rust/fix-master, r=brson
...
Apparently one of the linux bots doesn't have the USER variable defined, and
this fix will likely land more quickly than a fix to the bots.
2014-06-09 14:07:12 -07:00
Jakub Wieczorek
8e34f647ee
Add missing repr(C) annotations to mutex.rs
2014-06-09 22:14:51 +02:00
Alex Crichton
992a2db1fc
mk: Ensure docs have relative links to each other
...
When generating documentation, rustdoc has the ability to generate relative
links within the current distribution of crates to one another. To do this, it
must recognize when a crate's documentation is in the same output directory. The
current threshold for "local documentation for crate X being available" is
whether the directory "doc/X" exists.
This change modifies the build system to have new dependencies for each
directory of upstream crates for a rustdoc invocation. This will ensure that
when building documentation that all the crates in the standard distribution are
guaranteed to have relative links to one another.
This change is prompted by guaranteeing that offline docs always work with one
another. Before this change, races could mean that some docs were built before
others, and hence may have http links when relative links would suffice.
Closes #14747
2014-06-09 13:00:18 -07:00
Alex Crichton
a7872b3c1e
std: Read HOME instead of USER
...
Apparently one of the linux bots doesn't have the USER variable defined, and
this fix will likely land more quickly than a fix to the bots.
2014-06-09 12:44:45 -07:00
Patrick Walton
966c7346ca
librustc: Implement overloading for the call operator behind a feature
...
gate.
This is part of unboxed closures.
2014-06-09 12:39:17 -07:00
Adolfo Ochagavía
0eb858b4c9
Cleanup bigint
2014-06-09 16:36:56 +02:00
Adolfo Ochagavía
3ca00ec0db
Moved integer trait and functions to submodule
2014-06-09 16:36:40 +02:00
bors
e55f64f997
auto merge of #14709 : alexcrichton/rust/collections, r=brson
...
This is mostly just a cosmetic change, continuing the work from #14333 .
2014-06-09 01:11:58 -07:00
Alex Crichton
da0703973a
core: Move the collections traits to libcollections
...
This commit moves Mutable, Map, MutableMap, Set, and MutableSet from
`core::collections` to the `collections` crate at the top-level. Additionally,
this removes the `deque` module and moves the `Deque` trait to only being
available at the top-level of the collections crate.
All functionality continues to be reexported through `std::collections`.
[breaking-change]
2014-06-09 00:38:46 -07:00
bors
a6a9e09f98
auto merge of #14740 : P1start/rust/name-warnings, r=alexcrichton
...
This updates identifier warnings such as ``struct `foo_bar` should have a
camel case identifier`` to provide an example.
Closes #14738 .
2014-06-08 23:26:57 -07:00
Brian Anderson
50942c7695
core: Rename container
mod to collections
. Closes #12543
...
Also renames the `Container` trait to `Collection`.
[breaking-change]
2014-06-08 21:29:57 -07:00
bors
61d65cd56e
auto merge of #14765 : rapha/rust/master, r=alexcrichton
2014-06-08 21:26:59 -07:00
Raphael Speyer
1638c4b749
Converted PortReader and ChanWriter to use Vec.
2014-06-09 14:18:11 +10:00
bors
443a1cdf94
auto merge of #14756 : TeXitoi/rust/relicense-shootout-fannkuch-redux, r=brson
...
Part of #14248
Main contributors are @pcwalton, @alexcrichton and me. Only
@dguenther appear in git blame as a minor contribution, but it is
only adding the rust license, so removed by this relicensing.
@brson OK?
2014-06-08 14:56:52 -07:00
Guillaume Pinot
b13e275852
relicense shootout-fannkuch-redux.rs
...
Part of #14248
Main contributors are @pcwalton, @alexcrichton and me. Only
@dguenther appear in git blame as a minor contribution, but it is
only adding the rust license, so removed by this relicensing.
2014-06-08 22:25:49 +02:00
Jakub Wieczorek
135625df96
Mark relevant structs with repr(C)
2014-06-08 22:20:17 +02:00
bors
e688d0e846
auto merge of #14751 : jbcrail/rust/fix-comments, r=alexcrichton
2014-06-08 12:51:51 -07:00
Jakub Wieczorek
f8b4e821ea
Remove a redundant bitcast from fail!() handling
2014-06-08 20:01:38 +02:00
Jakub Wieczorek
a2bbcb594f
Fix an LLVM assertion when matching against static strings
...
Fixes #8315
Fixes #11940
2014-06-08 19:43:38 +02:00
Joseph Crail
45e56eccbe
Fix spelling errors in comments.
2014-06-08 13:39:42 -04:00
bors
8dcbdaaeb7
auto merge of #14749 : sfackler/rust/bitv-hash, r=alexcrichton
...
Closes #14744
2014-06-08 10:36:54 -07:00
Steven Fackler
89c76bb142
Implement Hash for Bitv and BitvSet
...
Closes #14744
2014-06-08 10:29:55 -07:00
bors
17ba0cf428
auto merge of #14745 : huonw/rust/timer-doc, r=alexcrichton
...
std::io: expand the oneshot/periodic docs.
Examples!
Fixes #14714 .
2014-06-08 06:01:49 -07:00
Jakub Wieczorek
f7d86b2f4a
Remove the dead code identified by the new lint
2014-06-08 13:36:28 +02:00
Jakub Wieczorek
0271224bda
Add detection of dead struct fields
2014-06-08 13:30:04 +02:00
bors
9239bb4960
auto merge of #14741 : sfackler/rust/visit-attr, r=alexcrichton
...
The lint was missing a *lot* of cases previously.
2014-06-08 04:16:53 -07:00
bors
010d96ede9
auto merge of #14728 : TeXitoi/rust/relicense-shootout-regex-dna, r=brson
...
Part of #14248
The authors are @pcwalton and @BurntSushi, and we have their agreement.
@brson OK?
2014-06-08 02:31:53 -07:00
Huon Wilson
e8d180df46
std::io: expand the oneshot/periodic docs.
...
Examples!
Fixes #14714 .
2014-06-08 18:32:15 +10:00
bors
7580ef902e
auto merge of #14743 : Sawyer47/rust/range-msg, r=huonw
...
Range allows char and numeric types, but previous error message
mentioned only numeric types.
2014-06-08 00:46:57 -07:00
Steven Fackler
9452cd24fb
Remove unused name_str_pair method
2014-06-08 00:21:35 -07:00
Steven Fackler
862cd65dca
Add back hint for crate level attributes
2014-06-08 00:21:15 -07:00
Piotr Jawniak
90339ef189
Improve error message for range in match
...
Range allows char and numeric types, but previous error message
mentioned only numeric types.
2014-06-08 08:57:33 +02:00
Steven Fackler
42a18bd985
Remove the attribute_usage lint
...
It has been superseded by the unused_attribute lint.
[breaking change]
2014-06-07 23:46:32 -07:00
Steven Fackler
3654ac68be
Add visit_attribute to Visitor, use it for unused_attribute
...
The lint was missing a *lot* of cases previously.
2014-06-07 23:21:33 -07:00
P1start
c1c76590cb
update identifier naming warnings to give an example
...
This updates identifier warnings such as ``struct `foo_bar` should have a
camel case identifier`` to provide an example.
Closes #14738 .
2014-06-08 17:56:09 +12:00
bors
bbd448a27c
auto merge of #14733 : sfackler/rust/partial-eq-nan-docs, r=alexcrichton
...
It is in fact the case that `NaN != NaN`. The true relations for
compareQuietNotEqual are LT, GT *and* UN.
I also rephrased the docs for PartialOrd since floats are not the only
types which are not totally ordered.
2014-06-07 18:01:46 -07:00
Steven Fackler
6b3d3803eb
Clarify restrictions on ne
...
I can't think of any sane cases where this restriction would not hold,
and the standard library seems to assume it pretty much everywhere.
2014-06-07 17:52:48 -07:00
Steven Fackler
92221aba7b
Fix PartialEq documentation with regards to floats
...
It is in fact the case that `NaN != NaN`. The true relations for
compareQuietNotEqual are LT, GT *and* UN.
I also rephrased the docs for PartialOrd since floats are not the only
types which are not totally ordered.
2014-06-07 17:48:54 -07:00
bors
fa1832800a
auto merge of #14725 : aochagavia/rust/show, r=alexcrichton
2014-06-07 15:31:44 -07:00
bors
01eb0ce122
auto merge of #14722 : hannobraun/rust/quote-args, r=alexcrichton
...
The need for this came up while I worked on a procedural macro that parses an argument and adds the same argument to a generated function.
2014-06-07 13:46:42 -07:00
bors
ddd09df137
auto merge of #14730 : alexcrichton/rust/issue-14723, r=cmr
...
Closes #14723
2014-06-07 12:01:41 -07:00
Alex Crichton
3688c1d0ca
rustdoc: More selectively remove execute links
...
Closes #14723
2014-06-07 10:53:22 -07:00
Adolfo Ochagavía
9731c28e11
Implement Show for SmallIntMap
2014-06-07 19:44:45 +02:00