]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #13262 : ben0x539/rust/guide-runtime-fixup, r=alexcrichton
bors [Thu, 3 Apr 2014 00:51:48 +0000 (17:51 -0700)]
auto merge of #13262 : ben0x539/rust/guide-runtime-fixup, r=alexcrichton

10 years agoauto merge of #13257 : alexcrichton/rust/index-uint, r=pnkfelix
bors [Wed, 2 Apr 2014 23:36:50 +0000 (16:36 -0700)]
auto merge of #13257 : alexcrichton/rust/index-uint, r=pnkfelix

The details are outlined in the first commit.

Closes #10453

10 years agoFix fallout of requiring uint indices
Alex Crichton [Wed, 2 Apr 2014 03:39:26 +0000 (20:39 -0700)]
Fix fallout of requiring uint indices

10 years agorustc: Require that vector indices are uints
Alex Crichton [Wed, 2 Apr 2014 03:34:40 +0000 (20:34 -0700)]
rustc: Require that vector indices are uints

This commit tightens up the restriction on types used to index slices to require
exactly `uint` indices. Previously any integral type was accepted, but this
leads to a few subtle problems:

  * 64-bit indices don't make much sense on 32-bit systems
  * Signed indices for slices used as negative indexing isn't implemented

This was discussed at the recent work week, and also has some discussion on
issue #10453.

Closes #10453

10 years agoauto merge of #13248 : tedhorst/rust/master, r=alexcrichton
bors [Wed, 2 Apr 2014 15:16:42 +0000 (08:16 -0700)]
auto merge of #13248 : tedhorst/rust/master, r=alexcrichton

10 years agodoc: Remove dated "libgreen is default" statement.
Benjamin Herr [Wed, 2 Apr 2014 14:56:31 +0000 (16:56 +0200)]
doc: Remove dated "libgreen is default" statement.

10 years agoauto merge of #13177 : huonw/rust/devec-rand, r=alexcrichton
bors [Wed, 2 Apr 2014 13:01:44 +0000 (06:01 -0700)]
auto merge of #13177 : huonw/rust/devec-rand, r=alexcrichton

Remove ~[] from librand, rename Rng.shuffle_mut to .shuffle.

See commits.

10 years agorand: replace Rng.shuffle's functionality with .shuffle_mut.
Huon Wilson [Thu, 27 Mar 2014 12:01:41 +0000 (23:01 +1100)]
rand: replace Rng.shuffle's functionality with .shuffle_mut.

Deprecates the `shuffle_mut` name in favour of `shuffle` too.

In future there will be many different types of owned
vectors/vector-likes (e.g. DST's ~[], Vec, SmallVec, Rope, ...), and so
privileging just `Vec` with the "functional" `shuffle` method is silly.

10 years agorand: remove (almost) all ~[]'s from Vec.
Huon Wilson [Thu, 27 Mar 2014 12:00:46 +0000 (23:00 +1100)]
rand: remove (almost) all ~[]'s from Vec.

There are a few instances of them in tests which are using functions
from std etc. that still are using ~[].

10 years agoauto merge of #13243 : huonw/rust/cellshow, r=thestinger
bors [Wed, 2 Apr 2014 09:21:39 +0000 (02:21 -0700)]
auto merge of #13243 : huonw/rust/cellshow, r=thestinger

std: fix Cell's Show instance.

Previously it was printing the address of the Unsafe contained in the
Cell (i.e. the address of the Cell itself). This is clearly useless, and
was presumably a mistake due to writing `*&` instead of `&*`.

However, this later expression is likely also incorrect, since it takes
a reference into a Cell while other user code is executing (i.e. the
Show instance for the contained type), hence the contents should just be
copied out.

10 years agoauto merge of #13242 : huonw/rust/release-note-edits, r=alexcrichton
bors [Wed, 2 Apr 2014 07:06:40 +0000 (00:06 -0700)]
auto merge of #13242 : huonw/rust/release-note-edits, r=alexcrichton

Minor adjustments to the 0.10 release notes.

Mention another lint, fix a typo, and rearrange some things.

10 years agoauto merge of #13235 : klutzy/rust/doc-faq-win, r=alexcrichton
bors [Wed, 2 Apr 2014 05:41:42 +0000 (22:41 -0700)]
auto merge of #13235 : klutzy/rust/doc-faq-win, r=alexcrichton

10 years agoauto merge of #13241 : stepancheg/rust/push-all, r=alexcrichton
bors [Wed, 2 Apr 2014 04:21:48 +0000 (21:21 -0700)]
auto merge of #13241 : stepancheg/rust/push-all, r=alexcrichton

* push_all* operations should reserve capacity before pushing data to avoid unnecessary reallocations
* reserve_exact should never shrink, as specified in documentation

10 years agoauto merge of #13240 : sfackler/rust/time-pub, r=alexcrichton
bors [Tue, 1 Apr 2014 23:41:53 +0000 (16:41 -0700)]
auto merge of #13240 : sfackler/rust/time-pub, r=alexcrichton

10 years agoMinor adjustments to the 0.10 release notes.
Huon Wilson [Tue, 1 Apr 2014 11:55:09 +0000 (22:55 +1100)]
Minor adjustments to the 0.10 release notes.

Mention another lint, fix a typo, and rearrange some things.

10 years agoauto merge of #13234 : seanmonstar/rust/pr/12947, r=alexcrichton
bors [Tue, 1 Apr 2014 21:46:47 +0000 (14:46 -0700)]
auto merge of #13234 : seanmonstar/rust/pr/12947, r=alexcrichton

this is useful for macros like vec! which construct containers

rebase of #12947 because I'm impatient.

10 years agoauto merge of #13225 : thestinger/rust/num, r=cmr
bors [Tue, 1 Apr 2014 20:26:49 +0000 (13:26 -0700)]
auto merge of #13225 : thestinger/rust/num, r=cmr

The `Float` trait methods will be usable as functions via UFCS, and
we came to a consensus to remove duplicate functions like this a long
time ago.

It does still make sense to keep the duplicate functions when the trait
methods are static, unless the decision to leave out the in-scope trait
name resolution for static methods changes.

10 years agoReimplement Vec::push_all* with .extend
Stepan Koltsov [Tue, 1 Apr 2014 20:16:59 +0000 (20:16 +0000)]
Reimplement Vec::push_all* with .extend

It is shorter and also fixes missed reserve call.

10 years agoVec::reserve_exact should not shrink
Stepan Koltsov [Tue, 1 Apr 2014 20:16:59 +0000 (20:16 +0000)]
Vec::reserve_exact should not shrink

reserve_exact should not shrink according to documentation.

10 years agoauto merge of #13115 : huonw/rust/rand-errors, r=alexcrichton
bors [Tue, 1 Apr 2014 18:11:51 +0000 (11:11 -0700)]
auto merge of #13115 : huonw/rust/rand-errors, r=alexcrichton

move errno -> IoError converter into std, bubble up OSRng errors

Also adds a general errno -> `~str` converter to `std::os`, and makes the failure messages for the things using `OSRng` (e.g. (transitively) the task-local RNG, meaning hashmap initialisation failures aren't such a black box).

10 years agomake Cmplx fields public
Ted Horst [Tue, 1 Apr 2014 17:58:13 +0000 (12:58 -0500)]
make Cmplx fields public

10 years agostd: fix Cell's Show instance.
Huon Wilson [Tue, 1 Apr 2014 12:58:31 +0000 (23:58 +1100)]
std: fix Cell's Show instance.

Previously it was printing the address of the Unsafe contained in the
Cell (i.e. the address of the Cell itself). This is clearly useless, and
was presumably a mistake due to writing `*&` instead of `&*`.

However, this later expression is likely also incorrect, since it takes
a reference into a Cell while other user code is executing (i.e. the
Show instance for the contained type), hence the contents should just be
copied out.

10 years agoremove the cmath module
Daniel Micay [Tue, 1 Apr 2014 09:11:23 +0000 (05:11 -0400)]
remove the cmath module

This is an implementation detail of the `f32` and `f64` modules and it
should not be public. It renames many functions and leaves out any
provided by LLVM intrinsics, so it is not a sensible binding to the C
standard library's math library and will never be a stable target.

This also removes the abuse of link_name so that this can be switched to
using automatically generated definitions in the future. This also
removes the `scalbn` binding as it is equivalent to `ldexp` when
`FLT_RADIX` is 2, which must always be true for Rust.

10 years agorand: bubble up IO messages futher.
Huon Wilson [Tue, 25 Mar 2014 05:13:11 +0000 (16:13 +1100)]
rand: bubble up IO messages futher.

The various ...Rng::new() methods can hit IO errors from the OSRng they use,
and it seems sensible to expose them at a higher level. Unfortunately, writing
e.g. `StdRng::new().unwrap()` gives a much poorer error message than if it
failed internally, but this is a problem with all `IoResult`s.

10 years agorand: bubble up IO errors when creating an OSRng.
Huon Wilson [Mon, 24 Mar 2014 13:41:43 +0000 (00:41 +1100)]
rand: bubble up IO errors when creating an OSRng.

10 years agostd: migrate the errno -> IoError converter from libnative.
Huon Wilson [Mon, 24 Mar 2014 13:39:40 +0000 (00:39 +1100)]
std: migrate the errno -> IoError converter from libnative.

This also adds a direct `errno` -> `~str` converter, rather than only
being possible to get a string for the very last error.

10 years agoMake libtime fields public
Steven Fackler [Tue, 1 Apr 2014 06:47:49 +0000 (23:47 -0700)]
Make libtime fields public

10 years agosyntax: allow stmt/expr macro invocations to be delimited by [].
Gábor Lehel [Sun, 16 Mar 2014 21:46:04 +0000 (22:46 +0100)]
syntax: allow stmt/expr macro invocations to be delimited by [].

this is useful for macros like vec! which construct containers

10 years agodoc: Update windows status on FAQ
klutzy [Tue, 1 Apr 2014 01:42:42 +0000 (10:42 +0900)]
doc: Update windows status on FAQ

10 years agoauto merge of #13184 : alexcrichton/rust/priv-fields, r=brson
bors [Mon, 31 Mar 2014 22:51:33 +0000 (15:51 -0700)]
auto merge of #13184 : alexcrichton/rust/priv-fields, r=brson

This is an implementation of a portion of [RFC #4](https://github.com/rust-lang/rfcs/blob/master/active/0004-private-fields.md). This PR makes named struct fields private by default (as opposed to inherited by default).

The only real meaty change is the first commit to `rustc`, all other commits are just fallout of that change.

Summary of changes made:

* Named fields are private by default *everywhere*
* The `priv` keyword is now default-deny on named fields (done in a "lint" pass in privacy)

Changes yet to be done (before the RFC is closed)

* Change tuple structs to have private fields by default
* Remove `priv` enum variants
* Make `priv` a reserved keyword

10 years agodoc: Update with changes in field privacy
Alex Crichton [Fri, 28 Mar 2014 22:00:40 +0000 (15:00 -0700)]
doc: Update with changes in field privacy

10 years agourl: Switch privacy defaults where necessary
Alex Crichton [Fri, 28 Mar 2014 19:41:44 +0000 (12:41 -0700)]
url: Switch privacy defaults where necessary

10 years agocompiletest: Switch field privacy where necessary
Alex Crichton [Fri, 28 Mar 2014 18:10:15 +0000 (11:10 -0700)]
compiletest: Switch field privacy where necessary

10 years agorpass/cfail: Update field privacy where necessary
Alex Crichton [Fri, 28 Mar 2014 18:09:31 +0000 (11:09 -0700)]
rpass/cfail: Update field privacy where necessary

10 years agonum: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:27:45 +0000 (10:27 -0700)]
num: Switch field privacy as necessary

10 years agogreen: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:27:34 +0000 (10:27 -0700)]
green: Switch field privacy as necessary

10 years agorustdoc: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:27:24 +0000 (10:27 -0700)]
rustdoc: Switch field privacy as necessary

10 years agorustuv: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:27:14 +0000 (10:27 -0700)]
rustuv: Switch field privacy as necessary

10 years agoworkcache: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:27:01 +0000 (10:27 -0700)]
workcache: Switch field privacy as necessary

10 years agoglob: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:26:43 +0000 (10:26 -0700)]
glob: Switch field privacy as necessary

10 years agorustc: Switch field privacy as necessary
Alex Crichton [Fri, 28 Mar 2014 17:05:27 +0000 (10:05 -0700)]
rustc: Switch field privacy as necessary

10 years agosyntax: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:39:48 +0000 (15:39 -0700)]
syntax: Switch field privacy as necessary

10 years agotest: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:15:28 +0000 (15:15 -0700)]
test: Switch field privacy as necessary

10 years agoterm: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:13:45 +0000 (15:13 -0700)]
term: Switch field privacy as necessary

10 years agoserialize: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:13:35 +0000 (15:13 -0700)]
serialize: Switch field privacy as necessary

10 years agolog: Swith field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:13:27 +0000 (15:13 -0700)]
log: Swith field privacy as necessary

10 years agoarena: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:13:16 +0000 (15:13 -0700)]
arena: Switch field privacy as necessary

10 years agosync: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:10:45 +0000 (15:10 -0700)]
sync: Switch field privacy as necessary

10 years agorand: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:10:38 +0000 (15:10 -0700)]
rand: Switch field privacy as necessary

10 years agonative: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:10:28 +0000 (15:10 -0700)]
native: Switch field privacy as necessary

10 years agogetopts: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:10:18 +0000 (15:10 -0700)]
getopts: Switch field privacy as necessary

10 years agocollections: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:10:04 +0000 (15:10 -0700)]
collections: Switch field privacy as necessary

10 years agostd: Switch field privacy as necessary
Alex Crichton [Thu, 27 Mar 2014 22:09:47 +0000 (15:09 -0700)]
std: Switch field privacy as necessary

10 years agonum: rm wrapping of `Float` methods as functions
Daniel Micay [Mon, 31 Mar 2014 11:00:26 +0000 (07:00 -0400)]
num: rm wrapping of `Float` methods as functions

The `Float` trait methods will be usable as functions via UFCS, and
we came to a consensus to remove duplicate functions like this a long
time ago.

It does still make sense to keep the duplicate functions when the trait
methods are static, unless the decision to leave out the in-scope trait
name resolution for static methods changes.

10 years agorustc: Switch struct fields to private by default
Alex Crichton [Thu, 27 Mar 2014 20:22:56 +0000 (13:22 -0700)]
rustc: Switch struct fields to private by default

This commit switches privacy's checking of fields to have *all* fields be
private by default. This does not yet change tuple structs, this only affects
structs with named fields. The fallout of this change will follow shortly.

RFC: 0004-private-fields

cc #8122
Closes #11809

10 years agoauto merge of #13189 : alexcrichton/rust/relnotes, r=brson
bors [Mon, 31 Mar 2014 20:06:37 +0000 (13:06 -0700)]
auto merge of #13189 : alexcrichton/rust/relnotes, r=brson

10 years agoauto merge of #13230 : Kroisse/rust/encodable-json, r=erickt
bors [Mon, 31 Mar 2014 18:11:40 +0000 (11:11 -0700)]
auto merge of #13230 : Kroisse/rust/encodable-json, r=erickt

The implementation of `Encodable<E, S>` for `Json` doesn't need to assume `S` to be `IoError`, only the default encoders for `Json` are depend on it. So this can be parametrize to increase flexiblity. If not, types that implement `Encoder<E>` where `E` is not `IoError` can't be worked with `Json`.

10 years agoJson doesn't need to depend on IoError to implement Encodable #13230
Eunchong Yu [Mon, 31 Mar 2014 17:37:38 +0000 (02:37 +0900)]
Json doesn't need to depend on IoError to implement Encodable #13230

10 years agoauto merge of #13223 : brson/rust/dist, r=alexcrichton
bors [Mon, 31 Mar 2014 16:41:34 +0000 (09:41 -0700)]
auto merge of #13223 : brson/rust/dist, r=alexcrichton

10 years agoauto merge of #13221 : thestinger/rust/append, r=alexcrichton
bors [Mon, 31 Mar 2014 09:11:34 +0000 (02:11 -0700)]
auto merge of #13221 : thestinger/rust/append, r=alexcrichton

These were only free functions on `~[T]` because taking self by-value
used to be broken.

10 years agoauto merge of #13220 : brson/rust/from_iter, r=thestinger
bors [Mon, 31 Mar 2014 07:51:35 +0000 (00:51 -0700)]
auto merge of #13220 : brson/rust/from_iter, r=thestinger

10 years agomk: Workaround distcheck failure on mac. #13224
Brian Anderson [Mon, 31 Mar 2014 07:05:41 +0000 (00:05 -0700)]
mk: Workaround distcheck failure on mac. #13224

Mac can't actually build our source tarballs because it's `tar`
command doesn't support the --exclude-vcs flag. This is just
a workaround to make our mac nightlies work (we get our source
tarballs from the linux bot).

10 years agoauto merge of #13206 : TeXitoi/rust/fix-shootout-k-nucleotide, r=alexcrichton
bors [Mon, 31 Mar 2014 06:31:37 +0000 (23:31 -0700)]
auto merge of #13206 : TeXitoi/rust/fix-shootout-k-nucleotide, r=alexcrichton

Correct printing (sort, new lines), reading on stdin.

10 years agovec: convert `append` and `append_one` to methods
Daniel Micay [Mon, 31 Mar 2014 03:53:26 +0000 (23:53 -0400)]
vec: convert `append` and `append_one` to methods

These were only free functions on `~[T]` because taking self by-value
used to be broken.

10 years agoRename `from_iterator` to `from_iter` for consistency.
Brian Anderson [Mon, 31 Mar 2014 04:45:55 +0000 (21:45 -0700)]
Rename `from_iterator` to `from_iter` for consistency.

10 years agomk: distcheck --uninstall
Brian Anderson [Mon, 31 Mar 2014 04:23:43 +0000 (21:23 -0700)]
mk: distcheck --uninstall

10 years agodist: Add libbacktrace to source tarballs
Brian Anderson [Mon, 31 Mar 2014 04:13:25 +0000 (21:13 -0700)]
dist: Add libbacktrace to source tarballs

10 years agoauto merge of #13219 : brson/rust/dist-root, r=sfackler
bors [Mon, 31 Mar 2014 04:11:40 +0000 (21:11 -0700)]
auto merge of #13219 : brson/rust/dist-root, r=sfackler

10 years agomk: Don't touch config.tmp or tmp/dist as root. Closes #13190
Brian Anderson [Mon, 31 Mar 2014 03:14:32 +0000 (20:14 -0700)]
mk: Don't touch config.tmp or tmp/dist as root. Closes #13190

When running `make install` we are touching these files that can't
then be removed later.

10 years agoauto merge of #13218 : brson/rust/dist-mac, r=sfackler
bors [Mon, 31 Mar 2014 02:56:40 +0000 (19:56 -0700)]
auto merge of #13218 : brson/rust/dist-mac, r=sfackler

10 years agomk: Fix 'make dist' on Mac
Brian Anderson [Mon, 31 Mar 2014 02:14:39 +0000 (19:14 -0700)]
mk: Fix 'make dist' on Mac

10 years agoauto merge of #13216 : alexcrichton/rust/fix-configure-for-travis, r=sfackler
bors [Mon, 31 Mar 2014 00:21:40 +0000 (17:21 -0700)]
auto merge of #13216 : alexcrichton/rust/fix-configure-for-travis, r=sfackler

The previous regex was a bit to strict, rejecting versions such as 3.4.1 which
is apparently the version which travis is currently installing, causing all
travis builds to fail.

10 years agoauto merge of #13211 : csherratt/rust/arc_fix, r=alexcrichton
bors [Sun, 30 Mar 2014 23:01:43 +0000 (16:01 -0700)]
auto merge of #13211 : csherratt/rust/arc_fix, r=alexcrichton

This is a fix for #13210. fetch_sub returns the old value of the atomic variable, not the new one.

10 years agoauto merge of #13215 : sfackler/rust/vim-attr, r=alexcrichton
bors [Sun, 30 Mar 2014 21:01:47 +0000 (14:01 -0700)]
auto merge of #13215 : sfackler/rust/vim-attr, r=alexcrichton

10 years agoconfigure: Accept LLVM 3.4.X during configuration
Alex Crichton [Sun, 30 Mar 2014 20:54:57 +0000 (13:54 -0700)]
configure: Accept LLVM 3.4.X during configuration

The previous regex was a bit to strict, rejecting versions such as 3.4.1 which
is apparently the version which travis is currently installing, causing all
travis builds to fail.

10 years agoSupport new attribute syntax in vim syntax file
Steven Fackler [Sun, 30 Mar 2014 19:53:44 +0000 (12:53 -0700)]
Support new attribute syntax in vim syntax file

10 years agoCheck that the old value was 1 and not 0 when dropping a Arc value.
Colin Sherratt [Sun, 30 Mar 2014 17:06:24 +0000 (13:06 -0400)]
Check that the old value was 1 and not 0 when dropping a Arc value.
Closed #13210.

10 years agoauto merge of #13208 : Tohie/rust/master, r=alexcrichton
bors [Sun, 30 Mar 2014 18:26:44 +0000 (11:26 -0700)]
auto merge of #13208 : Tohie/rust/master, r=alexcrichton

10 years agoAdd draft 0.10 release notes
Alex Crichton [Sat, 29 Mar 2014 00:08:32 +0000 (17:08 -0700)]
Add draft 0.10 release notes

10 years agomake shootout-k-nucleotide.rs pass official test
Guillaume Pinot [Sun, 30 Mar 2014 10:04:57 +0000 (12:04 +0200)]
make shootout-k-nucleotide.rs pass official test

Correct printing (sort, new lines), reading on stdin, s/i32/uint/,
ignore-android because it reads stdin

10 years agoUpdated references to extra in libcollections docs
Scott Jenkins [Sun, 30 Mar 2014 12:35:54 +0000 (13:35 +0100)]
Updated references to extra in libcollections docs

10 years agoauto merge of #13203 : Kimundi/rust/de-map-vec3, r=cmr
bors [Sun, 30 Mar 2014 01:56:36 +0000 (18:56 -0700)]
auto merge of #13203 : Kimundi/rust/de-map-vec3, r=cmr

They required unnecessary temporaries, are replaced with iterators, and would conflict with a possible future `Iterable` trait.

10 years agoRemoved deprecated functions `map` and `flat_map` for vectors and slices.
Marvin Löbel [Fri, 28 Mar 2014 19:42:34 +0000 (20:42 +0100)]
Removed deprecated functions `map` and `flat_map` for vectors and slices.

10 years agoauto merge of #13200 : sfackler/rust/test-attr, r=cmr
bors [Sat, 29 Mar 2014 23:11:36 +0000 (16:11 -0700)]
auto merge of #13200 : sfackler/rust/test-attr, r=cmr

10 years agoUse new inner attribute syntax in test framework
Steven Fackler [Sat, 29 Mar 2014 22:10:22 +0000 (15:10 -0700)]
Use new inner attribute syntax in test framework

10 years agoauto merge of #13199 : klutzy/rust/msys2, r=cmr
bors [Sat, 29 Mar 2014 20:31:36 +0000 (13:31 -0700)]
auto merge of #13199 : klutzy/rust/msys2, r=cmr

MSYS2 supports `MINGW64` system for 64-bit environment. It sets
`MSYSTEM=MINGW64` environment variable, which changes output of
`uname -s` thus affects `configure` behavior.

This patch adds `MINGW64*` support for `configure`.

10 years agoconfigure: Add MINGW64 OS type
klutzy [Sat, 29 Mar 2014 19:34:26 +0000 (04:34 +0900)]
configure: Add MINGW64 OS type

MSYS2 supports `MINGW64` system for 64-bit environment. It sets
`MSYSTEM=MINGW64` environment variable, which changes output of
`uname -s` thus affects `configure` behavior.

This patch adds `MINGW64*` support for `configure`.

10 years agoauto merge of #13183 : erickt/rust/remove-list, r=alexcrichton
bors [Sat, 29 Mar 2014 18:41:37 +0000 (11:41 -0700)]
auto merge of #13183 : erickt/rust/remove-list, r=alexcrichton

`collections::list::List` was decided in a [team meeting](https://github.com/mozilla/rust/wiki/Meeting-weekly-2014-03-25) that it was unnecessary, so this PR removes it. Additionally, it removes an old and redundant purity test and fixes some warnings.

10 years agoauto merge of #13143 : gentlefolk/rust/issue-9227, r=michaelwoerister
bors [Sat, 29 Mar 2014 17:21:39 +0000 (10:21 -0700)]
auto merge of #13143 : gentlefolk/rust/issue-9227, r=michaelwoerister

Only supports crate level statics. No debug info is generated for function level statics. Closes #9227.

As discussed at the end of the comments for #9227, I took an initial stab at adding support for function level statics and decided it would be enough work to warrant being split into a separate issue.

See #13144 for the new issue describing the need to add support for function level static variables.

10 years agoauto merge of #13193 : pongad/rust/fixconfig, r=thestinger
bors [Sat, 29 Mar 2014 11:51:38 +0000 (04:51 -0700)]
auto merge of #13193 : pongad/rust/fixconfig, r=thestinger

Fixes #13147

Not a shell pro myself, though after running the new config, make and make check still work ok.

10 years agoauto merge of #13188 : FlaPer87/rust/master, r=alexcrichton
bors [Sat, 29 Mar 2014 09:56:40 +0000 (02:56 -0700)]
auto merge of #13188 : FlaPer87/rust/master, r=alexcrichton

10 years agoauto merge of #13185 : alexcrichton/rust/osx-pkg, r=brson
bors [Sat, 29 Mar 2014 08:41:42 +0000 (01:41 -0700)]
auto merge of #13185 : alexcrichton/rust/osx-pkg, r=brson

This performs a few touch-ups to the OSX installer:

* A rust logo is shown during installation
* The installation happens to /usr/local by default (instead of /)
* A new welcome screen is shown that's slightly more relevant

10 years agoauto merge of #13168 : jankobler/rust/verify-grammar-02, r=brson
bors [Sat, 29 Mar 2014 06:01:43 +0000 (23:01 -0700)]
auto merge of #13168 : jankobler/rust/verify-grammar-02, r=brson

This fixes some problems  with

     make verify-grammar

llnextgen still reports a lot of errors

FYI: My build directory /my-test/build is different from the source directory /my-test/rust.
cd  /my-test/build
/my-test/rust/configure --prefix=/my-test/bin
make
make install
make verify-grammar

10 years agoauto merge of #13187 : brson/rust/dist, r=alexcrichton
bors [Sat, 29 Mar 2014 04:41:44 +0000 (21:41 -0700)]
auto merge of #13187 : brson/rust/dist, r=alexcrichton

10 years agoconfigure uses `command -v` instead of `which` #13147
Michael Darakananda [Sat, 29 Mar 2014 04:16:41 +0000 (00:16 -0400)]
configure uses `command -v` instead of `which` #13147

10 years agomk: Restore DESTDIR
Brian Anderson [Sat, 29 Mar 2014 03:55:45 +0000 (20:55 -0700)]
mk: Restore DESTDIR

10 years agoauto merge of #13170 : eddyb/rust/syntax-cleanup, r=alexcrichton
bors [Sat, 29 Mar 2014 03:21:45 +0000 (20:21 -0700)]
auto merge of #13170 : eddyb/rust/syntax-cleanup, r=alexcrichton

Removes all Cell's/RefCell's from lexer::Reader implementations and a couple @.

10 years agoauto merge of #13157 : pnkfelix/rust/fsk-iss13140, r=nikomatsakis
bors [Sat, 29 Mar 2014 02:01:48 +0000 (19:01 -0700)]
auto merge of #13157 : pnkfelix/rust/fsk-iss13140, r=nikomatsakis

r? @nikomatsakis

Fix #13140

Includes two fixes, and a semi-thorough regression test.

(There is another set of tests that I linked from #5121, but those are sort of all over the place, while the ones I've included here are more directly focused on the issues at hand.)

10 years agodist: Tweak the OSX pkg installer
Alex Crichton [Fri, 28 Mar 2014 21:35:43 +0000 (14:35 -0700)]
dist: Tweak the OSX pkg installer

This performs a few touch-ups to the OSX installer:

* A rust logo is shown during installation
* The installation happens to /usr/local by default (instead of /)
* A new welcome screen is shown that's slightly more relevant

10 years agoauto merge of #13162 : alexcrichton/rust/attr-syntax, r=brson
bors [Sat, 29 Mar 2014 00:16:48 +0000 (17:16 -0700)]
auto merge of #13162 : alexcrichton/rust/attr-syntax, r=brson

This is the rebasing of #13068 with a fix for #13067 as the first commit.