]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #11045 : jhasse/rust/patch-libdir, r=alexcrichton
bors [Tue, 7 Jan 2014 20:26:32 +0000 (12:26 -0800)]
auto merge of #11045 : jhasse/rust/patch-libdir, r=alexcrichton

See https://github.com/mozilla/rust/issues/5223#issuecomment-30455086

10 years agoauto merge of #11263 : niftynif/rust/btree, r=catamorphism
bors [Tue, 7 Jan 2014 19:01:41 +0000 (11:01 -0800)]
auto merge of #11263 : niftynif/rust/btree, r=catamorphism

Apologies for junking up the feed with all of these separate pull requests.  I'm still getting the hang of git and will hopefully be doing less of this nonsense soon.  I opened up another PR and closed the one from earlier today because the first PR was coming from the wrong branch of my repo.
Anyway, this contains a fleshed-out implementation of TotalEq/TotalOrd/Clone/ToStr for the whole B-tree structure and relevant tests, integrating suggestions and comments from several community members.
r? @catamorphism

10 years agoauto merge of #11353 : alexcrichton/rust/improve-logging, r=brson
bors [Tue, 7 Jan 2014 17:41:35 +0000 (09:41 -0800)]
auto merge of #11353 : alexcrichton/rust/improve-logging, r=brson

This will allow capturing of common things like logging messages, stdout prints
(using stdio println), and failure messages (printed to stderr).  Any new prints
added to libstd should be funneled through these task handles to allow capture
as well.

Additionally, this commit redirects logging back through a `Logger` trait so the
log level can be usefully consumed by an arbitrary logger.

This commit also introduces methods to set the task-local stdout handles:

* std::io::stdio::set_stdout
* std::io::stdio::set_stderr
* std::io::logging::set_logger

These methods all return the previous logger just in case it needs to be used
for inspection.

I plan on using this infrastructure for extra::test soon, but we don't quite
have the primitives that I'd like to use for it, so it doesn't migrate
extra::test at this time.

Closes #6369

10 years agoMake CFG_LIBDIR configurable. Fixes #5223
Jan Niklas Hasse [Tue, 7 Jan 2014 16:51:15 +0000 (17:51 +0100)]
Make CFG_LIBDIR configurable. Fixes #5223

10 years agoRemove trailing whitespace
Jan Niklas Hasse [Tue, 7 Jan 2014 16:45:41 +0000 (17:45 +0100)]
Remove trailing whitespace

10 years agoauto merge of #11350 : kchmck/rust/fix-pdf-glitches, r=alexcrichton
bors [Tue, 7 Jan 2014 16:26:33 +0000 (08:26 -0800)]
auto merge of #11350 : kchmck/rust/fix-pdf-glitches, r=alexcrichton

I was reading through the tutorial and manual pdfs and noticed some of the code blocks have glitches in their formatting:

![](http://i.imgur.com/9HXZ4dW.png)
![](http://i.imgur.com/Ds2By6j.png)

Putting empty lines around the blocks fixes this. I did a search through the other markdown files and made the change there as well.

10 years agoauto merge of #11348 : alexcrichton/rust/snapshots, r=brson
bors [Tue, 7 Jan 2014 15:11:36 +0000 (07:11 -0800)]
auto merge of #11348 : alexcrichton/rust/snapshots, r=brson

10 years agoauto merge of #11342 : huonw/rust/trie-mut, r=alexcrichton
bors [Tue, 7 Jan 2014 13:56:36 +0000 (05:56 -0800)]
auto merge of #11342 : huonw/rust/trie-mut, r=alexcrichton

- Add `mut_iter`, `mut_lower_bound`, `mut_upper_bound`
- Remove some internal iterators
- Add benchmarks
- Improve performance of `{mut_,}{lower,upper}_bound`
- Minor clean-up of `extra::treemap` after I realised I wasn't exploiting macros to their full DRY potential.

10 years agoextra::treemap: use the dummy-macro trick with items to make the
Huon Wilson [Mon, 6 Jan 2014 15:09:07 +0000 (02:09 +1100)]
extra::treemap: use the dummy-macro trick with items to make the
iterator macro properly hygiene.

Requires less repetition of `mut` or not too.

10 years agostd::trie: make lower_bound and upper_bound about 15% faster.
Huon Wilson [Mon, 6 Jan 2014 14:45:10 +0000 (01:45 +1100)]
std::trie: make lower_bound and upper_bound about 15% faster.

I believe this is mainly due to code-size reduction.

Before:

    test [...]::bench_lower_bound ... bench:       818 ns/iter (+/- 100)
    test [...]::bench_upper_bound ... bench:       939 ns/iter (+/- 34)

After:

    test [...]::bench_lower_bound ... bench:       698 ns/iter (+/- 60)
    test [...]::bench_upper_bound ... bench:       817 ns/iter (+/- 20)

10 years agostd::trie: Add some iteration/search benchmarks.
Huon Wilson [Mon, 6 Jan 2014 14:42:55 +0000 (01:42 +1100)]
std::trie: Add some iteration/search benchmarks.

10 years agostd::trie: use macros to share code between the iterator implementations.
Huon Wilson [Mon, 6 Jan 2014 14:00:19 +0000 (01:00 +1100)]
std::trie: use macros to share code between the iterator implementations.

10 years agostd::trie: remove some obsolete internal iterators.
Huon Wilson [Mon, 6 Jan 2014 13:17:38 +0000 (00:17 +1100)]
std::trie: remove some obsolete internal iterators.

10 years agostd::trie: add an mutable-values iterator.
Huon Wilson [Mon, 6 Jan 2014 13:14:37 +0000 (00:14 +1100)]
std::trie: add an mutable-values iterator.

10 years agoauto merge of #11347 : alexcrichton/rust/issue-11346, r=brson
bors [Tue, 7 Jan 2014 12:41:39 +0000 (04:41 -0800)]
auto merge of #11347 : alexcrichton/rust/issue-11346, r=brson

This ends up causing weird errors like those seen in #11346

Closes #11346

10 years agoauto merge of #11329 : fhahn/rust/unused-cast-lint2, r=alexcrichton
bors [Tue, 7 Jan 2014 09:51:39 +0000 (01:51 -0800)]
auto merge of #11329 : fhahn/rust/unused-cast-lint2, r=alexcrichton

Updates as mentioned in #11135

10 years agoauto merge of #11355 : alexcrichton/rust/read-waits-forever, r=brson
bors [Tue, 7 Jan 2014 07:36:46 +0000 (23:36 -0800)]
auto merge of #11355 : alexcrichton/rust/read-waits-forever, r=brson

All the fun is down below.

10 years agoFix parallel makefile builds
Alex Crichton [Mon, 6 Jan 2014 22:14:17 +0000 (14:14 -0800)]
Fix parallel makefile builds

All the copying of files amongst one another was apparently causing something to
get corrupted. Instead of having files fly around, just update the directories
to link to.

10 years agoauto merge of #11296 : brson/rust/anti-cond, r=alexcrichton
bors [Tue, 7 Jan 2014 05:51:38 +0000 (21:51 -0800)]
auto merge of #11296 : brson/rust/anti-cond, r=alexcrichton

In preparation for removing conditions.

10 years agoauto merge of #11356 : brson/rust/0.9relnotes, r=alexcrichton
bors [Tue, 7 Jan 2014 03:41:42 +0000 (19:41 -0800)]
auto merge of #11356 : brson/rust/0.9relnotes, r=alexcrichton

10 years agoAdded in Clone/TotalEq/TotalOrd/ToStr traits to all parts of btree.
Nif Ward [Tue, 7 Jan 2014 02:19:36 +0000 (21:19 -0500)]
Added in Clone/TotalEq/TotalOrd/ToStr traits to all parts of btree.
Equals is now compact and uses vec's equals method.  Cmp compares
all elements on branches and leaves (Nodes).

10 years agoDon't read forever on a file descriptor
Alex Crichton [Mon, 6 Jan 2014 22:17:23 +0000 (14:17 -0800)]
Don't read forever on a file descriptor

Similarly to the recent commit to do this for networking, there's no reason that
a read on a file descriptor should continue reading until the entire buffer is
full. This makes sense when dealing with literal files, but when dealing with
things like stdin this doesn't make sense.

10 years agoauto merge of #11354 : brson/rust/versionwin, r=alexcrichton
bors [Tue, 7 Jan 2014 00:31:52 +0000 (16:31 -0800)]
auto merge of #11354 : brson/rust/versionwin, r=alexcrichton

The makefiles and the windows installer disagree on the name of this file. In practical terms this change only means that the '-pre' installers will be named 'rust-0.9-pre-install.exe' instead 'rust-0.9-install.exe'.

10 years agoUpdate AUTHORS.txt
Brian Anderson [Mon, 6 Jan 2014 23:01:34 +0000 (15:01 -0800)]
Update AUTHORS.txt

10 years agoMore 0.9 release notes
Brian Anderson [Mon, 6 Jan 2014 22:50:25 +0000 (14:50 -0800)]
More 0.9 release notes

10 years agoauto merge of #11123 : alan-andrade/rust/move_wiki_to_internal_docs, r=brson
bors [Mon, 6 Jan 2014 22:26:38 +0000 (14:26 -0800)]
auto merge of #11123 : alan-andrade/rust/move_wiki_to_internal_docs, r=brson

This is not done yet but I'm posting it to get feedback.

The wiki has a ton of different tutorials/manuals/faq and so forth. Instead of migrating all of them right now, I just migrated the following:

* The general main wiki page
* Language FAQ
* Project FAQ

If this feels reasonable, please comment so that I can continue with confidence.

10 years agoDelete the installer exe when cleaning
Brian Anderson [Mon, 6 Jan 2014 22:18:35 +0000 (14:18 -0800)]
Delete the installer exe when cleaning

10 years agoUse the full version string for the windows installer exe
Brian Anderson [Mon, 6 Jan 2014 22:02:35 +0000 (14:02 -0800)]
Use the full version string for the windows installer exe

10 years agorust_version.html is a HTML_DEPS and every html has it as dependecy
Alan Andrade [Mon, 6 Jan 2014 21:38:20 +0000 (15:38 -0600)]
rust_version.html is a HTML_DEPS and every html has it as dependecy

10 years agoFirst phase of migrating the wiki to the internal docs #11078
Alan Andrade [Mon, 23 Dec 2013 02:21:45 +0000 (20:21 -0600)]
First phase of migrating the wiki to the internal docs #11078

10 years agoSupport arbitrary stdout/stderr/logger handles
Alex Crichton [Mon, 6 Jan 2014 18:26:11 +0000 (10:26 -0800)]
Support arbitrary stdout/stderr/logger handles

This will allow capturing of common things like logging messages, stdout prints
(using stdio println), and failure messages (printed to stderr).  Any new prints
added to libstd should be funneled through these task handles to allow capture
as well.

Additionally, this commit redirects logging back through a `Logger` trait so the
log level can be usefully consumed by an arbitrary logger.

This commit also introduces methods to set the task-local stdout handles:

* std::io::stdio::set_stdout
* std::io::stdio::set_stderr
* std::io::logging::set_logger

These methods all return the previous logger just in case it needs to be used
for inspection.

I plan on using this infrastructure for extra::test soon, but we don't quite
have the primitives that I'd like to use for it, so it doesn't migrate
extra::test at this time.

Closes #6369

10 years agoauto merge of #10826 : SimonSapin/rust/str-insert, r=brson
bors [Mon, 6 Jan 2014 21:11:38 +0000 (13:11 -0800)]
auto merge of #10826 : SimonSapin/rust/str-insert, r=brson

I could not run the tests because of unrelated building issue, sorry about that.

10 years agoRemove some unnecessary type casts
Florian Hahn [Tue, 24 Dec 2013 23:53:05 +0000 (00:53 +0100)]
Remove some unnecessary type casts

Conflicts:
src/librustc/middle/lint.rs

10 years agoAdd lint for unnecessary casts
Florian Hahn [Sat, 21 Dec 2013 23:07:21 +0000 (00:07 +0100)]
Add lint for unnecessary casts

10 years agoauto merge of #11335 : rlane/rust/fix-vector-doc, r=alexcrichton
bors [Mon, 6 Jan 2014 19:56:37 +0000 (11:56 -0800)]
auto merge of #11335 : rlane/rust/fix-vector-doc, r=alexcrichton

10 years agoauto merge of #11334 : alexcrichton/rust/fix-native-tcp, r=pcwalton
bors [Mon, 6 Jan 2014 18:31:46 +0000 (10:31 -0800)]
auto merge of #11334 : alexcrichton/rust/fix-native-tcp, r=pcwalton

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328

10 years agoFix formatting of some code blocks in pdf docs
Mick Koch [Fri, 3 Jan 2014 18:17:19 +0000 (13:17 -0500)]
Fix formatting of some code blocks in pdf docs

Code blocks apparently need to be surrounded by whitespace to be output
correctly when generating pdfs

10 years agoRegister new snapshots
Alex Crichton [Mon, 6 Jan 2014 17:26:47 +0000 (09:26 -0800)]
Register new snapshots

10 years agoDon't attempt duplicate outputs
Alex Crichton [Mon, 6 Jan 2014 17:23:24 +0000 (09:23 -0800)]
Don't attempt duplicate outputs

This ends up causing weird errors like those seen in #11346

Closes #11346

10 years agoauto merge of #11333 : cmr/rust/triage2, r=alexcrichton
bors [Mon, 6 Jan 2014 16:41:45 +0000 (08:41 -0800)]
auto merge of #11333 : cmr/rust/triage2, r=alexcrichton

10 years agoauto merge of #11332 : sfackler/rust/de-at-se, r=huonw
bors [Mon, 6 Jan 2014 15:26:48 +0000 (07:26 -0800)]
auto merge of #11332 : sfackler/rust/de-at-se, r=huonw

This is necessary for #11151 to make sure dtors run before the libraries
are unloaded.

10 years agoauto merge of #11327 : nielsle/rust/rustpkg_argparse, r=alexcrichton
bors [Mon, 6 Jan 2014 13:56:52 +0000 (05:56 -0800)]
auto merge of #11327 : nielsle/rust/rustpkg_argparse, r=alexcrichton

Rearrange some code in rustpkg:

* Move command line argument parsing to  parse_args.rs
* Introduce an enum to descibe commands such as Build, Install, and Clean.
* Move sysroot from Context to BuildContext, to make parse_args  more modular.

This is my first pull request, so please tell me if there is anything I need to do.

10 years agoauto merge of #11161 : eddyb/rust/de-at-visitor, r=huonw
bors [Mon, 6 Jan 2014 12:41:38 +0000 (04:41 -0800)]
auto merge of #11161 : eddyb/rust/de-at-visitor, r=huonw

The primary user of `@T`/`P<T>` references from `Visitor` was `ast_map`, which in turn had two users (phase 3 in rustc and a step in loading items from metadata).
Both of them have been rewritten to use `ast_map` as a folder (this might speed up the compilation time of stage2 rustc by 100-200ms just because a fold + a visit are merged together).

10 years agoDisowned the Visitor.
Eduard Burtescu [Mon, 6 Jan 2014 12:00:46 +0000 (14:00 +0200)]
Disowned the Visitor.

10 years agoauto merge of #11321 : huonw/rust/treemap-mut, r=alexcrichton
bors [Mon, 6 Jan 2014 11:21:40 +0000 (03:21 -0800)]
auto merge of #11321 : huonw/rust/treemap-mut, r=alexcrichton

This requires a single `*mut` pointer to implement; I've justified its existence & correctness in the code.

Also, converts the mutable and immutable iterators to share code with some macro ~~madness~~ manipulation.

10 years agoauto merge of #11118 : jhasse/rust/patch-rustlibdir, r=alexcrichton
bors [Mon, 6 Jan 2014 10:01:49 +0000 (02:01 -0800)]
auto merge of #11118 : jhasse/rust/patch-rustlibdir, r=alexcrichton

...stlib. Fixes #3319

10 years agoauto merge of #11315 : alexcrichton/rust/issue-11309, r=huonw
bors [Mon, 6 Jan 2014 08:31:57 +0000 (00:31 -0800)]
auto merge of #11315 : alexcrichton/rust/issue-11309, r=huonw

There was a scheduling race where a child may not increment the global task
count before the parent exits, and the parent would then think that there are no
more tasks left.

Closes #11039

10 years agoDon't wait for a full buffer when reading TCP
Alex Crichton [Mon, 6 Jan 2014 06:16:16 +0000 (22:16 -0800)]
Don't wait for a full buffer when reading TCP

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328

10 years agodoc: update reference to new vector size syntax
Rich Lane [Mon, 6 Jan 2014 01:33:13 +0000 (17:33 -0800)]
doc: update reference to new vector size syntax

10 years agoGuarantee that native tasks wait for children
Alex Crichton [Sat, 4 Jan 2014 20:02:02 +0000 (12:02 -0800)]
Guarantee that native tasks wait for children

There was a scheduling race where a child may not increment the global task
count before the parent exits, and the parent would then think that there are no
more tasks left.

10 years agoauto merge of #11106 : alan-andrade/rust/convert_tutorials_to_guides, r=cmr
bors [Mon, 6 Jan 2014 06:11:39 +0000 (22:11 -0800)]
auto merge of #11106 : alan-andrade/rust/convert_tutorials_to_guides, r=cmr

* Moved every the tutorial-*.md into its own directory `/doc/guides/`
* Makefile is aware

10 years agoauto merge of #10900 : yichoi/rust/mac_android_cross, r=alexcrichton
bors [Mon, 6 Jan 2014 04:56:53 +0000 (20:56 -0800)]
auto merge of #10900 : yichoi/rust/mac_android_cross, r=alexcrichton

this patch should be followed by https://github.com/alexcrichton/libuv/pull/2

10 years agoConvert sub tutorials into Guides #10838
Alan Andrade [Sat, 21 Dec 2013 23:29:48 +0000 (17:29 -0600)]
Convert sub tutorials into Guides #10838

Ensure configure creates doc/guides directory

Fix configure makefile and tests

Remove old guides dir and configure option, convert testing to guide

Remove ignored files

Fix submodule issue

prepend dir in makefile so that bor knows how to build the docs

S to uppercase

10 years agolibrustc: tidy cleanup
Young-il Choi [Mon, 6 Jan 2014 04:06:06 +0000 (13:06 +0900)]
librustc: tidy cleanup

10 years agolibrustc: add get_system_tools for target specific environment
Young-il Choi [Thu, 2 Jan 2014 06:43:47 +0000 (15:43 +0900)]
librustc: add get_system_tools for target specific environment

10 years agolibrustc: move target dependent logic to back::link
Young-il Choi [Fri, 27 Dec 2013 08:29:53 +0000 (17:29 +0900)]
librustc: move target dependent logic to back::link

10 years agolibrustc: ar call fix to support android cross compile on mac
Young-il Choi [Fri, 6 Dec 2013 06:44:27 +0000 (15:44 +0900)]
librustc: ar call fix to support android cross compile on mac

10 years agoauto merge of #11270 : lkuper/rust/trait-docs, r=cmr
bors [Mon, 6 Jan 2014 03:31:53 +0000 (19:31 -0800)]
auto merge of #11270 : lkuper/rust/trait-docs, r=cmr

I've been wanting to explain default methods in the tutorial for ages.  While I was at it I tried to clarify some other parts of the traits section.  I'm sure this could be improved further; suggestions welcome.

10 years agotutorial: add missing line to make example build.
Lindsey Kuper [Mon, 6 Jan 2014 03:02:16 +0000 (22:02 -0500)]
tutorial: add missing line to make example build.

10 years agotutorial: remove duplicate words.
Lindsey Kuper [Sun, 5 Jan 2014 03:40:59 +0000 (22:40 -0500)]
tutorial: remove duplicate words.

10 years agotutorial: change `float` to `f32` since float is no longer a type.
Lindsey Kuper [Sun, 5 Jan 2014 03:10:33 +0000 (22:10 -0500)]
tutorial: change `float` to `f32` since float is no longer a type.

10 years agoWording tweak suggested by @pcwalton.
Lindsey Kuper [Thu, 2 Jan 2014 17:52:00 +0000 (12:52 -0500)]
Wording tweak suggested by @pcwalton.

10 years agoWrite up default methods for the tutorial.
Lindsey Kuper [Thu, 2 Jan 2014 05:22:50 +0000 (00:22 -0500)]
Write up default methods for the tutorial.

10 years agoFix some warnings
Corey Richardson [Sun, 5 Jan 2014 18:05:02 +0000 (13:05 -0500)]
Fix some warnings

10 years agostd: mark some modules as unstable
Corey Richardson [Sun, 5 Jan 2014 14:09:07 +0000 (09:09 -0500)]
std: mark some modules as unstable

Obviously everything is unstable, but these particularly so, and they will
likely remain that way.

Closes #10239

10 years agotidy: spew less chaff
Corey Richardson [Sun, 5 Jan 2014 13:50:52 +0000 (08:50 -0500)]
tidy: spew less chaff

10 years agoRemove a fixme
Corey Richardson [Wed, 1 Jan 2014 00:07:41 +0000 (19:07 -0500)]
Remove a fixme

pcwalton says this is right, and it looks right to me too.

Closes #4731

10 years agoAdd tidy support for snapshots
Corey Richardson [Tue, 31 Dec 2013 05:22:01 +0000 (00:22 -0500)]
Add tidy support for snapshots

This let's us specify exactly which snapshot a given note to update after
snapshot is for.

Closes #2483

10 years agoRemove a fixme
Corey Richardson [Mon, 30 Dec 2013 22:07:19 +0000 (17:07 -0500)]
Remove a fixme

I don't think it's relevant, a warning is more appropriate. Easier to just
maintain the order.

Closes #4681

10 years agoUse ~-objects instead of @-objects for syntax exts
Steven Fackler [Mon, 6 Jan 2014 02:02:57 +0000 (18:02 -0800)]
Use ~-objects instead of @-objects for syntax exts

This is necessary for #11151 to make sure dtors run before the libraries
are unloaded.

10 years agoauto merge of #11331 : huonw/rust/revert-stack-size, r=luqmana
bors [Mon, 6 Jan 2014 01:41:53 +0000 (17:41 -0800)]
auto merge of #11331 : huonw/rust/revert-stack-size, r=luqmana

This reverts commit f1b5f59287106fc511d29c425255bd343608065c.

Using a private function of a library is a bad idea: several people (on
Linux) were meeting with linking errors because of it (different/older
versions of glibc).

10 years agoRevert "std: adjust requested stack size for thread-local storage."
Huon Wilson [Sun, 5 Jan 2014 23:28:04 +0000 (10:28 +1100)]
Revert "std: adjust requested stack size for thread-local storage."

This reverts commit f1b5f59287106fc511d29c425255bd343608065c.

Using a private function of a library is a bad idea: several people (on
Linux) were meeting with linking errors because of it (different/older
versions of glibc).

10 years agoauto merge of #11313 : alexcrichton/rust/fix-native-failure, r=pcwalton
bors [Sun, 5 Jan 2014 19:36:46 +0000 (11:36 -0800)]
auto merge of #11313 : alexcrichton/rust/fix-native-failure, r=pcwalton

10 years agoauto merge of #11304 : alexcrichton/rust/eintr, r=brson
bors [Sun, 5 Jan 2014 18:16:44 +0000 (10:16 -0800)]
auto merge of #11304 : alexcrichton/rust/eintr, r=brson

Closes #11214

10 years agoDon't abort the process in native::start
Alex Crichton [Sat, 4 Jan 2014 20:21:46 +0000 (12:21 -0800)]
Don't abort the process in native::start

If the main closure failed, then the `exit_code` variable would still be `None`,
and the `unwrap()` was failing (triggering a process abort). This changes the
`unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when
the native task failed.

10 years agoHandle EINTR throughout libnative
Alex Crichton [Sat, 4 Jan 2014 07:49:56 +0000 (23:49 -0800)]
Handle EINTR throughout libnative

Closes #11214

10 years agoauto merge of #11323 : sanxiyn/rust/llvm-config, r=alexcrichton
bors [Sun, 5 Jan 2014 17:01:59 +0000 (09:01 -0800)]
auto merge of #11323 : sanxiyn/rust/llvm-config, r=alexcrichton

Standard error was not captured, ignoring any errors from llvm-config.

10 years agoDo not ignore errors running llvm-config
Seo Sanghyeon [Sun, 5 Jan 2014 15:41:54 +0000 (00:41 +0900)]
Do not ignore errors running llvm-config

10 years agoextra::treemap: share code between the mutable and immutable iterators.
Huon Wilson [Sun, 5 Jan 2014 14:53:27 +0000 (01:53 +1100)]
extra::treemap: share code between the mutable and immutable iterators.

Yay for macros.

10 years agoextra::treemap: remove mutate_values, replaced by .mut_iter().
Huon Wilson [Sun, 5 Jan 2014 13:42:01 +0000 (00:42 +1100)]
extra::treemap: remove mutate_values, replaced by .mut_iter().

10 years agoextra::treemap: add mutable-value iterators.
Huon Wilson [Sun, 5 Jan 2014 13:40:53 +0000 (00:40 +1100)]
extra::treemap: add mutable-value iterators.

10 years agoFix some of the testcases
Niels langager Ellegaard [Sun, 5 Jan 2014 11:41:56 +0000 (12:41 +0100)]
Fix some of the testcases
simple-lib and deeply and c-dependencies still have problems.
But they were nt caused by this pull request

10 years agoMake rustc's own lib directory configurable and change the default to rustlib. Fixes...
Jan Niklas Hasse [Sun, 5 Jan 2014 01:55:20 +0000 (01:55 +0000)]
Make rustc's own lib directory configurable and change the default to rustlib. Fixes #3319

10 years agoMove command line parsing to parse_args.rs
Niels langager Ellegaard [Sun, 5 Jan 2014 10:23:39 +0000 (11:23 +0100)]
Move command line parsing to parse_args.rs

10 years agoMove syslog to BuildContext
Niels langager Ellegaard [Sun, 5 Jan 2014 09:24:08 +0000 (10:24 +0100)]
Move syslog to BuildContext

10 years agoCommand is now an enum
Niels langager Ellegaard [Sun, 5 Jan 2014 09:17:51 +0000 (10:17 +0100)]
Command is now an enum

10 years agoauto merge of #11297 : sfackler/rust/de-jank-encoder-2, r=alexcrichton
bors [Sun, 5 Jan 2014 08:01:56 +0000 (00:01 -0800)]
auto merge of #11297 : sfackler/rust/de-jank-encoder-2, r=alexcrichton

This is causing maybe_get_doc to fail when called at the top level of
the metadata and doesn't appear to be needed anymore.

A try build succeeded so this should be okay.

10 years agoauto merge of #11316 : vadimcn/rust/arm-ehabi, r=alexcrichton
bors [Sun, 5 Jan 2014 06:46:43 +0000 (22:46 -0800)]
auto merge of #11316 : vadimcn/rust/arm-ehabi, r=alexcrichton

Also, more precise unwinder private data size specification.

10 years agoStop padding metadata
Steven Fackler [Sun, 5 Jan 2014 06:03:23 +0000 (22:03 -0800)]
Stop padding metadata

This is causing maybe_get_doc to fail when called at the top level of
the metadata and doesn't appear to be needed anymore.

10 years agoauto merge of #11314 : adridu59/rust/patch-license, r=brson
bors [Sun, 5 Jan 2014 05:31:51 +0000 (21:31 -0800)]
auto merge of #11314 : adridu59/rust/patch-license, r=brson

- don't check for an hardcoded copyright claim year, check the 2 surrounding strings instead
- logic: if either the `//` or `#`-style copyright patterns are found, don't invalidate
- cleanup hardcoded content and streamline the few files with different line breaks

r? @brson

10 years agoauto merge of #11310 : Dretch/rust/write_char, r=alexcrichton
bors [Sun, 5 Jan 2014 04:16:44 +0000 (20:16 -0800)]
auto merge of #11310 : Dretch/rust/write_char, r=alexcrichton

10 years agoauto merge of #11307 : vadimcn/rust/test-adb, r=brson
bors [Sun, 5 Jan 2014 03:02:03 +0000 (19:02 -0800)]
auto merge of #11307 : vadimcn/rust/test-adb, r=brson

Fix android device detection when connected to a remote emulator (in this case device name contains ':').
Use $(CFG_ADB) for all adb invocations.

10 years agoCondition EH ABI on target_arch, not target_os.
Vadim Chugunov [Sun, 5 Jan 2014 00:50:57 +0000 (16:50 -0800)]
Condition EH ABI on target_arch, not target_os.
More precise unwinder private data size specification.

10 years agoauto merge of #11290 : alexcrichton/rust/testname, r=brson
bors [Sun, 5 Jan 2014 00:36:46 +0000 (16:36 -0800)]
auto merge of #11290 : alexcrichton/rust/testname, r=brson

Closes #11288
Closes #11222

10 years agoauto merge of #11188 : brson/rust/noderef, r=brson
bors [Sat, 4 Jan 2014 23:21:46 +0000 (15:21 -0800)]
auto merge of #11188 : brson/rust/noderef, r=brson

This removes the feature where newtype structs can be dereferenced like pointers, and likewise where certain enums can be dereferenced (which I imagine nobody realized still existed). This ad-hoc behavior is to be replaced by a more general overloadable dereference trait in the future.

I've been nursing this patch for two months and think it's about rebased up to master.

@nikomatsakis this makes a bunch of your type checking code noticeably uglier.

10 years agodoc: Fix an inexplicable error in a tutorial example
Brian Anderson [Sat, 4 Jan 2014 20:13:49 +0000 (12:13 -0800)]
doc: Fix an inexplicable error in a tutorial example

This code was wrong but apparently worked before removing struct
deref. I don't know why.

10 years agodoc: Fix tutorial for struct deref
Brian Anderson [Sat, 4 Jan 2014 20:13:31 +0000 (12:13 -0800)]
doc: Fix tutorial for struct deref

10 years agorustc: Add error about obsolete struct deref
Brian Anderson [Tue, 31 Dec 2013 00:39:52 +0000 (16:39 -0800)]
rustc: Add error about obsolete struct deref

10 years agoDon't allow newtype structs to be dereferenced. #6246
Brian Anderson [Sat, 2 Nov 2013 01:06:31 +0000 (18:06 -0700)]
Don't allow newtype structs to be dereferenced. #6246

10 years agoauto merge of #11284 : huonw/rust/issue-6233, r=alexcrichton
bors [Sat, 4 Jan 2014 21:56:48 +0000 (13:56 -0800)]
auto merge of #11284 : huonw/rust/issue-6233, r=alexcrichton

If there is a lot of data in thread-local storage some implementations
of pthreads (e.g. glibc) fail if you don't request a stack large enough
-- by adjusting for the minimum size we guarantee that our stacks are
always large enough. Issue #6233.