]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #9335 : alexcrichton/rust/issue-7945, r=thestinger
bors [Wed, 25 Sep 2013 02:06:01 +0000 (19:06 -0700)]
auto merge of #9335 : alexcrichton/rust/issue-7945, r=thestinger

As documented in issue #7945, these literal identifiers are all accepted by rust
today, but they should probably be disallowed (especially `'''`). This changes
all escapable sequences to being *required* to be escaped.

Closes #7945

I wanted to write the tests with more exact spans, but I think #9308 will be fixing that?

10 years agoDisallow char literals which should be escaped
Alex Crichton [Thu, 19 Sep 2013 18:55:03 +0000 (11:55 -0700)]
Disallow char literals which should be escaped

As documented in issue #7945, these literal identifiers are all accepted by rust
today, but they should probably be disallowed (especially `'''`). This changes
all escapable sequences to being *required* to be escaped.

Closes #7945

10 years agoauto merge of #9474 : thestinger/rust/internal, r=alexcrichton
bors [Wed, 25 Sep 2013 00:51:04 +0000 (17:51 -0700)]
auto merge of #9474 : thestinger/rust/internal, r=alexcrichton

the entry point is wrapped with what should be the only public function

10 years agomark functions internal if not building a library
Daniel Micay [Tue, 24 Sep 2013 22:12:06 +0000 (18:12 -0400)]
mark functions internal if not building a library

the entry point is wrapped with what should be the only public function

10 years agoauto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphism
bors [Tue, 24 Sep 2013 22:45:57 +0000 (15:45 -0700)]
auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphism

Progress on #7981

This doesn't completely close the issue because `struct A;` is still allowed, and it's a much larger change to disallow that. I'm also not entirely sure that we want to disallow that. Regardless, punting that discussion to the issue instead.

10 years agoStop accepting 'impl ...;', require {} instead
Alex Crichton [Thu, 19 Sep 2013 19:09:52 +0000 (12:09 -0700)]
Stop accepting 'impl ...;', require {} instead

Progress on #7981

10 years agoauto merge of #9471 : brson/rust/rustexit, r=thestinger
bors [Tue, 24 Sep 2013 18:46:02 +0000 (11:46 -0700)]
auto merge of #9471 : brson/rust/rustexit, r=thestinger

This appears to eliminate the common errors with assertions failures
in rust_initialize_rt_tls_key.

10 years agorust: Don't call libc::exit
Brian Anderson [Tue, 24 Sep 2013 18:40:46 +0000 (11:40 -0700)]
rust: Don't call libc::exit

This appears to eliminate the common errors with assertions failures
in rust_initialize_rt_tls_key.

10 years agoauto merge of #9463 : pnkfelix/rust/fsk-syntax-visit-refactor-rest-of-typeck, r=huonw
bors [Tue, 24 Sep 2013 15:26:04 +0000 (08:26 -0700)]
auto merge of #9463 : pnkfelix/rust/fsk-syntax-visit-refactor-rest-of-typeck, r=huonw

r? anyone

Also got rid of a bit of `@mut` allocation.  (Though not the monster that is `@mut FnCtxt`; that case is documented already on #7081; if we attack it, it will probably be its own ticket, not part of #7081.)

10 years agoauto merge of #9462 : SimonSapin/rust/patch-3, r=huonw
bors [Tue, 24 Sep 2013 14:06:09 +0000 (07:06 -0700)]
auto merge of #9462 : SimonSapin/rust/patch-3, r=huonw

10 years agoPart of #7081: Fold remainder of typeck's visit env into their visitor structs.
Felix S. Klock II [Tue, 24 Sep 2013 12:34:51 +0000 (14:34 +0200)]
Part of #7081: Fold remainder of typeck's visit env into their visitor structs.

10 years agoDo not imply that str is sometimes null-terminated.
Simon Sapin [Tue, 24 Sep 2013 12:26:10 +0000 (13:26 +0100)]
Do not imply that str is sometimes null-terminated.

10 years agoauto merge of #9457 : klutzy/rust/doc-fix, r=alexcrichton
bors [Tue, 24 Sep 2013 10:46:00 +0000 (03:46 -0700)]
auto merge of #9457 : klutzy/rust/doc-fix, r=alexcrichton

10 years agoauto merge of #9453 : pnkfelix/rust/fsk-further-syntax-visit-refactors, r=alexcrichton
bors [Tue, 24 Sep 2013 09:26:06 +0000 (02:26 -0700)]
auto merge of #9453 : pnkfelix/rust/fsk-further-syntax-visit-refactors, r=alexcrichton

r? anyone.

Part of #7081.

More refactorings of the syntax::visit::Visitor implementations, folding so-called "environments" into the visitor impl when the latter was previously a trivial unit struct.

As usual, this refactoring only applies when the environments are not actually carrying state that is meant to be pushed and popped as we traverse the expression.  (For an example where the environment *isn't* just passed through, see the `visit_fn` in `liveness.rs`.)

Got rid of a bit of @-allocation in borrowck.

Both cases should be pure-refactorings.

10 years agoauto merge of #9450 : jzelinskie/rust/tutorial-tasks-result-signature, r=alexcrichton
bors [Tue, 24 Sep 2013 08:06:02 +0000 (01:06 -0700)]
auto merge of #9450 : jzelinskie/rust/tutorial-tasks-result-signature, r=alexcrichton

10 years agoauto merge of #9449 : dckc/rust/patch-1, r=alexcrichton
bors [Tue, 24 Sep 2013 06:46:05 +0000 (23:46 -0700)]
auto merge of #9449 : dckc/rust/patch-1, r=alexcrichton

10 years agoauto merge of #9439 : steveklabnik/rust/build_rustpkg_tutorial, r=brson
bors [Tue, 24 Sep 2013 05:26:06 +0000 (22:26 -0700)]
auto merge of #9439 : steveklabnik/rust/build_rustpkg_tutorial, r=brson

Three things in this commit:

1. Actually build the rustpkg tutorial. I didn't know I needed this when
   I first wrote it.
2. Link to it rather than the manual from the
   tutorial.
3. Update the headers: most of them were one level too deeply
   nested.

10 years agostd::local_data: Fix document code
klutzy [Tue, 24 Sep 2013 04:34:48 +0000 (13:34 +0900)]
std::local_data: Fix document code

10 years agoauto merge of #9454 : alexcrichton/rust/snapshot, r=thestinger
bors [Tue, 24 Sep 2013 04:06:03 +0000 (21:06 -0700)]
auto merge of #9454 : alexcrichton/rust/snapshot, r=thestinger

10 years agoRegister new snapshots
Alex Crichton [Tue, 24 Sep 2013 01:13:21 +0000 (18:13 -0700)]
Register new snapshots

10 years agoFix signature of Result in tasks tutorial. Closes #8343
Jimmy Zelinskie [Tue, 24 Sep 2013 02:30:42 +0000 (22:30 -0400)]
Fix signature of Result in tasks tutorial. Closes #8343

10 years agoremove apostrophe where it's is not used as a contraction
Dan Connolly [Tue, 24 Sep 2013 02:28:33 +0000 (21:28 -0500)]
remove apostrophe where it's is not used as a contraction

10 years agoauto merge of #9310 : pcwalton/rust/at-fn, r=pcwalton
bors [Tue, 24 Sep 2013 02:20:58 +0000 (19:20 -0700)]
auto merge of #9310 : pcwalton/rust/at-fn, r=pcwalton

r? @brson

10 years agovisit::Visitor refactor: fold moves.rs VisitContext into ComputeModesVisitor.
Felix S. Klock II [Tue, 24 Sep 2013 01:25:41 +0000 (03:25 +0200)]
visit::Visitor refactor: fold moves.rs VisitContext into ComputeModesVisitor.

10 years agolibrustc: Fix merge fallout.
Patrick Walton [Thu, 19 Sep 2013 01:18:45 +0000 (18:18 -0700)]
librustc: Fix merge fallout.

10 years agotest: Fix rustdoc and tests.
Patrick Walton [Tue, 17 Sep 2013 06:37:54 +0000 (23:37 -0700)]
test: Fix rustdoc and tests.

10 years agolibrusti: Eliminate `@fn`.
Patrick Walton [Wed, 11 Sep 2013 23:26:06 +0000 (16:26 -0700)]
librusti: Eliminate `@fn`.

10 years agolibrustc: Remove `@fn` managed closures from the language.
Patrick Walton [Wed, 11 Sep 2013 01:57:24 +0000 (18:57 -0700)]
librustc: Remove `@fn` managed closures from the language.

10 years agolibsyntax: Introduce routines and remove all `@fn`s from libsyntax save the old visitor
Patrick Walton [Sat, 31 Aug 2013 01:00:38 +0000 (18:00 -0700)]
libsyntax: Introduce routines and remove all `@fn`s from libsyntax save the old visitor

10 years agolibsyntax: Remove some more `@fn`s from the macro expander
Patrick Walton [Fri, 30 Aug 2013 21:40:05 +0000 (14:40 -0700)]
libsyntax: Remove some more `@fn`s from the macro expander

10 years agolibsyntax: Remove some more `@fn` uses
Patrick Walton [Fri, 30 Aug 2013 19:21:45 +0000 (12:21 -0700)]
libsyntax: Remove some more `@fn` uses

10 years agolibrustpkg: Fix diagnostic invocation syntax in librustdoc, librusti, and librustpkg.
Patrick Walton [Fri, 30 Aug 2013 17:55:24 +0000 (10:55 -0700)]
librustpkg: Fix diagnostic invocation syntax in librustdoc, librusti, and librustpkg.

10 years agolibrustc: Change the ID visitor to use traits instead of garbage-collected functions.
Patrick Walton [Fri, 30 Aug 2013 02:01:19 +0000 (19:01 -0700)]
librustc: Change the ID visitor to use traits instead of garbage-collected functions.

10 years agolibrustc: Remove the remaining direct uses of `@fn` from librustc.
Patrick Walton [Fri, 30 Aug 2013 01:34:09 +0000 (18:34 -0700)]
librustc: Remove the remaining direct uses of `@fn` from librustc.

10 years agolibrustc: Remove garbage-collected functions from util/common.
Patrick Walton [Fri, 30 Aug 2013 01:04:17 +0000 (18:04 -0700)]
librustc: Remove garbage-collected functions from util/common.

10 years agolibrustc: Don't use garbage-collected closures to store cleanups.
Patrick Walton [Fri, 30 Aug 2013 00:46:33 +0000 (17:46 -0700)]
librustc: Don't use garbage-collected closures to store cleanups.

10 years agolibrustc: Make the fall-through case in match not use garbage collected functions
Patrick Walton [Thu, 29 Aug 2013 22:50:53 +0000 (15:50 -0700)]
librustc: Make the fall-through case in match not use garbage collected functions

10 years agolibrustc: Port the pretty printer annotation infrastructure to use traits instead...
Patrick Walton [Thu, 29 Aug 2013 22:24:33 +0000 (15:24 -0700)]
librustc: Port the pretty printer annotation infrastructure to use traits instead of garbage collected functions.

10 years agolibrustc: Remove garbage collected functions from front/{config,test} and metadata...
Patrick Walton [Thu, 29 Aug 2013 22:04:09 +0000 (15:04 -0700)]
librustc: Remove garbage collected functions from front/{config,test} and metadata/{tydecode,tyencode}

10 years agolibrustc: Change fold to use traits instead of `@fn`.
Patrick Walton [Thu, 29 Aug 2013 19:10:02 +0000 (12:10 -0700)]
librustc: Change fold to use traits instead of `@fn`.

10 years agoauto merge of #9444 : alexcrichton/rust/ignore-some-tests, r=thestinger
bors [Tue, 24 Sep 2013 00:36:04 +0000 (17:36 -0700)]
auto merge of #9444 : alexcrichton/rust/ignore-some-tests, r=thestinger

They're blocking a new snapshot and @catamorphism is on it.

10 years agoIgnore some rustpkg tests for now
Alex Crichton [Tue, 24 Sep 2013 00:26:04 +0000 (17:26 -0700)]
Ignore some rustpkg tests for now

They're blocking a new snapshot and @catamorphism is on it.

10 years agovisit::Visitor refactor: replace (&mut BorrowckVisitor, @BorrowckCtxt) with &mut...
Felix S. Klock II [Mon, 23 Sep 2013 23:56:25 +0000 (01:56 +0200)]
visit::Visitor refactor: replace (&mut BorrowckVisitor, @BorrowckCtxt) with &mut BorrowckCtxt.

10 years agoauto merge of #9301 : luqmana/rust/ncm, r=brson
bors [Mon, 23 Sep 2013 22:46:05 +0000 (15:46 -0700)]
auto merge of #9301 : luqmana/rust/ncm, r=brson

Get rid of the crate_map arg!

r? @brson

10 years agoFind the cratemap at runtime on windows.
Luqman Aden [Sun, 22 Sep 2013 02:48:12 +0000 (19:48 -0700)]
Find the cratemap at runtime on windows.

10 years agoAdd rustpkg tutorial to the official tutorials.
Steve Klabnik [Mon, 23 Sep 2013 21:36:38 +0000 (14:36 -0700)]
Add rustpkg tutorial to the official tutorials.

Three things in this commit:

1. Actually build the rustpkg tutorial. I didn't know I needed this when
   I first wrote it.
2. Link to it rather than the manual from the
   tutorial.
3. Update the headers: most of them were one level too deeply
   nested.

10 years agoauto merge of #9438 : brson/rust/relnotes, r=thestinger
bors [Mon, 23 Sep 2013 21:26:04 +0000 (14:26 -0700)]
auto merge of #9438 : brson/rust/relnotes, r=thestinger

10 years agoMore 0.8 release notes
Brian Anderson [Mon, 23 Sep 2013 21:17:58 +0000 (14:17 -0700)]
More 0.8 release notes

10 years agoauto merge of #9423 : madjar/rust/patch-1, r=alexcrichton
bors [Mon, 23 Sep 2013 16:20:56 +0000 (09:20 -0700)]
auto merge of #9423 : madjar/rust/patch-1, r=alexcrichton

Just something I noticed while reading the tutorial.

10 years agoauto merge of #9398 : Kimundi/rust/work1, r=huonw
bors [Mon, 23 Sep 2013 12:40:54 +0000 (05:40 -0700)]
auto merge of #9398 : Kimundi/rust/work1, r=huonw

10 years agoExtended the module tutorial section about files a bit
Marvin Löbel [Sun, 22 Sep 2013 02:44:07 +0000 (04:44 +0200)]
Extended the module tutorial section about files a bit

10 years agoFixed a small typo in the tutorial
Georges Dubus [Mon, 23 Sep 2013 08:04:48 +0000 (10:04 +0200)]
Fixed a small typo in the tutorial

Just something I noticed while reading the tutorial.

10 years agoauto merge of #9422 : alexcrichton/rust/fix-link, r=thestinger
bors [Mon, 23 Sep 2013 07:20:51 +0000 (00:20 -0700)]
auto merge of #9422 : alexcrichton/rust/fix-link, r=thestinger

This makes clicking on the logo do what you'd expect.

10 years agoauto merge of #9385 : alexcrichton/rust/actually-ndebug, r=pnkfelix
bors [Mon, 23 Sep 2013 05:20:50 +0000 (22:20 -0700)]
auto merge of #9385 : alexcrichton/rust/actually-ndebug, r=pnkfelix

Turns out that even if the default is "enabled", that doesn't mean that the
CFG_ENABLE_DEBUG variable will be defined. Instead, test whether
CFG_DISABLE_DEBUG is defined and disable debug things if that's the case.

10 years agoauto merge of #9413 : bytbox/rust/master, r=alexcrichton
bors [Mon, 23 Sep 2013 03:20:52 +0000 (20:20 -0700)]
auto merge of #9413 : bytbox/rust/master, r=alexcrichton

10 years agoPlace *all* rustdoc output in doc/{crate}
Alex Crichton [Mon, 23 Sep 2013 03:09:42 +0000 (20:09 -0700)]
Place *all* rustdoc output in doc/{crate}

10 years agotouch LLVM clean trigger
Daniel Micay [Mon, 23 Sep 2013 02:47:30 +0000 (22:47 -0400)]
touch LLVM clean trigger

10 years agoAdd docs for extra::semver
Scott Lawrence [Mon, 23 Sep 2013 00:20:24 +0000 (20:20 -0400)]
Add docs for extra::semver

10 years agoauto merge of #9412 : thestinger/rust/no_starve_xfail, r=cmr
bors [Sun, 22 Sep 2013 22:30:51 +0000 (15:30 -0700)]
auto merge of #9412 : thestinger/rust/no_starve_xfail, r=cmr

this is still broken on the bsd builder, perhaps because it has 1 core

10 years agodisable starvation test completely for now
Daniel Micay [Sun, 22 Sep 2013 22:25:59 +0000 (18:25 -0400)]
disable starvation test completely for now

this is still broken on the bsd builder, perhaps because it has 1 core

10 years agoauto merge of #9389 : poiru/rust/issue-9333, r=alexcrichton
bors [Sun, 22 Sep 2013 19:45:52 +0000 (12:45 -0700)]
auto merge of #9389 : poiru/rust/issue-9333, r=alexcrichton

Closes #9333.

10 years agoauto merge of #9408 : thestinger/rust/valgrind, r=alexcrichton
bors [Sun, 22 Sep 2013 18:10:52 +0000 (11:10 -0700)]
auto merge of #9408 : thestinger/rust/valgrind, r=alexcrichton

10 years agodisable scheduler starvation test on valgrind
Daniel Micay [Sun, 22 Sep 2013 17:48:23 +0000 (13:48 -0400)]
disable scheduler starvation test on valgrind

10 years agoActually default rustc to have debug! output
Alex Crichton [Sat, 21 Sep 2013 08:49:38 +0000 (01:49 -0700)]
Actually default rustc to have debug! output

Turns out that even if the default is "enabled", that doesn't mean that the
CFG_ENABLE_DEBUG variable will be defined. Instead, test whether
CFG_DISABLE_DEBUG is defined and disable debug things if that's the case.

10 years agoauto merge of #9402 : alexcrichton/rust/no-ng, r=thestinger
bors [Sun, 22 Sep 2013 16:55:52 +0000 (09:55 -0700)]
auto merge of #9402 : alexcrichton/rust/no-ng, r=thestinger

Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng
suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.

Nothin like deleting 7k lines from a repo!

10 years agorustdoc: Out with the old, in with the new
Alex Crichton [Sun, 22 Sep 2013 06:25:48 +0000 (23:25 -0700)]
rustdoc: Out with the old, in with the new

Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng
suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.

10 years agoauto merge of #9362 : huonw/rust/rand, r=alexcrichton
bors [Sun, 22 Sep 2013 14:15:54 +0000 (07:15 -0700)]
auto merge of #9362 : huonw/rust/rand, r=alexcrichton

First steps on toward a shiny new `std::rand`, this does a variety of relatively clean-up tasks, like:
- moving `std/rand.rs` to `std/rand/mod.rs` in preparation for (e.g.) splitting the large chunk that is the `Isaac` implementation into a separate file later.
- removing the now unused RNG code in the old rt (500 lines gone just like that!)
- merging Rng and RngUtil via default methods
- examples in the documentation for almost all methods.

And other things mentioned in the commit messages.

10 years agoRemove the C(++) ISAAC Rng from the old rt.
Huon Wilson [Sun, 22 Sep 2013 11:57:31 +0000 (21:57 +1000)]
Remove the C(++) ISAAC Rng from the old rt.

This has to leave rust_gen_seed and rng_gen_seed around since they're
used to initialise the std::rand RNGs.

10 years agostd: merge rand::{Rng,RngUtil} with default methods.
Huon Wilson [Fri, 20 Sep 2013 11:47:05 +0000 (21:47 +1000)]
std: merge rand::{Rng,RngUtil} with default methods.

Also, documentation & general clean-up:
- remove `gen_char_from`: better served by `sample` or `choose`.
- `gen_bytes` generalised to `gen_vec`.
- `gen_int_range`/`gen_uint_range` merged into `gen_integer_range` and
  made to be properly uniformly distributed. Fixes #8644.

Minor adjustments to other functions.

10 years agostd: move rand.rs to rand/mod.rs.
Huon Wilson [Fri, 20 Sep 2013 14:58:16 +0000 (00:58 +1000)]
std: move rand.rs to rand/mod.rs.

10 years agoReserve the `alignof`, `offsetof`, and `sizeof` keywords
Birunthan Mohanathas [Sat, 21 Sep 2013 13:31:57 +0000 (16:31 +0300)]
Reserve the `alignof`, `offsetof`, and `sizeof` keywords
Closes #9333.

10 years agoauto merge of #9395 : brson/rust/0.8, r=alexcrichton
bors [Sun, 22 Sep 2013 07:25:56 +0000 (00:25 -0700)]
auto merge of #9395 : brson/rust/0.8, r=alexcrichton

10 years agoauto merge of #9401 : bytbox/rust/master, r=thestinger
bors [Sun, 22 Sep 2013 05:20:56 +0000 (22:20 -0700)]
auto merge of #9401 : bytbox/rust/master, r=thestinger

Along with a tiny bit of cleanup in rust.vim.

10 years agoRemove 'copy' from syntax files, as it's no longer a keyword
Scott Lawrence [Sun, 22 Sep 2013 04:29:45 +0000 (00:29 -0400)]
Remove 'copy' from syntax files, as it's no longer a keyword

10 years agoauto merge of #9399 : brson/rust/tinfo, r=thestinger
bors [Sun, 22 Sep 2013 03:40:55 +0000 (20:40 -0700)]
auto merge of #9399 : brson/rust/tinfo, r=thestinger

The right way to link to terminfo varies by linux distribution, so
this is making our snapshots less compatible.

10 years agoauto merge of #9353 : brson/rust/sched, r=alexcrichton,cmr
bors [Sun, 22 Sep 2013 01:31:01 +0000 (18:31 -0700)]
auto merge of #9353 : brson/rust/sched, r=alexcrichton,cmr

This guarantees that if there is work to do it will be found

10 years agoPass --disable-terminfo to LLVM's configure script. Closes #9334
Brian Anderson [Sun, 22 Sep 2013 01:01:11 +0000 (18:01 -0700)]
Pass --disable-terminfo to LLVM's configure script. Closes #9334

The right way to link to terminfo varies by linux distribution, so
this is making our snapshots less compatible.

10 years agoauto merge of #9366 : olsonjeffery/rust/file_io_doc_cleanup, r=brson
bors [Sun, 22 Sep 2013 00:06:03 +0000 (17:06 -0700)]
auto merge of #9366 : olsonjeffery/rust/file_io_doc_cleanup, r=brson

fixing spew that @achricto was nice enough to point out to me

10 years agoUpdate version numbers to 0.8
Brian Anderson [Sat, 21 Sep 2013 23:25:08 +0000 (16:25 -0700)]
Update version numbers to 0.8

10 years agostd: add file::io::test module and ensure correct build
Jeff Olson [Sat, 21 Sep 2013 21:15:26 +0000 (14:15 -0700)]
std: add file::io::test module and ensure correct build

10 years agostd: cleanup file::io rustdoc_ng output
Jeff Olson [Fri, 20 Sep 2013 20:52:37 +0000 (13:52 -0700)]
std: cleanup file::io rustdoc_ng output

10 years agoauto merge of #9393 : alexcrichton/rust/fix-docs, r=brson
bors [Sat, 21 Sep 2013 20:30:57 +0000 (13:30 -0700)]
auto merge of #9393 : alexcrichton/rust/fix-docs, r=brson

This needs libstd in its proper location to resolve references when generating
docs for libextra.

10 years agoFix the dependencies of rustdoc_ng doc generation
Alex Crichton [Sat, 21 Sep 2013 20:25:33 +0000 (13:25 -0700)]
Fix the dependencies of rustdoc_ng doc generation

This needs libstd in its proper location to resolve references when generating
docs for libextra.

10 years agoauto merge of #9380 : thestinger/rust/par, r=alexcrichton
bors [Sat, 21 Sep 2013 17:10:56 +0000 (10:10 -0700)]
auto merge of #9380 : thestinger/rust/par, r=alexcrichton

This was a dead end experiment, and not a sensible way of implementing
generic data parallelism. This also removes the `graph500-bfs.rs`
benchmark because it relies on `extra::par`.

Closes #5626

10 years agoauto merge of #9381 : luisbg/rust/master, r=cmr
bors [Sat, 21 Sep 2013 15:10:55 +0000 (08:10 -0700)]
auto merge of #9381 : luisbg/rust/master, r=cmr

Closes #9379

10 years agoauto merge of #9369 : sebcrozet/rust/f64_inline, r=thestinger
bors [Sat, 21 Sep 2013 13:05:56 +0000 (06:05 -0700)]
auto merge of #9369 : sebcrozet/rust/f64_inline, r=thestinger

This was, somehow, missed by #8332.

10 years agoauto merge of #9368 : StrLght/rust/master, r=thestinger
bors [Sat, 21 Sep 2013 11:45:57 +0000 (04:45 -0700)]
auto merge of #9368 : StrLght/rust/master, r=thestinger

10 years agoauto merge of #9360 : huonw/rust/4449, r=pnkfelix
bors [Sat, 21 Sep 2013 09:56:01 +0000 (02:56 -0700)]
auto merge of #9360 : huonw/rust/4449, r=pnkfelix

Fixes #4449. (Ran it through try-bsd: http://buildbot.rust-lang.org/builders/try-bsd/builds/451)

10 years agoauto merge of #9354 : thestinger/rust/cleanup, r=alexcrichton
bors [Sat, 21 Sep 2013 08:35:59 +0000 (01:35 -0700)]
auto merge of #9354 : thestinger/rust/cleanup, r=alexcrichton

I don't see the point of this function, and there are no users.

10 years agoauto merge of #9374 : alexcrichton/rust/rustdoc-web, r=cmr
bors [Sat, 21 Sep 2013 07:16:02 +0000 (00:16 -0700)]
auto merge of #9374 : alexcrichton/rust/rustdoc-web, r=cmr

This large commit implements and `html` output option for rustdoc_ng. The
executable has been altered to be invoked as "rustdoc_ng html <crate>" and
it will dump everything into the local "doc" directory. JSON can still be
generated by changing 'html' to 'json'.

This also fixes a number of bugs in rustdoc_ng relating to comment stripping,
along with some other various issues that I found along the way.

The `make doc` command has been altered to generate the new documentation into
the `doc/ng/$(CRATE)` directories.

Previews
* http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/
* http://www.contrib.andrew.cmu.edu/~acrichto/doc/extra/

Missing features
* Different versions of documentation on the same page (all possibly indexed as well?) I think that this needs to be thought out before action is taken. It's an awesome idea, but it should be done carefully.
* Source links are missing. This is a little dependent on getting versions working. In theory we should link back to github, but we should always link back to the exact version the documentation was generated from.
* Integration with other tools. It would be awesome to have rustpkg-style inference of the package name and version so they don't have to be specified anywhere. Additionally, I should be able to build documentation for a pkgid, not necessarily a crate file.

cc @cmr/@Seldaek

10 years agoImplement a web backend for rustdoc_ng
Alex Crichton [Thu, 19 Sep 2013 05:18:38 +0000 (22:18 -0700)]
Implement a web backend for rustdoc_ng

This large commit implements and `html` output option for rustdoc_ng. The
executable has been altered to be invoked as "rustdoc_ng html <crate>" and
it will dump everything into the local "doc" directory. JSON can still be
generated by changing 'html' to 'json'.

This also fixes a number of bugs in rustdoc_ng relating to comment stripping,
along with some other various issues that I found along the way.

The `make doc` command has been altered to generate the new documentation into
the `doc/ng/$(CRATE)` directories.

10 years agoDocument a few undocumented methos in Vector
Luis de Bethencourt [Sat, 21 Sep 2013 05:17:22 +0000 (01:17 -0400)]
Document a few undocumented methos in Vector

Closes #9379

10 years agodrop `extra::par`
Daniel Micay [Sat, 21 Sep 2013 05:01:01 +0000 (01:01 -0400)]
drop `extra::par`

This was a dead end experiment, and not a sensible way of implementing
generic data parallelism. This also removes the `graph500-bfs.rs`
benchmark because it relies on `extra::par`.

Closes #5626

10 years agoauto merge of #9350 : pnkfelix/rust/fsk-issue-4691-catch-bad-fsu-during-compute-moves...
bors [Sat, 21 Sep 2013 03:26:02 +0000 (20:26 -0700)]
auto merge of #9350 : pnkfelix/rust/fsk-issue-4691-catch-bad-fsu-during-compute-moves, r=nikomatsakis

Resolves third bullet of #4691: if the functional-struct-update (FSU) expression `{ a: b, ..s }` causes `s` to move and `s` has a destructor, then the expression is illegal.

r? @nikomatsakis

10 years agoauto merge of #9349 : brson/rust/relnotes, r=thestinger
bors [Sat, 21 Sep 2013 01:01:04 +0000 (18:01 -0700)]
auto merge of #9349 : brson/rust/relnotes, r=thestinger

10 years agoauto merge of #9371 : thestinger/rust/text, r=pnkfelix
bors [Fri, 20 Sep 2013 23:11:04 +0000 (16:11 -0700)]
auto merge of #9371 : thestinger/rust/text, r=pnkfelix

We force the usage of LF line endings, but *only* in text files.

10 years agostd: add missing #[inline] annotation to the f64 neg method.
Sébastien Crozet [Fri, 20 Sep 2013 22:23:49 +0000 (00:23 +0200)]
std: add missing #[inline] annotation to the f64 neg method.

This was, somehow, missed by #8332.

10 years agoFix example in std::Option
Grigoriy [Fri, 20 Sep 2013 22:00:20 +0000 (02:00 +0400)]
Fix example in std::Option

10 years agoauto merge of #9276 : alexcrichton/rust/dox, r=brson
bors [Fri, 20 Sep 2013 21:11:08 +0000 (14:11 -0700)]
auto merge of #9276 : alexcrichton/rust/dox, r=brson

Hopefull this will make our libstd docs appear a little more "full".

10 years agoauto merge of #9278 : alexcrichton/rust/ndebug, r=brson
bors [Fri, 20 Sep 2013 19:46:05 +0000 (12:46 -0700)]
auto merge of #9278 : alexcrichton/rust/ndebug, r=brson

Many people will be very confused that their debug! statements aren't working
when they first use rust only to learn that they should have been building with
`--cfg debug` the entire time. This inverts the meaning of the flag to instead
of enabling debug statements, now it disables debug statements.

This way the default behavior is a bit more reasonable, and requires less
end-user configuration. Furthermore, this turns on debug by default when
building the rustc compiler.