]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agorollup merge of #20350: fhahn/issue-20340-rustdoc-version
Alex Crichton [Wed, 31 Dec 2014 00:26:24 +0000 (16:26 -0800)]
rollup merge of #20350: fhahn/issue-20340-rustdoc-version

Patch for #20340. `rustdoc --version` panics because it uses `rustc_driver::version`, which in turn checks the `verbose` flag, which was not defined for rustdoc.  In this patch I have added a verbose flag to rustdoc, because I think it should be useful for other things besides --version.

Another possible fix would be to check if a verbose option was defined in `rustc_driver` or add an extra `version` function for rustdoc.

9 years agorollup merge of #20348: frewsxcv/rm-reexports
Alex Crichton [Wed, 31 Dec 2014 00:26:22 +0000 (16:26 -0800)]
rollup merge of #20348: frewsxcv/rm-reexports

Part of #19253

[breaking-change]

9 years agorollup merge of #20344: brson/srctarballs
Alex Crichton [Wed, 31 Dec 2014 00:26:21 +0000 (16:26 -0800)]
rollup merge of #20344: brson/srctarballs

Easier for scripts to figure out which artifact is the source code.

9 years agorollup merge of #20332: js-ojus/master
Alex Crichton [Wed, 31 Dec 2014 00:26:20 +0000 (16:26 -0800)]
rollup merge of #20332: js-ojus/master

In the context of explaining the declaration of mutable bindings, using 'intended' probably conveys the meaning better than 'cared'.

9 years agorollup merge of #20330: fhahn/issue-15877-model-lexer-range-2
Alex Crichton [Wed, 31 Dec 2014 00:26:18 +0000 (16:26 -0800)]
rollup merge of #20330: fhahn/issue-15877-model-lexer-range-2

This patch resolves the second problem mentioned in #15877: function calls to integers, e.g. `3.b()`.

 It does so, by checking whether the character following the first dot of a FLOAT_LIT is a character or an underscore (these should denote a valid identifier). This does not look like a particularly, but it seems like a lookahead of 1 is needed for this distinction.

Another interesting aspect are ranges that start with a integer constant, but end with a function call, e.g. `1..b()`. Rust treats this as a range from 1 to `b()`, but given that `1.` is a valid FLOAT_LIT, `1..b()` could be a function call to a float as well.

cc @cmr

9 years agorollup merge of #20329: vhbit/ios-rand-fix
Alex Crichton [Wed, 31 Dec 2014 00:26:16 +0000 (16:26 -0800)]
rollup merge of #20329: vhbit/ios-rand-fix

9 years agorollup merge of #20328: huonw/attack-of-the-clones
Alex Crichton [Wed, 31 Dec 2014 00:26:15 +0000 (16:26 -0800)]
rollup merge of #20328: huonw/attack-of-the-clones

It's useful to be able to save state.

9 years agorollup merge of #20326: rohitjoshi/master
Alex Crichton [Wed, 31 Dec 2014 00:26:13 +0000 (16:26 -0800)]
rollup merge of #20326: rohitjoshi/master

fixes #20322

9 years agorollup merge of #20325: nick29581/obj-safety-static
Alex Crichton [Wed, 31 Dec 2014 00:26:11 +0000 (16:26 -0800)]
rollup merge of #20325: nick29581/obj-safety-static

Closes #19949 and rust-lang/rfcs#428

[breaking change]

If you have traits used with objects with static methods, you'll need to move
the static methods to a different trait.

r? @cmr

9 years agorollup merge of #20323: brson/beta
Alex Crichton [Wed, 31 Dec 2014 00:26:09 +0000 (16:26 -0800)]
rollup merge of #20323: brson/beta

Adds a new 'beta cycle' variable that can be appended to the '-beta' version label, e.g. '-beta1'. Changes the version label for the beta channel temporarily to 'alpha'. Changes the artifact name of the beta channel to contain the version number instead of just being called 'beta'. The beta cycle number is currently set to 1.

The impact of this is that the first alphas will be called '1.0.0-alpha1' and the artifacts will also be called '1.0.0-alpha1-*.tar.gz'. We could alternately leave out the cycle number if we are confident there will be only one alpha cycle.

r? @alexcrichton cc @nikomatsakis @huonw

9 years agorollup merge of #20321: epall/patch-1
Alex Crichton [Wed, 31 Dec 2014 00:26:08 +0000 (16:26 -0800)]
rollup merge of #20321: epall/patch-1

In f436f9ca2, the Send and Sync traits became `unsafe`. They were updated for `target_arch = x86` and others, but `mips` was missed.

9 years agorollup merge of #20316: seanmonstar/patch-1
Alex Crichton [Wed, 31 Dec 2014 00:26:06 +0000 (16:26 -0800)]
rollup merge of #20316: seanmonstar/patch-1

Adds back Send and Sync to BTreeMap and Set.

9 years agorollup merge of #20286: murarth/get-address-name
Alex Crichton [Wed, 31 Dec 2014 00:26:02 +0000 (16:26 -0800)]
rollup merge of #20286: murarth/get-address-name

9 years agorollup merge of #20247: steveklabnik/gh20088
Alex Crichton [Wed, 31 Dec 2014 00:26:00 +0000 (16:26 -0800)]
rollup merge of #20247: steveklabnik/gh20088

Fixes #20088

9 years agorollup merge of #20217: luqmana/pc
Alex Crichton [Wed, 31 Dec 2014 00:25:58 +0000 (16:25 -0800)]
rollup merge of #20217: luqmana/pc

9 years agorollup merge of #20115: gereeter/split-module-building
Alex Crichton [Wed, 31 Dec 2014 00:25:48 +0000 (16:25 -0800)]
rollup merge of #20115: gereeter/split-module-building

This also gets rid of a bunch of unnecessary `.clone`s.

cc @eddyb

9 years agorollup merge of #20065: aturon/stab-2-cmp
Alex Crichton [Wed, 31 Dec 2014 00:25:47 +0000 (16:25 -0800)]
rollup merge of #20065: aturon/stab-2-cmp

This patch marks `PartialEq`, `Eq`, `PartialOrd`, and `Ord` as
`#[stable]`, as well as the majorify of manual implementaitons of these
traits. The traits match the [reform RFC](https://github.com/rust-lang/rfcs/pull/439).

In the future, many of the impls should be generalized; see #20063.
However, there is no problem stabilizing the less general impls, since
generalizing later is not a breaking change.

r? @alexcrichton

9 years agorollup merge of #20045: alexcrichton/issue-20012
Alex Crichton [Wed, 31 Dec 2014 00:25:45 +0000 (16:25 -0800)]
rollup merge of #20045: alexcrichton/issue-20012

The new semantics of this function are that the callbacks are run when the *main
thread* exits, not when all threads have exited. This implies that other threads
may still be running when the `at_exit` callbacks are invoked and users need to
be prepared for this situation.

Users in the standard library have been audited in accordance to these new rules
as well.

Closes #20012

9 years agorollup merge of #19954: michaelwoerister/rust-gdb
Alex Crichton [Wed, 31 Dec 2014 00:25:44 +0000 (16:25 -0800)]
rollup merge of #19954: michaelwoerister/rust-gdb

This pull request adds the `rust-gdb` shell script which starts GDB with Rust pretty printers enabled. The PR also makes `rustc` add a special `.debug_gdb_scripts` ELF section on Linux which tells GDB that the produced binary should use the Rust pretty printers.

Note that at the moment this script will only work and be installed on Linux. On Mac OS X there's `rust-lldb` which works much better there. On Windows I had too many problems making this stable. I'll give it another try soonish.

You can use this script just like you would use GDB from the command line. It will use the pretty printers from the Rust "installation" found first in PATH. E.g. if you have `~/rust/x86_64-linux-gnu/stage1/bin` in your path, it will use the pretty printer scripts in `~/rust/x86_64-linux-gnu/stage1/lib/rustlib/etc`.

9 years agoStabilize cmp
Aaron Turon [Tue, 30 Dec 2014 22:44:26 +0000 (14:44 -0800)]
Stabilize cmp

This patch marks `PartialEq`, `Eq`, `PartialOrd`, and `Ord` as
`#[stable]`, as well as the majorify of manual implementaitons of these
traits. The traits match the [reform
RFC](https://github.com/rust-lang/rfcs/pull/439).

Along the way, two changes are made:

* The recently-added type parameters for `Ord` and `Eq` are
  removed. These were mistakenly added while adding them to `PartialOrd`
  and `PartialEq`, but they don't make sense given the laws that are
  required for (and use cases for) `Ord` and `Eq`.

* More explicit laws are added for `PartialEq` and `PartialOrd`,
  connecting them to their associated mathematical concepts.

In the future, many of the impls should be generalized; see
since generalizing later is not a breaking change.

[breaking-change]

9 years agostd: Re-enable at_exit()
Alex Crichton [Fri, 19 Dec 2014 19:29:39 +0000 (11:29 -0800)]
std: Re-enable at_exit()

The new semantics of this function are that the callbacks are run when the *main
thread* exits, not when all threads have exited. This implies that other threads
may still be running when the `at_exit` callbacks are invoked and users need to
be prepared for this situation.

Users in the standard library have been audited in accordance to these new rules
as well.

Closes #20012

9 years agoAdd verbose option to rustdoc in order to fix problem with --version
Florian Hahn [Tue, 30 Dec 2014 21:27:02 +0000 (22:27 +0100)]
Add verbose option to rustdoc in order to fix problem with --version

closes #20340

9 years agomk: Append -src to source tarballs for easier identification
Brian Anderson [Tue, 30 Dec 2014 19:47:12 +0000 (11:47 -0800)]
mk: Append -src to source tarballs for easier identification

9 years agoRemove core::atomic::Ordering::* public reexport
Corey Farwell [Tue, 30 Dec 2014 18:19:20 +0000 (10:19 -0800)]
Remove core::atomic::Ordering::* public reexport

Part of #19253

[breaking-change]

9 years agoRemoved a bunch of unnecessary .clone()s from build_reduced_graph
Jonathan S [Tue, 30 Dec 2014 18:52:51 +0000 (12:52 -0600)]
Removed a bunch of unnecessary .clone()s from build_reduced_graph

9 years agoPurged ReducedGraphParent
Jonathan S [Tue, 30 Dec 2014 18:30:42 +0000 (12:30 -0600)]
Purged ReducedGraphParent

9 years agoCleanup unused imports resulting from move of reduced graph building
Jonathan S [Tue, 30 Dec 2014 18:19:24 +0000 (12:19 -0600)]
Cleanup unused imports resulting from move of reduced graph building

9 years agomk: The alpha will not have a cycle number
Brian Anderson [Tue, 30 Dec 2014 18:18:54 +0000 (10:18 -0800)]
mk: The alpha will not have a cycle number

9 years agoMoved ReducedGraphParent building to a new module
Jonathan S [Tue, 30 Dec 2014 18:16:42 +0000 (12:16 -0600)]
Moved ReducedGraphParent building to a new module

9 years agoauto merge of #20307 : nikomatsakis/rust/assoc-types-normalization-extend-bound,...
bors [Tue, 30 Dec 2014 17:51:21 +0000 (17:51 +0000)]
auto merge of #20307 : nikomatsakis/rust/assoc-types-normalization-extend-bound, r=nrc

Rewrite associated types to use projection rather than dummy type parameters. This closes almost every (major) open issue, but I'm holding off on that until the code has landed and baked a bit. Probably it should have more tests, as well, but I wanted to get this landed as fast as possible so that we can collaborate on improving it.

The commit history is a little messy, particularly the merge commit at the end. If I get some time, I might just "reset" to the beginning and try to carve up the final state into logical pieces. Let me know if it seems hard to follow. By far the most crucial commit is "Implement associated type projection and normalization."

r? @nick29581

9 years agoFix rebase conflicts
Niko Matsakis [Tue, 30 Dec 2014 17:09:21 +0000 (12:09 -0500)]
Fix rebase conflicts

9 years agodebuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers...
Michael Woerister [Wed, 3 Dec 2014 22:48:18 +0000 (14:48 -0800)]
debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled.

9 years agoUpdate src/grammar/README.md
Florian Hahn [Tue, 30 Dec 2014 15:49:27 +0000 (16:49 +0100)]
Update src/grammar/README.md

9 years agosrc/grammar/check.sh now prints test summary
Florian Hahn [Tue, 30 Dec 2014 15:46:07 +0000 (16:46 +0100)]
src/grammar/check.sh now prints test summary

9 years agoAddress nits.
Niko Matsakis [Tue, 30 Dec 2014 13:59:33 +0000 (08:59 -0500)]
Address nits.

9 years agoNormalize associated types in bounds too. Also, make the workaround
Niko Matsakis [Tue, 30 Dec 2014 11:29:59 +0000 (06:29 -0500)]
Normalize associated types in bounds too. Also, make the workaround
for lack of impl-trait-for-trait just a bit more targeted (don't
substitute err, just drop the troublesome bound for now) -- otherwise
substituting false types leads us into trouble when we normalize etc.

9 years agoAdd a test case using associated types cross crate. Fixes #18048.
Niko Matsakis [Mon, 29 Dec 2014 20:12:11 +0000 (15:12 -0500)]
Add a test case using associated types cross crate. Fixes #18048.

9 years agoEncode the TypeScheme for associated types
Niko Matsakis [Mon, 29 Dec 2014 21:32:24 +0000 (16:32 -0500)]
Encode the TypeScheme for associated types

9 years agoRemove the AssocSpace
Niko Matsakis [Mon, 29 Dec 2014 21:32:12 +0000 (16:32 -0500)]
Remove the AssocSpace

9 years agoPatch more metadata decoding problems.
Niko Matsakis [Thu, 4 Dec 2014 15:29:41 +0000 (10:29 -0500)]
Patch more metadata decoding problems.

9 years agoEncode the name for associated items on a trait. Fixes #18048.
Niko Matsakis [Thu, 4 Dec 2014 14:00:16 +0000 (09:00 -0500)]
Encode the name for associated items on a trait. Fixes #18048.

9 years agoCorrect licenses.
Niko Matsakis [Mon, 29 Dec 2014 19:38:16 +0000 (14:38 -0500)]
Correct licenses.

9 years agoResolve merge conflicts. This changes should really be integrated back to their respe...
Niko Matsakis [Mon, 29 Dec 2014 18:41:25 +0000 (13:41 -0500)]
Resolve merge conflicts. This changes should really be integrated back to their respective
commits but oh dear what a pain.

9 years agoAdjust tests for inferenceGet more conservative about inference for now. Seems better...
Niko Matsakis [Mon, 29 Dec 2014 16:22:16 +0000 (11:22 -0500)]
Adjust tests for inferenceGet more conservative about inference for now. Seems better to err on the side of being more correct rather than less. Fix a bug in typing index expressions that was exposed as a result, and add one type annotation that is not required. Delete some random tests that were relying on old behavior and don't seem to add anything anymore.

9 years agoAdd a FIXME relating to these type-testing traits
Niko Matsakis [Mon, 29 Dec 2014 16:06:15 +0000 (11:06 -0500)]
Add a FIXME relating to these type-testing traits

9 years agoPatch long line.
Niko Matsakis [Mon, 29 Dec 2014 16:05:35 +0000 (11:05 -0500)]
Patch long line.

9 years agoAdd FIXMEs relating to caching of projection results
Niko Matsakis [Mon, 29 Dec 2014 16:03:04 +0000 (11:03 -0500)]
Add FIXMEs relating to caching of projection results

9 years agoAdd a FIXME relating to regions and projection types
Niko Matsakis [Mon, 29 Dec 2014 16:02:37 +0000 (11:02 -0500)]
Add a FIXME relating to regions and projection types

9 years agoAdd a FIXME to patch up rustdoc
Niko Matsakis [Mon, 29 Dec 2014 16:02:24 +0000 (11:02 -0500)]
Add a FIXME to patch up rustdoc

9 years agoFile a FIXME relating to using where clauses, not bounds
Niko Matsakis [Mon, 29 Dec 2014 16:02:07 +0000 (11:02 -0500)]
File a FIXME relating to using where clauses, not bounds

9 years agoAdd a FIXME relating to Copy<T> not being checked
Niko Matsakis [Mon, 29 Dec 2014 16:01:11 +0000 (11:01 -0500)]
Add a FIXME relating to Copy<T> not being checked

9 years agoAdd a FIXME relating to using `ast::Name`
Niko Matsakis [Mon, 29 Dec 2014 16:00:56 +0000 (11:00 -0500)]
Add a FIXME relating to using `ast::Name`

9 years agoPatch tests and create new tests related to projection from a HRTB.
Niko Matsakis [Fri, 26 Dec 2014 20:37:56 +0000 (15:37 -0500)]
Patch tests and create new tests related to projection from a HRTB.

9 years agoDon't normalize associated types when in region binders, wait until we instantiate
Niko Matsakis [Sun, 28 Dec 2014 15:07:21 +0000 (10:07 -0500)]
Don't normalize associated types when in region binders, wait until we instantiate
them. Also fix some assertions and handling of builtin bounds.

9 years agoRemove the def-id from type parameters. Having this def-id was bad for several reasons:
Niko Matsakis [Sun, 28 Dec 2014 00:42:27 +0000 (19:42 -0500)]
Remove the def-id from type parameters. Having this def-id was bad for several reasons:

1. Produced more unique types than is necessary. This increases memory consumption.
2. Linking the type parameter to its definition *seems* like a good idea, but it
   encourages reliance on the bounds listing.
3. It made pretty-printing harder and in particular was causing bad error messages
   when errors occurred before the `TypeParameterDef` entries were fully stored.

9 years agoUpdate error messages in various compile-fail tests
Niko Matsakis [Sat, 27 Dec 2014 21:42:01 +0000 (16:42 -0500)]
Update error messages in various compile-fail tests

9 years agoMake projected types select out of the trait bounds.
Niko Matsakis [Sat, 27 Dec 2014 09:22:29 +0000 (04:22 -0500)]
Make projected types select out of the trait bounds.

9 years agoTeach `project` to project associated types out of object types.
Niko Matsakis [Fri, 26 Dec 2014 12:07:55 +0000 (07:07 -0500)]
Teach `project` to project associated types out of object types.

9 years agoAllow object safe traits to access associated types.
Niko Matsakis [Fri, 26 Dec 2014 11:40:25 +0000 (06:40 -0500)]
Allow object safe traits to access associated types.

9 years agoIntegrate projection bounds to `ExistentialBounds` but do not use them for anything.
Niko Matsakis [Fri, 26 Dec 2014 09:36:04 +0000 (04:36 -0500)]
Integrate projection bounds to `ExistentialBounds` but do not use them for anything.

9 years agoConvert to use `Rc<TraitRef>` in object types (finally!).
Niko Matsakis [Fri, 26 Dec 2014 08:31:58 +0000 (03:31 -0500)]
Convert to use `Rc<TraitRef>` in object types (finally!).

9 years agoImplement associated type projection and normalization.
Niko Matsakis [Wed, 17 Dec 2014 19:16:28 +0000 (14:16 -0500)]
Implement associated type projection and normalization.

9 years agoMove the scalar types out of static data so that we can put `Rc` into sty.
Niko Matsakis [Thu, 25 Dec 2014 12:20:48 +0000 (07:20 -0500)]
Move the scalar types out of static data so that we can put `Rc` into sty.

9 years agoRename `Polytype` to `TypeScheme` to differentiate type schemes (early bound) from...
Niko Matsakis [Tue, 23 Dec 2014 10:52:47 +0000 (05:52 -0500)]
Rename `Polytype` to `TypeScheme` to differentiate type schemes (early bound) from higher-ranked things (late-bound), which also use the `Poly` prefix.

9 years agoRename `trait_ref` field to `predicate`, since `trait_ref` is really
Niko Matsakis [Wed, 17 Dec 2014 21:00:34 +0000 (16:00 -0500)]
Rename `trait_ref` field to `predicate`, since `trait_ref` is really
overly general, and the value is always *some* sort of predicate.

9 years agoRewrite the intrinsicck to take the parameter environment into account. Also fixes...
Niko Matsakis [Tue, 23 Dec 2014 01:57:14 +0000 (20:57 -0500)]
Rewrite the intrinsicck to take the parameter environment into account. Also fixes #20116.

9 years agoMove the TypeContents-based "Sized" queries into trans, where the full
Niko Matsakis [Thu, 18 Dec 2014 14:26:10 +0000 (09:26 -0500)]
Move the TypeContents-based "Sized" queries into trans, where the full
types are always known and hence the ParameterEnvironment is not
necessary. For other `Sized` queries, use the trait infrastructure
just like `Copy`.

9 years agoMake ExprUseVisitor<..> use inherited parameter environments.
Niko Matsakis [Tue, 16 Dec 2014 20:18:23 +0000 (15:18 -0500)]
Make ExprUseVisitor<..> use inherited parameter environments.

9 years agoRefactor various queries out of `ty` and into `trans/common`
Niko Matsakis [Tue, 16 Dec 2014 20:00:05 +0000 (15:00 -0500)]
Refactor various queries out of `ty` and into `trans/common`

9 years agoMinor change to wording in `Variables and Bindings`
JONNALAGADDA Srinivas [Tue, 30 Dec 2014 13:53:16 +0000 (19:23 +0530)]
Minor change to wording in `Variables and Bindings`

In the context of explaining the declaration of mutable bindings, using 'intended' probably conveys the meaning better than 'cared'.

9 years agoHandle function calls to integers in model lexer correctly
Florian Hahn [Tue, 30 Dec 2014 13:03:00 +0000 (14:03 +0100)]
Handle function calls to integers in model lexer correctly

closes #15877

9 years agoiOS: fallout of Sync oibit
Valerii Hiora [Tue, 30 Dec 2014 12:52:47 +0000 (14:52 +0200)]
iOS: fallout of Sync oibit

9 years agoauto merge of #19941 : alexcrichton/rust/issue-19767, r=brson
bors [Tue, 30 Dec 2014 11:11:07 +0000 (11:11 +0000)]
auto merge of #19941 : alexcrichton/rust/issue-19767, r=brson

This commit adds support for the compiler to distinguish between different forms
of lookup paths in the compiler itself. Issue #19767 has some background on this
topic, as well as some sample bugs which can occur if these lookup paths are not
separated.

This commits extends the existing command line flag `-L` with the same trailing
syntax as the `-l` flag. Each argument to `-L` can now have a trailing `:all`,
`:native`, `:crate`, or `:dependency`. This suffix indicates what form of lookup
path the compiler should add the argument to. The `dependency` lookup path is
used when looking up crate dependencies, the `crate` lookup path is used when
looking for immediate dependencies (`extern crate` statements), and the `native`
lookup path is used for probing for native libraries to insert into rlibs. Paths
with `all` are used for all of these purposes (the default).

The default compiler lookup path (the rustlib libdir) is by default added to all
of these paths. Additionally, the `RUST_PATH` lookup path is added to all of
these paths.

Closes #19767

9 years agoImplement `Clone` for a large number of iterators & other adaptors.
Huon Wilson [Tue, 30 Dec 2014 10:01:36 +0000 (21:01 +1100)]
Implement `Clone` for a large number of iterators & other adaptors.

It's useful to be able to save state.

9 years agoPR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf
Rohit Joshi [Tue, 30 Dec 2014 09:20:24 +0000 (04:20 -0500)]
PR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf

9 years agoauto merge of #20320 : alexcrichton/rust/rollup, r=alexcrichton
bors [Tue, 30 Dec 2014 08:02:39 +0000 (08:02 +0000)]
auto merge of #20320 : alexcrichton/rust/rollup, r=alexcrichton

9 years agoTest fixes and rebase conflicts
Alex Crichton [Tue, 30 Dec 2014 00:38:07 +0000 (16:38 -0800)]
Test fixes and rebase conflicts

9 years agolibrustc_trans: Remove some dead code now that procs are gone.
Luqman Aden [Thu, 25 Dec 2014 03:04:35 +0000 (22:04 -0500)]
librustc_trans: Remove some dead code now that procs are gone.

9 years agoTests
Nick Cameron [Tue, 30 Dec 2014 06:03:51 +0000 (19:03 +1300)]
Tests

9 years agoForbid static methods in object safe traits
Nick Cameron [Tue, 30 Dec 2014 05:30:53 +0000 (18:30 +1300)]
Forbid static methods in object safe traits

Closes #19949 and rust-lang/rfcs#428

[breaking change]

If you have traits used with objects with static methods, you'll need to move
the static methods to a different trait.

9 years agomk: The beta channel temporarily produced alpha versions
Brian Anderson [Tue, 30 Dec 2014 04:19:02 +0000 (20:19 -0800)]
mk: The beta channel temporarily produced alpha versions

9 years agomk: Allow an optional number to come after the beta version label
Brian Anderson [Tue, 30 Dec 2014 04:16:39 +0000 (20:16 -0800)]
mk: Allow an optional number to come after the beta version label

9 years agorollup merge of #20317: brson/rust-installer-v2
Alex Crichton [Tue, 30 Dec 2014 03:47:58 +0000 (19:47 -0800)]
rollup merge of #20317: brson/rust-installer-v2

9 years agoFix impl of Send and Sync for mips
Eric Allen [Tue, 30 Dec 2014 03:16:53 +0000 (22:16 -0500)]
Fix impl of Send and Sync for mips

In f436f9ca2, the Send and Sync traits became `unsafe`. They were updated for `target_arch = x86` and others, but `mips` was missed.

9 years agoSimplify some logic in dist.mk
Brian Anderson [Tue, 30 Dec 2014 03:08:35 +0000 (19:08 -0800)]
Simplify some logic in dist.mk

9 years agomk: Package mingw components in unix installer on windows
Brian Anderson [Tue, 30 Dec 2014 00:47:21 +0000 (16:47 -0800)]
mk: Package mingw components in unix installer on windows

This puts stdc++ and the unwinding dll into the main package
and creates a separate rust-mingw package for everything else.

9 years agomk: Make distcheck build binary tarballs on windows
Brian Anderson [Tue, 30 Dec 2014 00:24:44 +0000 (16:24 -0800)]
mk: Make distcheck build binary tarballs on windows

These work, but aren't being built and uploaded because the bots run
'distcheck' not 'dist'.

9 years agoInstall copyright information and package docs
Brian Anderson [Mon, 29 Dec 2014 19:15:40 +0000 (11:15 -0800)]
Install copyright information and package docs

This distributes docs in a separate package called rust-docs. The rust-packaging
project will combine it with Rust and Cargo into a single installer in a variety of formats.

9 years agoUpgrade rust-installer to v2
Brian Anderson [Fri, 12 Dec 2014 02:05:05 +0000 (18:05 -0800)]
Upgrade rust-installer to v2

9 years agoauto merge of #20160 : nick29581/rust/ranges2, r=nikomatsakis
bors [Tue, 30 Dec 2014 00:42:13 +0000 (00:42 +0000)]
auto merge of #20160 : nick29581/rust/ranges2, r=nikomatsakis

The first six commits are from an earlier PR (#19858) and have already been reviewed. This PR makes an awful hack in the compiler to accommodate slices both natively and in the index a range form. After a snapshot we can hopefully add the new Index impls and then we can remove these awful hacks.

r? @nikomatsakis (or anyone who knows the compiler, really)

9 years agocollections: use Unique in btree::Node
Sean McArthur [Tue, 30 Dec 2014 00:41:01 +0000 (16:41 -0800)]
collections: use Unique in btree::Node

9 years agorollup merge of #20310: fhahn/issue-15877-model-lexer-range
Alex Crichton [Tue, 30 Dec 2014 00:36:55 +0000 (16:36 -0800)]
rollup merge of #20310: fhahn/issue-15877-model-lexer-range

This patch for #15877 uses Antlr's input lookahead (`_input.LA(1) != '.'`) to solve the conflict between the LIT_FLOAT and the range syntax.

Note that in order to execute the grammar tests, #20245 should land first.

9 years agorollup merge of #20309: sfackler/refcell-send
Alex Crichton [Tue, 30 Dec 2014 00:36:54 +0000 (16:36 -0800)]
rollup merge of #20309: sfackler/refcell-send

Also get rid of NoSync markers since UnsafeCell is now not Sync

r? @alexcrichton

9 years agorollup merge of #20306: alexcrichton/second-pass-string
Alex Crichton [Tue, 30 Dec 2014 00:36:52 +0000 (16:36 -0800)]
rollup merge of #20306: alexcrichton/second-pass-string

This commit performs a second pass over the `std::string` module, performing the
following actions:

* The name `std::string` is now stable.
* The `String::from_utf8` function is now stable after having been altered to
  return a new `FromUtf8Error` structure. The `FromUtf8Error` structure is now
  stable as well as its `into_bytes` and `utf8_error` methods.
* The `String::from_utf8_lossy` function is now stable.
* The `String::from_chars` method is now deprecated in favor of `.collect()`
* The `String::from_raw_parts` method is now stable
* The `String::from_str` function remains experimental
* The `String::from_raw_buf` function remains experimental
* The `String::from_raw_buf_len` function remains experimental
* The `String::from_utf8_unchecked` function is now stable
* The `String::from_char` function is now deprecated in favor of
  `repeat(c).take(n).collect()`
* The `String::grow` function is now deprecated in favor of
  `.extend(repeat(c).take(n)`
* The `String::capacity` method is now stable
* The `String::reserve` method is now stable
* The `String::reserve_exact` method is now stable
* The `String::shrink_to_fit` method is now stable
* The `String::pop` method is now stable
* The `String::as_mut_vec` method is now stable
* The `String::is_empty` method is now stable
* The `IntoString` trait is now deprecated (there are no implementors)
* The `String::truncate` method is now stable
* The `String::insert` method is now stable
* The `String::remove` method is now stable
* The `String::push` method is now stable
* The `String::push_str` method is now stable
* The `String::from_utf16` function is now stable after its error type has now
  become an opaque structure to carry more semantic information in the future.

A number of these changes are breaking changes, but the migrations should be
fairly straightforward on a case-by-case basis (outlined above where possible).

[breaking-change]

9 years agorollup merge of #20289: nick29581/shadowing
Alex Crichton [Tue, 30 Dec 2014 00:36:49 +0000 (16:36 -0800)]
rollup merge of #20289: nick29581/shadowing

r? eddyb

9 years agorollup merge of #20282: WebDrake/makefile-in
Alex Crichton [Tue, 30 Dec 2014 00:36:45 +0000 (16:36 -0800)]
rollup merge of #20282: WebDrake/makefile-in

This is a very trivial fix for a broken link that I noticed while building the compiler for the first time.  I've changed it to its presumed successor.

9 years agorollup merge of #20281: dgiagio/libregex_deprecated_fix1
Alex Crichton [Tue, 30 Dec 2014 00:36:44 +0000 (16:36 -0800)]
rollup merge of #20281: dgiagio/libregex_deprecated_fix1

Fixes #20280

9 years agorollup merge of #20279: dgiagio/libserialize_deprecated_fix1
Alex Crichton [Tue, 30 Dec 2014 00:36:42 +0000 (16:36 -0800)]
rollup merge of #20279: dgiagio/libserialize_deprecated_fix1

Fixes #20278

9 years agorollup merge of #20276: alexcrichton/deprecate-term
Alex Crichton [Tue, 30 Dec 2014 00:36:41 +0000 (16:36 -0800)]
rollup merge of #20276: alexcrichton/deprecate-term

This library is now published on crates.io as the `term` crate, so the in-tree
version is now deprecated. Once stability warnings are enabled, this library
will automatically be gated.

9 years agorollup merge of #20275: inthecloud247/patch-1
Alex Crichton [Tue, 30 Dec 2014 00:36:40 +0000 (16:36 -0800)]
rollup merge of #20275: inthecloud247/patch-1

Updating curl flag and instructions to follow better security practices
used by other projects: https://github.com/saltstack/salt-bootstrap

Other references:
http://www.reddit.com/r/linux/comments/1s58my/please_stop_piping_curl1_to_sh1/
http://www.seancassidy.me/dont-pipe-to-your-shell.html
https://news.ycombinator.com/item?id=8550511
http://output.chrissnell.com/post/69023793377/stop-piping-curl-1-to-sh-1
http://www.reddit.com/comments/1pqtcb