]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoBump version to 0.10
Alex Crichton [Mon, 31 Mar 2014 20:11:35 +0000 (13:11 -0700)]
Bump version to 0.10

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.

10 years agoRegister new snapshot
Flavio Percoco [Sat, 29 Mar 2014 00:05:46 +0000 (01:05 +0100)]
Register new snapshot

10 years agoConvert most code to new inner attribute syntax.
Brian Anderson [Sat, 22 Mar 2014 01:05:05 +0000 (18:05 -0700)]
Convert most code to new inner attribute syntax.

Closes #2569

10 years agosyntax: Accept meta matchers in macros
Alex Crichton [Wed, 26 Mar 2014 23:14:07 +0000 (16:14 -0700)]
syntax: Accept meta matchers in macros

This removes the `attr` matcher and adds a `meta` matcher. The previous `attr`
matcher is now ambiguous because it doesn't disambiguate whether it means inner
attribute or outer attribute.

The new behavior can still be achieved by taking an argument of the form
`#[$foo:meta]` (the brackets are part of the macro pattern).

Closes #13067

10 years agoinstall: More error handling
Brian Anderson [Fri, 28 Mar 2014 22:59:20 +0000 (15:59 -0700)]
install: More error handling

10 years agoinstall: Extract function for creating absolute paths and reuse it
Brian Anderson [Fri, 28 Mar 2014 22:48:49 +0000 (15:48 -0700)]
install: Extract function for creating absolute paths and reuse it

10 years agoinstall: Fix string formatting in an error
Brian Anderson [Fri, 28 Mar 2014 22:02:46 +0000 (15:02 -0700)]
install: Fix string formatting in an error

10 years agoinstall: Explicitly delete the manifest during uninstall. Misc cleanup
Brian Anderson [Fri, 28 Mar 2014 21:57:08 +0000 (14:57 -0700)]
install: Explicitly delete the manifest during uninstall. Misc cleanup

10 years agoinstall: Verify that installed compiler runs
Brian Anderson [Fri, 28 Mar 2014 09:43:31 +0000 (02:43 -0700)]
install: Verify that installed compiler runs

Another sanity check. Can be disabled in `install.sh` via `--disable-verify`
and `configure` with `--disable-verify-install`.

10 years agoauto merge of #13161 : FlaPer87/rust/master, r=alexcrichton
bors [Fri, 28 Mar 2014 21:06:41 +0000 (14:06 -0700)]
auto merge of #13161 : FlaPer87/rust/master, r=alexcrichton

10 years agoauto merge of #13158 : alexcrichton/rust/issue-13123, r=brson
bors [Fri, 28 Mar 2014 19:46:44 +0000 (12:46 -0700)]
auto merge of #13158 : alexcrichton/rust/issue-13123, r=brson

Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a
syscall by default. The native runtime doesn't install a SIGPIPE handler,
causing the program to die immediately in this case. This brings the behavior in
line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the
application in the form of an IoError.

Closes #13123

10 years agonative: Ignore SIGPIPE by default
Alex Crichton [Wed, 26 Mar 2014 21:34:52 +0000 (14:34 -0700)]
native: Ignore SIGPIPE by default

Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a
syscall by default. The native runtime doesn't install a SIGPIPE handler,
causing the program to die immediately in this case. This brings the behavior in
line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the
application in the form of an IoError.

Closes #13123

10 years agoauto merge of #13131 : alexcrichton/rust/issue-13124, r=brson
bors [Fri, 28 Mar 2014 18:21:47 +0000 (11:21 -0700)]
auto merge of #13131 : alexcrichton/rust/issue-13124, r=brson

It turns out that on linux, and possibly other platforms, child processes will
continue to accept signals until they have been *reaped*. This means that once
the child has exited, it will succeed to receive signals until waitpid() has
been invoked on it.

This is unfortunate behavior, and differs from what is seen on OSX and windows.
This commit changes the behavior of Process::signal() to be the same across
platforms, and updates the documentation of Process::kill() to note that when
signaling a foreign process it may accept signals until reaped.

Implementation-wise, this invokes waitpid() with WNOHANG before each signal to
the child to ensure that if the child has exited that we will reap it. Other
possibilities include installing a SIGCHLD signal handler, but at this time I
believe that that's too complicated.

Closes #13124

10 years agonative: Use WNOHANG before signaling
Alex Crichton [Tue, 25 Mar 2014 15:44:40 +0000 (08:44 -0700)]
native: Use WNOHANG before signaling

It turns out that on linux, and possibly other platforms, child processes will
continue to accept signals until they have been *reaped*. This means that once
the child has exited, it will succeed to receive signals until waitpid() has
been invoked on it.

This is unfortunate behavior, and differs from what is seen on OSX and windows.
This commit changes the behavior of Process::signal() to be the same across
platforms, and updates the documentation of Process::kill() to note that when
signaling a foreign process it may accept signals until reaped.

Implementation-wise, this invokes waitpid() with WNOHANG before each signal to
the child to ensure that if the child has exited that we will reap it. Other
possibilities include installing a SIGCHLD signal handler, but at this time I
believe that that's too complicated.

Closes #13124

10 years agoRemove `Freeze` and add `Share` in vim's syntax
Flavio Percoco [Wed, 26 Mar 2014 23:07:48 +0000 (00:07 +0100)]
Remove `Freeze` and add `Share` in vim's syntax

10 years agoRemove a RefCell from pprust::State.
Eduard Burtescu [Thu, 27 Mar 2014 17:31:00 +0000 (19:31 +0200)]
Remove a RefCell from pprust::State.

10 years agoDe-@ IdentInterner.
Eduard Burtescu [Thu, 27 Mar 2014 17:28:38 +0000 (19:28 +0200)]
De-@ IdentInterner.

10 years agoDe-@ NamedMatch.
Eduard Burtescu [Thu, 27 Mar 2014 14:52:27 +0000 (16:52 +0200)]
De-@ NamedMatch.

10 years agoDe-@ TokenTree.
Eduard Burtescu [Thu, 27 Mar 2014 14:40:35 +0000 (16:40 +0200)]
De-@ TokenTree.

10 years agoUsed inherited mutability in lexer::Reader.
Eduard Burtescu [Thu, 27 Mar 2014 13:14:58 +0000 (15:14 +0200)]
Used inherited mutability in lexer::Reader.

10 years agostd and green: fix some warnings
Erick Tryzelaar [Fri, 28 Mar 2014 16:16:22 +0000 (09:16 -0700)]
std and green: fix some warnings

10 years agotest: remove pure test, which is now redundant with inline tests
Erick Tryzelaar [Wed, 19 Mar 2014 04:32:02 +0000 (21:32 -0700)]
test: remove pure test, which is now redundant with inline tests

10 years agocollections: remove List
Erick Tryzelaar [Wed, 19 Mar 2014 04:31:40 +0000 (21:31 -0700)]
collections: remove List

It was decided in a meeting that this module wasn't needed,
and more thought should be put into a persistent collections
library.

10 years agoauto merge of #13160 : FlaPer87/rust/rename-pod, r=thestinger
bors [Fri, 28 Mar 2014 13:26:47 +0000 (06:26 -0700)]
auto merge of #13160 : FlaPer87/rust/rename-pod, r=thestinger

So far, we've used the term POD "Plain Old Data" to refer to types that
can be safely copied. However, this term is not consistent with the
other built-in bounds that use verbs instead. This patch renames the `Pod`
kind into `Copy`.

RFC: 0003-opt-in-builtin-traits

r? @nikomatsakis

10 years agoauto merge of #13154 : tomassedovic/rust/patch-1, r=alexcrichton
bors [Fri, 28 Mar 2014 11:26:48 +0000 (04:26 -0700)]
auto merge of #13154 : tomassedovic/rust/patch-1, r=alexcrichton

HashMap and HashSet require keys to implement TotalEq. This makes it possible to use TypeId as a HashMap key again.

Question for reviewers: assuming we want to support `HashMap<TypeId, whatever>`, would it make sense to add a relevant test? If so, should it go to libcollections or libstd?

10 years agoRename Pod into Copy
Flavio Percoco [Wed, 26 Mar 2014 23:01:11 +0000 (00:01 +0100)]
Rename Pod into Copy

Summary:
So far, we've used the term POD "Plain Old Data" to refer to types that
can be safely copied. However, this term is not consistent with the
other built-in bounds that use verbs instead. This patch renames the Pod
kind into Copy.

RFC: 0003-opt-in-builtin-traits

Test Plan: make check

Reviewers: cmr

Differential Revision: http://phabricator.octayn.net/D3

10 years agoauto merge of #13149 : brson/rust/rustdoclogo, r=alexcrichton
bors [Fri, 28 Mar 2014 09:16:49 +0000 (02:16 -0700)]
auto merge of #13149 : brson/rust/rustdoclogo, r=alexcrichton

10 years agoauto merge of #13107 : seanmonstar/rust/encoder-errors, r=erickt
bors [Fri, 28 Mar 2014 07:26:52 +0000 (00:26 -0700)]
auto merge of #13107 : seanmonstar/rust/encoder-errors, r=erickt

All of Decoder and Encoder's methods now return a Result.

Encodable.encode() and Decodable.decode() return a Result as well.

fixes #12292

10 years agoauto merge of #13108 : pongad/rust/lintraw, r=huonw
bors [Fri, 28 Mar 2014 06:11:54 +0000 (23:11 -0700)]
auto merge of #13108 : pongad/rust/lintraw, r=huonw

Fixes #13032

10 years agoauto merge of #13174 : brson/rust/dist, r=alexcrichton,huonw
bors [Fri, 28 Mar 2014 04:21:56 +0000 (21:21 -0700)]
auto merge of #13174 : brson/rust/dist, r=alexcrichton,huonw

10 years agomk: Fix syntax error in installation target
Brian Anderson [Fri, 28 Mar 2014 03:21:57 +0000 (20:21 -0700)]
mk: Fix syntax error in installation target

10 years agoauto merge of #13173 : alexcrichton/rust/rustdoc-mods, r=huonw
bors [Fri, 28 Mar 2014 03:01:56 +0000 (20:01 -0700)]
auto merge of #13173 : alexcrichton/rust/rustdoc-mods, r=huonw

... be stripped out"

This reverts commit 7180b5de4452095b032e6c77a77d8c6f81c4f6d3.

We don't particularly need this, I've never seen it clutter up the docs, it just seemed nice at the time. Sadly it caused a regression for reexported methods.

Closes #13091

10 years agoInitial support for emitting DWARF for static vars.
gentlefolk [Fri, 21 Feb 2014 01:44:29 +0000 (20:44 -0500)]
Initial support for emitting DWARF for static vars.

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

10 years agoserialize: use Result
Sean McArthur [Tue, 18 Mar 2014 17:58:26 +0000 (10:58 -0700)]
serialize: use Result

All of Decoder and Encoder's methods now return a Result.

Encodable.encode() and Decodable.decode() return a Result as well.

fixes #12292

10 years agoauto merge of #13142 : alexcrichton/rust/issue-13118, r=brson
bors [Fri, 28 Mar 2014 00:11:58 +0000 (17:11 -0700)]
auto merge of #13142 : alexcrichton/rust/issue-13118, r=brson

The previous dependency calculation was based on an arbitrary set of asterisks
at an arbitrary depth, but using the recursive version should be much more
robust in figuring out what's dependent.

10 years agoRevert "Modules are either public, or private, so private modules should be stripped...
Alex Crichton [Thu, 27 Mar 2014 23:00:14 +0000 (16:00 -0700)]
Revert "Modules are either public, or private, so private modules should be stripped out"

This reverts commit 7180b5de4452095b032e6c77a77d8c6f81c4f6d3.

10 years agoauto merge of #13050 : alexcrichton/rust/no-send-default, r=huonw
bors [Thu, 27 Mar 2014 21:32:02 +0000 (14:32 -0700)]
auto merge of #13050 : alexcrichton/rust/no-send-default, r=huonw

See #10296 for the rationale, and commits for the implementation.

10 years agomk: Always touch libuv.a
Brian Anderson [Thu, 27 Mar 2014 21:29:07 +0000 (14:29 -0700)]
mk: Always touch libuv.a

libuv.a always looks out of date to the makefile, causing make to
always descend into the libuv makefile, even when there's nothing
to build.

10 years agoauto merge of #13151 : brson/rust/dist, r=alexcrichton,brson
bors [Thu, 27 Mar 2014 20:11:58 +0000 (13:11 -0700)]
auto merge of #13151 : brson/rust/dist, r=alexcrichton,brson

A variety of stuff here, mostly aimed at making `make install` work correctly with `--libdir` and `--mandir`. `make install` again goes through `install.sh`.

10 years agodoc: Update the tutorial about bounds for traits
Alex Crichton [Wed, 26 Mar 2014 23:07:44 +0000 (16:07 -0700)]
doc: Update the tutorial about bounds for traits

10 years agoFix fallout of removing default bounds
Alex Crichton [Sun, 9 Mar 2014 02:21:49 +0000 (18:21 -0800)]
Fix fallout of removing default bounds

This is all purely fallout of getting the previous commit to compile.

10 years agorustc: Stop adding the Send bound implicitly
Alex Crichton [Thu, 20 Mar 2014 21:10:52 +0000 (14:10 -0700)]
rustc: Stop adding the Send bound implicitly

This commit removes implicitly adding the Send bound to ~Trait objects and
procedure types. It will now be manually required to specify that a procedure
or trait must be send-able.

Closes #10296

10 years agoauto merge of #13136 : alexcrichton/rust/spawn-deadlock, r=brson
bors [Thu, 27 Mar 2014 16:52:03 +0000 (09:52 -0700)]
auto merge of #13136 : alexcrichton/rust/spawn-deadlock, r=brson

This bench is meant to exercise libgreen, not libnative. It recently caused the
auto-linux-32-nopt-t bot to fail as no output was produced for an hour.

10 years agoauto merge of #13001 : cmr/rust/unnamed-lifetime-nocapture, r=nikomatsakis
bors [Thu, 27 Mar 2014 13:37:00 +0000 (06:37 -0700)]
auto merge of #13001 : cmr/rust/unnamed-lifetime-nocapture, r=nikomatsakis

Closes #6751

10 years agotest/run-pass/out-of-stack: prevent tco
Corey Richardson [Thu, 27 Mar 2014 11:54:41 +0000 (07:54 -0400)]
test/run-pass/out-of-stack: prevent tco

We really do *not* want TCO to kick in. If it does, we'll never blow the
stack, and never trigger the condition the test is checking for. To that end,
do a meaningless alloc that serves only to get a destructor to run. The
addition of nocapture/noalias seems to have let LLVM do more TCO, which
hurt this testcase.

10 years agoverify-grammar llnextgen
Jan Kobler [Wed, 26 Mar 2014 22:44:55 +0000 (23:44 +0100)]
verify-grammar llnextgen

When calling

    make verify-grammar

a lot of errors are reported by llnextgen.

Only simple errors like:

  missing semicolons,
  missing single quotes,
  usage of parentheses instead of squared brackets or
  usage of single quote instead of double quote

are fixed by this patch.

This can only be tested, when llnextgen is installed.

Signed-off-by: Jan Kobler <eng1@koblersystems.de>
10 years agoverify-grammar keyword crate
Jan Kobler [Wed, 26 Mar 2014 22:22:21 +0000 (23:22 +0100)]
verify-grammar keyword crate

When calling

   make verify-grammar

or when llnextgen is not installed:

   python2.7 src/etc/extract_grammar.py <src/doc/rust.md

an error is reported by extract_grammar.py that the

keyword "crate" is not defined.

This patch adds the keyword "crate" to the grammar in rust.md.

Signed-off-by: Jan Kobler <eng1@koblersystems.de>
10 years agoverify-grammar path to rust.md
Jan Kobler [Wed, 26 Mar 2014 22:20:59 +0000 (23:20 +0100)]
verify-grammar path to rust.md

When calling

   make verify-grammar

rust.md cannot be found, because the
path to rust.md is missing.

The path is set to:

   $(D)/rust.md

This can only be tested, when llnextgen is installed.

Signed-off-by: Jan Kobler <eng1@koblersystems.de>
10 years agoauto merge of #13034 : edwardw/rust/match, r=nikomatsakis
bors [Thu, 27 Mar 2014 09:17:02 +0000 (02:17 -0700)]
auto merge of #13034 : edwardw/rust/match, r=nikomatsakis

The `_match.rs` takes advantage of passes prior to `trans` and
aggressively prunes the sub-match tree based on exact equality. When it
comes to literal or range, the strategy may lead to wrong result if
there's guard function or multiple patterns inside tuple.

Closes #12582.
Closes #13027.

10 years agoAddress review
Corey Richardson [Mon, 24 Mar 2014 16:38:23 +0000 (12:38 -0400)]
Address review

10 years agorustc: mark references w/anonymous lifetime nocapture
Corey Richardson [Tue, 18 Mar 2014 13:46:43 +0000 (09:46 -0400)]
rustc: mark references w/anonymous lifetime nocapture

Closes #6751

10 years ago_match.rs: prune sub-match tree too aggressively
Edward Wang [Sat, 22 Mar 2014 12:55:46 +0000 (20:55 +0800)]
_match.rs: prune sub-match tree too aggressively

The `_match.rs` takes advantage of passes prior to `trans` and
aggressively prunes the sub-match tree based on exact equality. When it
comes to literal or range, the strategy may lead to wrong result if
there's guard function or multiple patterns inside tuple.

Closes #12582.
Closes #13027.

10 years agoAdded lint for #[deriving] structs and enums with unsafe pointers. #13032.
Michael Darakananda [Sun, 23 Mar 2014 17:35:52 +0000 (13:35 -0400)]
Added lint for #[deriving] structs and enums with unsafe pointers. #13032.

10 years agomk: Use 'find' invocation that works on mac
Brian Anderson [Thu, 27 Mar 2014 03:53:57 +0000 (20:53 -0700)]
mk: Use 'find' invocation that works on mac

10 years agorustc: Fix tests for sysroot changes
Brian Anderson [Thu, 27 Mar 2014 03:53:01 +0000 (20:53 -0700)]
rustc: Fix tests for sysroot changes