]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agostop treating `Rc` cycles as unsafe
Daniel Micay [Wed, 11 Dec 2013 23:03:25 +0000 (18:03 -0500)]
stop treating `Rc` cycles as unsafe

10 years agoauto merge of #11376 : alexcrichton/rust/remove-eof, r=pcwalton
bors [Thu, 9 Jan 2014 17:31:36 +0000 (09:31 -0800)]
auto merge of #11376 : alexcrichton/rust/remove-eof, r=pcwalton

This is something I have been meaning to do for awhile, but upon inspection of the `eof` method on all of the `Reader` impls you may find some interesting surprises. The method returns a good answer for almost all wrapped I/O objects (buffered readers, mem readers, util readers, etc), but the actual return value on all I/O objects themselves is almost always useless.

Almost no I/O object other than a file actually knows when it's hit EOF or not. I think that pretending that all objects know when they've hit the end when almost none do is probably a bad idea. I can't really come up with a good answer to "is this file descriptor at eof" or "is this tcp stream at eof" much less "is this udp socket at eof". Due to being unable to answer these questions for *all* readers, I believe that it shouldn't be a part of the core `Reader` trait.

10 years agoRemove eof() from io::Reader
Alex Crichton [Tue, 7 Jan 2014 17:47:53 +0000 (09:47 -0800)]
Remove eof() from io::Reader

10 years agoauto merge of #11414 : nick29581/rust/span, r=alexcrichton
bors [Thu, 9 Jan 2014 15:41:33 +0000 (07:41 -0800)]
auto merge of #11414 : nick29581/rust/span, r=alexcrichton

...at the start of the path, rather than at the start of the view_path.

Fixes #11317

10 years agoauto merge of #11412 : bjz/rust/num-cleanups, r=alexcrichton
bors [Thu, 9 Jan 2014 14:26:27 +0000 (06:26 -0800)]
auto merge of #11412 : bjz/rust/num-cleanups, r=alexcrichton

The methods contained in `std::num::{Algebraic, Trigonometric, Exponential, Hyperbolic}` have now been moved into `std::num::Real`. This is part of an ongoing effort to simplify `std::num` (see issue #10387).

`std::num::RealExt` has also been removed from the prelude because it is not a commonly used trait.

r? @alexcrichton

10 years agoauto merge of #11402 : bjz/rust/remove-approx, r=alexcrichton
bors [Thu, 9 Jan 2014 13:06:33 +0000 (05:06 -0800)]
auto merge of #11402 : bjz/rust/remove-approx, r=alexcrichton

This trait seems to stray too far from the mandate of a standard library as implementations may vary between use cases. Third party libraries should implement their own if they need something like it.

This closes #5316.

r? @alexcrichton, @pcwalton

10 years agoauto merge of #11394 : alexcrichton/rust/no-decorator, r=cmr
bors [Thu, 9 Jan 2014 11:51:27 +0000 (03:51 -0800)]
auto merge of #11394 : alexcrichton/rust/no-decorator, r=cmr

This is just an unnecessary trait that no one's ever going to parameterize over
and it's more useful to just define the methods directly on the types
themselves. The implementors of this type almost always don't want
inner_mut_ref() but they're forced to define it as well.

10 years agoauto merge of #11387 : pcwalton/rust/de-at-block, r=alexcrichton
bors [Thu, 9 Jan 2014 10:26:26 +0000 (02:26 -0800)]
auto merge of #11387 : pcwalton/rust/de-at-block, r=alexcrichton

r? @brson

10 years agoauto merge of #11386 : rcatolino/rust/ice-10955, r=pcwalton
bors [Thu, 9 Jan 2014 08:16:30 +0000 (00:16 -0800)]
auto merge of #11386 : rcatolino/rust/ice-10955, r=pcwalton

So, like I mentioned in issue #10955 it doesn't seem like we need to call ```ty::subst_tps``` when the method is generic. But then I realized that this function doesn't mutate any of its input, and the return value is unused. Plus the type param substitution seems to be taken care of in ```trans_fn_ref_with_vtables```, so I thought I'd just try to remove it. As far as I can tell everything works.

This closes #10955.

10 years agoRemove the io::Decorator trait
Alex Crichton [Wed, 8 Jan 2014 04:05:33 +0000 (20:05 -0800)]
Remove the io::Decorator trait

This is just an unnecessary trait that no one's ever going to parameterize over
and it's more useful to just define the methods directly on the types
themselves. The implementors of this type almost always don't want
inner_mut_ref() but they're forced to define it as well.

10 years agoStart the span for a path in a view_path at the correct place (at the start of the...
Nick Cameron [Thu, 9 Jan 2014 07:12:23 +0000 (20:12 +1300)]
Start the span for a path in a view_path at the correct place (at the start of the path, rather than at the start of the view_path).

10 years agoauto merge of #11369 : kvark/rust/master, r=huonw
bors [Thu, 9 Jan 2014 05:26:29 +0000 (21:26 -0800)]
auto merge of #11369 : kvark/rust/master, r=huonw

-Fixed Gc::clone to not require a Clone implementation for T
-Implemented Gc::ptr_eq to match Rc::ptr_eq, added a test for that

10 years agoRemove ApproxEq and assert_approx_eq!
Brendan Zabarauskas [Wed, 8 Jan 2014 11:57:31 +0000 (22:57 +1100)]
Remove ApproxEq and assert_approx_eq!

This trait seems to stray too far from the mandate of a standard library as implementations may vary between use cases.

10 years agoMerge some numeric traits with Real and don't re-export RealExt
Brendan Zabarauskas [Thu, 9 Jan 2014 04:29:09 +0000 (15:29 +1100)]
Merge some numeric traits with Real and don't re-export RealExt

The methods contained in `std::num::{Algebraic, Trigonometric, Exponential, Hyperbolic}` have now been moved into `std::num::Real`. This is part of an ongoing effort to simplify `std::num` (see issue #10387).

`std::num::RealExt` has also been removed from the prelude because it is not a commonly used trait.

10 years agoUpdate some copyright dates
Brian Anderson [Thu, 9 Jan 2014 02:04:43 +0000 (18:04 -0800)]
Update some copyright dates

10 years agoFix windows installer version to be less verbose
Brian Anderson [Thu, 9 Jan 2014 02:03:28 +0000 (18:03 -0800)]
Fix windows installer version to be less verbose

10 years agoauto merge of #11375 : alexcrichton/rust/issue-11372, r=pcwalton
bors [Wed, 8 Jan 2014 21:36:44 +0000 (13:36 -0800)]
auto merge of #11375 : alexcrichton/rust/issue-11372, r=pcwalton

Closes #11372

10 years agoRobustly read remaining bytes in a character
Alex Crichton [Tue, 7 Jan 2014 16:48:44 +0000 (08:48 -0800)]
Robustly read remaining bytes in a character

Closes #11372

10 years agoauto merge of #11401 : michaelwoerister/rust/issue11322, r=alexcrichton
bors [Wed, 8 Jan 2014 19:26:30 +0000 (11:26 -0800)]
auto merge of #11401 : michaelwoerister/rust/issue11322, r=alexcrichton

`expand_include_str()` in libsyntax seems to have corrupted the CodeMap by always setting the BytePos of any included files to zero. It now uses `CodeMap::new_filemap()` which should set everything properly. This should fix issue #11322 but I don't want to close it before I have confirmation from the reporters that the problem is indeed fixed.

10 years agoauto merge of #11370 : alexcrichton/rust/issue-10465, r=pwalton
bors [Wed, 8 Jan 2014 18:06:45 +0000 (10:06 -0800)]
auto merge of #11370 : alexcrichton/rust/issue-10465, r=pwalton

Turned out to be a 2-line fix, but the compiler fallout was huge.

10 years agoauto merge of #11407 : alexcrichton/rust/fix-snap, r=brson
bors [Wed, 8 Jan 2014 16:46:33 +0000 (08:46 -0800)]
auto merge of #11407 : alexcrichton/rust/fix-snap, r=brson

If we bootstrap a cross compile from a stage1 compiler, then the stage1 compiler
already knows about the rustc => rustlib change, so we need to not add the extra
flag if it's a stage0 version of a target from a stage1 of another target.

10 years agoFix the snapshot and cross compilation
Alex Crichton [Wed, 8 Jan 2014 16:16:48 +0000 (08:16 -0800)]
Fix the snapshot and cross compilation

If we bootstrap a cross compile from a stage1 compiler, then the stage1 compiler
already knows about the rustc => rustlib change, so we need to not add the extra
flag if it's a stage0 version of a target from a stage1 of another target.

10 years agoFix CodeMap issue in expand_include_str()
Michael Woerister [Wed, 8 Jan 2014 08:59:11 +0000 (09:59 +0100)]
Fix CodeMap issue in expand_include_str()

10 years agoauto merge of #11405 : huonw/rust/moredocs, r=huonw
bors [Wed, 8 Jan 2014 15:26:41 +0000 (07:26 -0800)]
auto merge of #11405 : huonw/rust/moredocs, r=huonw

Various documentation changes, change the 'borrowed pointer' terminology to 'reference', fix a problem with 'make dist' on windows.

10 years agoFix cheatsheet examples on 32-bit platforms.
Huon Wilson [Wed, 8 Jan 2014 15:16:36 +0000 (02:16 +1100)]
Fix cheatsheet examples on 32-bit platforms.

0xDEADBEEF doesn't fit in an int = i32 (on 32-bit computers).

10 years agoauto merge of #11358 : pcwalton/rust/typed-arenas, r=alexcrichton
bors [Wed, 8 Jan 2014 12:26:36 +0000 (04:26 -0800)]
auto merge of #11358 : pcwalton/rust/typed-arenas, r=alexcrichton

A typed arena is a type of arena that can only allocate objects of one
type. It is 3x faster than the existing arena and 13x faster than malloc
on Mac.

r? @brson

10 years agoauto merge of #11391 : alexcrichton/rust/rustdoc-inline, r=brson
bors [Wed, 8 Jan 2014 08:56:35 +0000 (00:56 -0800)]
auto merge of #11391 : alexcrichton/rust/rustdoc-inline, r=brson

If a reexport comes from a non-public module, then the documentation for the
reexport will be inlined into the module that exports it, but if the reexport is
targeted at a public type (like the prelude), then it is not inlined but rather
hyperlinked.

10 years agoFixup the rest of the tests in the compiler
Alex Crichton [Tue, 7 Jan 2014 08:57:12 +0000 (00:57 -0800)]
Fixup the rest of the tests in the compiler

10 years agoextratest: Fix all leaked trait imports
Alex Crichton [Tue, 7 Jan 2014 06:33:50 +0000 (22:33 -0800)]
extratest: Fix all leaked trait imports

10 years agostdtest: Fix all leaked trait imports
Alex Crichton [Tue, 7 Jan 2014 06:33:37 +0000 (22:33 -0800)]
stdtest: Fix all leaked trait imports

10 years agoFix remaining cases of leaking imports
Alex Crichton [Tue, 7 Jan 2014 03:05:53 +0000 (19:05 -0800)]
Fix remaining cases of leaking imports

10 years agostd: Fill in all missing imports
Alex Crichton [Tue, 7 Jan 2014 00:48:51 +0000 (16:48 -0800)]
std: Fill in all missing imports

Fallout from the previous commits

10 years agorustc: De-indent portions of middle::resolve
Alex Crichton [Tue, 7 Jan 2014 00:48:13 +0000 (16:48 -0800)]
rustc: De-indent portions of middle::resolve

It's a little prettier to look at now

10 years agoFix leaking trait imports across modules
Alex Crichton [Tue, 7 Jan 2014 00:47:00 +0000 (16:47 -0800)]
Fix leaking trait imports across modules

Turns out the pass in resolve was a little too eager to travel back up the
hierarchy chain when looking for trait candidates.

Closes #10465

10 years agodoc: Typos
Brian Anderson [Wed, 8 Jan 2014 05:31:37 +0000 (21:31 -0800)]
doc: Typos

10 years agoFixed code snippets
Clinton Ryan [Wed, 8 Jan 2014 02:15:14 +0000 (13:15 +1100)]
Fixed code snippets

10 years agoAddress some minor points in the pointer guide
Huon Wilson [Wed, 8 Jan 2014 05:17:38 +0000 (16:17 +1100)]
Address some minor points in the pointer guide

cc #11364.

10 years agodoc: Add rustc and syntax to the index
Brian Anderson [Wed, 8 Jan 2014 05:17:52 +0000 (21:17 -0800)]
doc: Add rustc and syntax to the index

10 years agodoc: Add libgreen and libnative to the index
Brian Anderson [Wed, 8 Jan 2014 04:49:13 +0000 (20:49 -0800)]
doc: Add libgreen and libnative to the index

10 years ago'borrowed pointer' -> 'reference'
Brian Anderson [Wed, 8 Jan 2014 02:49:13 +0000 (18:49 -0800)]
'borrowed pointer' -> 'reference'

10 years agoInline reexports in rustdoc
Alex Crichton [Wed, 8 Jan 2014 02:46:16 +0000 (18:46 -0800)]
Inline reexports in rustdoc

If a reexport comes from a non-public module, then the documentation for the
reexport will be inlined into the module that exports it, but if the reexport is
targeted at a public type (like the prelude), then it is not inlined but rather
hyperlinked.

10 years agoauto merge of #10854 : Kimundi/rust/result_compose_map_mutate_or, r=alexcrichton
bors [Wed, 8 Jan 2014 01:56:32 +0000 (17:56 -0800)]
auto merge of #10854 : Kimundi/rust/result_compose_map_mutate_or, r=alexcrichton

This implements parts of the changes to `Option` I proposed and discussed in this thread: https://mail.mozilla.org/pipermail/rust-dev/2013-November/006254.html, and on IRC.

In short, the string "default" should not be used in any context that has nothing to do with the `std::default::Default` trait.

This PR consists of this change:
- Renamed `map_default -> map_or` and `mutate_default -> mutate_or_set`.

10 years agodoc: Fix URL of libextra docs
Brian Anderson [Wed, 8 Jan 2014 01:29:57 +0000 (17:29 -0800)]
doc: Fix URL of libextra docs

10 years agodoc: Title reference manual consistently
Brian Anderson [Wed, 8 Jan 2014 01:28:15 +0000 (17:28 -0800)]
doc: Title reference manual consistently

10 years agoFixed Gc::clone, implemented Gc::ptr_eq
kvark [Wed, 8 Jan 2014 01:21:04 +0000 (20:21 -0500)]
Fixed Gc::clone, implemented Gc::ptr_eq

10 years agomk: Fix the naming of the windows installer harder
Brian Anderson [Wed, 8 Jan 2014 00:51:37 +0000 (16:51 -0800)]
mk: Fix the naming of the windows installer harder

CFG_VERSION includes a bunch of VCS info in it that is not a valid
filename. CFG_RELEASE is just the version number.

10 years agodoc: Highlight the testing guide correctly
Brian Anderson [Tue, 7 Jan 2014 20:20:05 +0000 (12:20 -0800)]
doc: Highlight the testing guide correctly

10 years agomk: Start testing the cheatsheet
Brian Anderson [Tue, 7 Jan 2014 20:16:48 +0000 (12:16 -0800)]
mk: Start testing the cheatsheet

10 years agodoc: Title guides consistently
Brian Anderson [Tue, 7 Jan 2014 20:16:38 +0000 (12:16 -0800)]
doc: Title guides consistently

10 years agodoc: Fix table format in cheatsheet
Brian Anderson [Tue, 7 Jan 2014 20:04:14 +0000 (12:04 -0800)]
doc: Fix table format in cheatsheet

10 years agodoc: Syntax highlight the cheatsheet
Brian Anderson [Tue, 7 Jan 2014 19:37:45 +0000 (11:37 -0800)]
doc: Syntax highlight the cheatsheet

10 years agolibrustc: Move block contexts into per-function arenas, and
Patrick Walton [Tue, 7 Jan 2014 16:54:58 +0000 (08:54 -0800)]
librustc: Move block contexts into per-function arenas, and
stack-allocate function contexts.

10 years agolibextra: Introduce typed arenas.
Patrick Walton [Tue, 7 Jan 2014 01:03:30 +0000 (17:03 -0800)]
libextra: Introduce typed arenas.

A typed arena is a type of arena that can only allocate objects of one
type. It is 3x faster than the existing arena and 13x faster than malloc
on Mac.

10 years agoRemove unnecessary substitution of type params when generating
Raphael Catolino [Tue, 7 Jan 2014 23:56:16 +0000 (00:56 +0100)]
Remove unnecessary substitution of type params when generating
vtable methods before translating the ref to the method itself.

10 years agoRenamed Option::map_default and mutate_default to map_or and mutate_or_set
Marvin Löbel [Fri, 6 Dec 2013 18:51:10 +0000 (19:51 +0100)]
Renamed Option::map_default and mutate_default to map_or and mutate_or_set

10 years agoauto merge of #11364 : brson/rust/docs, r=alexcrichton
bors [Tue, 7 Jan 2014 23:46:38 +0000 (15:46 -0800)]
auto merge of #11364 : brson/rust/docs, r=alexcrichton

This reorganizes the documentation index to be more focused on the in-tree docs, and to clean up the style, and it also adds @steveklabnik's pointer guide.

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 agodoc: Fix tests in pointer guide
Brian Anderson [Tue, 7 Jan 2014 03:30:26 +0000 (19:30 -0800)]
doc: Fix tests in pointer guide

10 years agoAdd Pointer tutorial, rename borrowed pointer tutorial.
Steve Klabnik [Sat, 28 Sep 2013 00:03:34 +0000 (17:03 -0700)]
Add Pointer tutorial, rename borrowed pointer tutorial.

10 years agodoc: Update style of index, organization and trim out some excess.
Brian Anderson [Tue, 7 Jan 2014 01:24:19 +0000 (17:24 -0800)]
doc: Update style of index, organization and trim out some excess.

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 agomk: Fix formatting of docs.mk
Brian Anderson [Tue, 7 Jan 2014 01:24:16 +0000 (17:24 -0800)]
mk: Fix formatting of docs.mk

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