]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #28795 - marti1125:28696, r=alexcrichton
bors [Fri, 2 Oct 2015 11:04:13 +0000 (11:04 +0000)]
Auto merge of #28795 - marti1125:28696, r=alexcrichton

-Add a validation when input search is empty on top of 'startSearch()'

8 years agoAuto merge of #28807 - Manishearth:rollup, r=Manishearth
bors [Fri, 2 Oct 2015 09:11:34 +0000 (09:11 +0000)]
Auto merge of #28807 - Manishearth:rollup, r=Manishearth

- Successful merges: #28554, #28686, #28786, #28788, #28791, #28797
- Failed merges:

8 years agoRollup merge of #28797 - steveklabnik:rebase_for_gankro, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:23 +0000 (13:07 +0530)]
Rollup merge of #28797 - steveklabnik:rebase_for_gankro, r=alexcrichton

This is a rebase of https://github.com/rust-lang/rust/pull/27902/, since @Gankro  is busy :heart:

8 years agoRollup merge of #28791 - apasel422:issue-25439, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:23 +0000 (13:07 +0530)]
Rollup merge of #28791 - apasel422:issue-25439, r=alexcrichton

Closes #25439.

8 years agoRollup merge of #28788 - tsurai:master, r=bluss
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28788 - tsurai:master, r=bluss

Please correct me if I confused something but the documentation for ```into_ptr``` and ```into_raw``` of ```CString``` seem to be swapped as the docs for ```into_ptr``` mentions ```into_raw``` and vice versa.

Update: I actually meant ```into_ptr``` and ```into_raw``` NOT ```from_*```

8 years agoRollup merge of #28786 - fhahn:ba-link, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28786 - fhahn:ba-link, r=alexcrichton

This tiny PR just adds a link to  Florian Wilkens's Bachelor's Thesis.

8 years agoRollup merge of #28686 - eefriedman:unresolved-path-error, r=nikomatsakis
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28686 - eefriedman:unresolved-path-error, r=nikomatsakis

The behavior here isn't really ideal, but we can't really do much better
given the current state of constant evaluation.

The changes to ExprUseVisitor are to avoid a compile error; apparently
that bit of code is extremely sensitive to changes in other areas of the
compiler.

Fixes #28670, and probably a bunch of duplicates.

8 years agoRollup merge of #28554 - christopherdumas:E0422, r=arielb1
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28554 - christopherdumas:E0422, r=arielb1

8 years agoAuto merge of #28793 - Ms2ger:AttrStyle, r=alexcrichton
bors [Fri, 2 Oct 2015 07:10:43 +0000 (07:10 +0000)]
Auto merge of #28793 - Ms2ger:AttrStyle, r=alexcrichton

8 years agoAuto merge of #28792 - dotdash:cmp_indirection, r=alexcrichton
bors [Fri, 2 Oct 2015 05:19:50 +0000 (05:19 +0000)]
Auto merge of #28792 - dotdash:cmp_indirection, r=alexcrichton

Using the comparison operators already refs the operands, so doing it
ourselves as well just adds an unnecessary level of indirection.

8 years agoAuto merge of #28790 - arielb1:unsafe-coerce, r=eddyb
bors [Fri, 2 Oct 2015 03:28:57 +0000 (03:28 +0000)]
Auto merge of #28790 - arielb1:unsafe-coerce, r=eddyb

Fixes #28776

r? @eddyb

8 years agoAuto merge of #28789 - rkruppe:rm-unused-probes, r=alexcrichton
bors [Fri, 2 Oct 2015 01:40:29 +0000 (01:40 +0000)]
Auto merge of #28789 - rkruppe:rm-unused-probes, r=alexcrichton

The code using them was removed in #27789.

8 years agoAuto merge of #28787 - dotdash:no_more___fat_ptr, r=eddyb
bors [Thu, 1 Oct 2015 20:06:35 +0000 (20:06 +0000)]
Auto merge of #28787 - dotdash:no_more___fat_ptr, r=eddyb

A DST value and a fat pointer to it have the same representation, all we
have to do is to adjust the type of the datum holding the pointer.

8 years agofixup wording
Alexis Beingessner [Wed, 19 Aug 2015 19:36:14 +0000 (12:36 -0700)]
fixup wording

8 years agoflesh out what Vec actually guarantees
Alexis Beingessner [Wed, 19 Aug 2015 17:13:39 +0000 (10:13 -0700)]
flesh out what Vec actually guarantees

8 years agofixes #28696 Return to the default content when .search-input is empty -Add a validat...
Willy Aguirre [Thu, 1 Oct 2015 18:30:35 +0000 (13:30 -0500)]
fixes #28696 Return to the default content when .search-input is empty -Add a validation when input search is empty on top of 'startSearch()'

8 years agoAuto merge of #28746 - aidanhs:aphs-musl-linking-no-cxxabi, r=alexcrichton
bors [Thu, 1 Oct 2015 18:16:08 +0000 (18:16 +0000)]
Auto merge of #28746 - aidanhs:aphs-musl-linking-no-cxxabi, r=alexcrichton

On reading https://github.com/alexcrichton/port-of-rust/blob/master/musl/Dockerfile I was surprised to see no libcxxabi. I experimented, and it does seem to be unnecessary.

I guess it's a remnant from the 3.6 build.

r? @alexcrichton

8 years agoAuto merge of #28742 - nikomatsakis:def-id-encapsulate, r=eddyb
bors [Thu, 1 Oct 2015 16:26:28 +0000 (16:26 +0000)]
Auto merge of #28742 - nikomatsakis:def-id-encapsulate, r=eddyb

As described in https://github.com/rust-lang/rfcs/pull/1298, the idea here is to make DefIds independent of changes to the content of other items. They are also *mostly* independent from ordering, so e.g. reordering two functions will change the defids, but it will not change the paths that they expand into (but this is not the case for some things, such as impls).

This is a major refactoring, so I did it in slices. The final commit is in some sense The Big One where most of the work is done. The earlier commits just pave the way by gradually refactoring accesses to the `node` field.

This is a [breaking-change] for plugin authors. The things you need to do to migrate your code are as follows:

1. For local def-ids, rather than do `def_id.node`, call `tcx.map.as_local_node_id(def_id)`.
2. To construct a local def-id, call `tcx.map.local_def_id(node_id)`.
3. Note that you cannot make def-ids for any node, but only for "definitions" -- which include all items, as well as a number of other things, but not e.g. arbitrary expressions.
4. You can get the path to a def-id by calling `tcx.def_path(def_id)`.

One thing that is NOT part of this PR, but which I plan do in a follow-up, is converting uses of the existing `with_path` API to use `def_path`, which is basically the same.

r? @eddyb (or @nrc)

8 years agoRemove one level of indirection for slice-based PartialEq impls
Björn Steinbrink [Thu, 1 Oct 2015 16:17:49 +0000 (18:17 +0200)]
Remove one level of indirection for slice-based PartialEq impls

Using the comparison operators already refs the operands, so doing it
ourselves as well just adds an unnecessary level of indirection.

8 years agoStop re-exporting AttrStyle's variants and rename them.
Ms2ger [Thu, 1 Oct 2015 16:03:34 +0000 (18:03 +0200)]
Stop re-exporting AttrStyle's variants and rename them.

8 years agoAdd test for #25439
Andrew Paseltiner [Thu, 1 Oct 2015 15:25:45 +0000 (11:25 -0400)]
Add test for #25439

Closes #25439.

8 years agoremove support method for synthetic default method ids
Niko Matsakis [Thu, 1 Oct 2015 15:10:30 +0000 (11:10 -0400)]
remove support method for synthetic default method ids

8 years agoremove code for re-exports of static methods
Niko Matsakis [Wed, 30 Sep 2015 20:53:14 +0000 (16:53 -0400)]
remove code for re-exports of static methods

8 years agoconvert the creepy case to just return None -- in practice, it would
Niko Matsakis [Wed, 30 Sep 2015 12:33:22 +0000 (08:33 -0400)]
convert the creepy case to just return None -- in practice, it would
have always been returning None anyway, since it was comparing node-ids
across crates incorrectly -- and remove the now unused map
`extern_const_variants`

8 years agoConvert DefId to use DefIndex, which is an index into a list of
Niko Matsakis [Thu, 17 Sep 2015 18:29:59 +0000 (14:29 -0400)]
Convert DefId to use DefIndex, which is an index into a list of
paths, and construct paths for all definitions. Also, stop rewriting
DefIds for closures, and instead just load the closure data from
the original def-id, which may be in another crate.

8 years agorename ast_map to hir_map
Niko Matsakis [Fri, 11 Sep 2015 15:29:17 +0000 (11:29 -0400)]
rename ast_map to hir_map

8 years agostop updating `parent_node_id` when there is no corresponding map entry
Niko Matsakis [Tue, 29 Sep 2015 10:47:33 +0000 (06:47 -0400)]
stop updating `parent_node_id` when there is no corresponding map entry

8 years agobuild up a set of node-ids that we can construct def-ids from
Niko Matsakis [Thu, 10 Sep 2015 19:53:08 +0000 (15:53 -0400)]
build up a set of node-ids that we can construct def-ids from

8 years agoIntroduce semi-duplicate DefIds into DefLocal/DefUpvar to remove use
Niko Matsakis [Wed, 9 Sep 2015 18:23:43 +0000 (14:23 -0400)]
Introduce semi-duplicate DefIds into DefLocal/DefUpvar to remove use
of xxx_local.

8 years agoMake calling def_id on a DefSelfTy an error; the previous defids that
Niko Matsakis [Tue, 8 Sep 2015 14:08:30 +0000 (10:08 -0400)]
Make calling def_id on a DefSelfTy an error; the previous defids that
were returned, either the trait or the *self type itself*, were not
particularly representative of what the Def is (a type parameter).
Rewrite paths to handle this case specially, just as they handle the
primitive case specifically. This entire `def_id` codepath is kind of a
mess.

8 years agoMove DefLabel out from the def_id() results
Niko Matsakis [Mon, 7 Sep 2015 18:27:13 +0000 (14:27 -0400)]
Move DefLabel out from the def_id() results

8 years agoRemove DefRegion, which is not used
Niko Matsakis [Mon, 7 Sep 2015 18:13:35 +0000 (14:13 -0400)]
Remove DefRegion, which is not used

8 years agoRename `node_id` to `var_id` and limit to the cases that are actually used
Niko Matsakis [Mon, 7 Sep 2015 18:10:25 +0000 (14:10 -0400)]
Rename `node_id` to `var_id` and limit to the cases that are actually used

8 years agomove direct accesses of `node` to go through `as_local_node_id`, unless
Niko Matsakis [Fri, 4 Sep 2015 17:52:28 +0000 (13:52 -0400)]
move direct accesses of `node` to go through `as_local_node_id`, unless
they are being used as an opaque "position identifier"

8 years agochange creepy case to call span_bug instead of doing something clearly wrong
Niko Matsakis [Fri, 4 Sep 2015 00:36:53 +0000 (20:36 -0400)]
change creepy case to call span_bug instead of doing something clearly wrong

8 years agomove job of creating local-def-ids to ast-map (with a few stragglers)
Niko Matsakis [Wed, 2 Sep 2015 20:11:32 +0000 (16:11 -0400)]
move job of creating local-def-ids to ast-map (with a few stragglers)

8 years agoreplaced *_ptr with *_raw methods in docs
Cristian Kubis [Thu, 1 Oct 2015 14:02:35 +0000 (16:02 +0200)]
replaced *_ptr with *_raw methods in docs

8 years agoadd some XXX markers
Niko Matsakis [Wed, 2 Sep 2015 11:09:53 +0000 (07:09 -0400)]
add some XXX markers

8 years agomove LOCAL_CRATE to cstore
Niko Matsakis [Tue, 1 Sep 2015 16:35:05 +0000 (12:35 -0400)]
move LOCAL_CRATE to cstore

8 years agoAvoid unnecessary temporaries when ref'ing a DST value
Björn Steinbrink [Thu, 1 Oct 2015 09:55:52 +0000 (11:55 +0200)]
Avoid unnecessary temporaries when ref'ing a DST value

A DST value and a fat pointer to it have the same representation, all we
have to do is to adjust the type of the datum holding the pointer.

8 years agouse the *adjusted* callee type in effect checking
Ariel Ben-Yehuda [Thu, 1 Oct 2015 13:06:50 +0000 (16:06 +0300)]
use the *adjusted* callee type in effect checking

Fixes #28776

8 years agoAuto merge of #28131 - arielb1:static-upvars, r=pnkfelix
bors [Thu, 1 Oct 2015 13:06:48 +0000 (13:06 +0000)]
Auto merge of #28131 - arielb1:static-upvars, r=pnkfelix

Fixes #23057
Fixes #27890
Fixes #28099
Fixes #28113

r? @pnkfelix

8 years agoStop probing for pandoc and xelatex, they are not used any more.
Robin Kruppe [Thu, 1 Oct 2015 12:34:31 +0000 (14:34 +0200)]
Stop probing for pandoc and xelatex, they are not used any more.

8 years agocheck upvars in closures that are in statics
Ariel Ben-Yehuda [Mon, 31 Aug 2015 19:37:05 +0000 (22:37 +0300)]
check upvars in closures that are in statics

Fixes #27890
Fixes #28099
Fixes #28113

8 years agoAuto merge of #28780 - steveklabnik:doc_from_str, r=alexcrichton
bors [Thu, 1 Oct 2015 11:18:48 +0000 (11:18 +0000)]
Auto merge of #28780 - steveklabnik:doc_from_str, r=alexcrichton

@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.

8 years agodoc: fixed swapped docs for from_ptr and from_raw
Cristian Kubis [Thu, 1 Oct 2015 10:43:00 +0000 (12:43 +0200)]
doc: fixed swapped docs for from_ptr and from_raw

8 years agoAdd link to Florian Wilkens's Bachelor's Thesis
Florian Hahn [Thu, 1 Oct 2015 09:36:26 +0000 (11:36 +0200)]
Add link to Florian Wilkens's Bachelor's Thesis

8 years agoAuto merge of #28778 - arielb1:no-source, r=eddyb
bors [Thu, 1 Oct 2015 09:30:54 +0000 (09:30 +0000)]
Auto merge of #28778 - arielb1:no-source, r=eddyb

this simplifies the code while reducing the size of libcore.rlib by
3.3 MiB (~1M of which is bloat a separate patch of mine removes
too), while reducing rustc memory usage on small crates by 18MiB.

This also simplifies the code considerably.

I have measured a small, but possibly insignificant, bootstrap performance improvement, and the memory savings grow to about 30M for larger crates (but that is still less as a percentage).

r? @eddyb

8 years agoAuto merge of #28741 - alexcrichton:fix-msvc-32, r=vadimcn
bors [Thu, 1 Oct 2015 06:18:59 +0000 (06:18 +0000)]
Auto merge of #28741 - alexcrichton:fix-msvc-32, r=vadimcn

Turns out the symbol names are slightly different on 32-bit than on 64, so the
prefix needs to be tweaked just a bit!

8 years agoAuto merge of #28605 - alexcrichton:link-native-first, r=brson
bors [Thu, 1 Oct 2015 04:29:04 +0000 (04:29 +0000)]
Auto merge of #28605 - alexcrichton:link-native-first, r=brson

This commit swaps the order of linking local native libraries and upstream
native libraries on the linker command line. Detail of bugs this can cause can
be found in #28595, and this change also invalidates the test case that was
added for #12446 which is now considered a bug because the downstream dependency
would need to declare that it depends on the native library somehow.

Closes #28595
[breaking-change]

8 years agorustc: Swap link order of native libs/rust deps
Alex Crichton [Wed, 23 Sep 2015 16:23:31 +0000 (09:23 -0700)]
rustc: Swap link order of native libs/rust deps

This commit swaps the order of linking local native libraries and upstream
native libraries on the linker command line. Detail of bugs this can cause can
be found in #28595, and this change also invalidates the test case that was
added for #12446 which is now considered a bug because the downstream dependency
would need to declare that it depends on the native library somehow.

Closes #28595

8 years agoAuto merge of #28577 - jethrogb:topic/ast-stmt-debug, r=pcwalton
bors [Thu, 1 Oct 2015 02:38:25 +0000 (02:38 +0000)]
Auto merge of #28577 - jethrogb:topic/ast-stmt-debug, r=pcwalton

This enables the Debug trait to work on syntax::ast::Stmt.

8 years agoAuto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton
bors [Thu, 1 Oct 2015 00:47:06 +0000 (00:47 +0000)]
Auto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton

Closes #28709.

8 years agoAuto merge of #28782 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Sep 2015 22:27:53 +0000 (22:27 +0000)]
Auto merge of #28782 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28753, #28760, #28764, #28770, #28771, #28772
- Failed merges:

8 years agoRollup merge of #28772 - tshepang:improve-paragraph, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:04 +0000 (18:20 -0400)]
Rollup merge of #28772 - tshepang:improve-paragraph, r=steveklabnik

8 years agoRollup merge of #28771 - tshepang:upper-case, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:04 +0000 (18:20 -0400)]
Rollup merge of #28771 - tshepang:upper-case, r=steveklabnik

8 years agoRollup merge of #28770 - tshepang:awkward, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28770 - tshepang:awkward, r=steveklabnik

8 years agoRollup merge of #28764 - steveklabnik:gh28706, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28764 - steveklabnik:gh28706, r=alexcrichton

Fixes #28706

I am pretty sure that this is accurate, bout would love a double check.

8 years agoRollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton

Fixes #28166

8 years agoRollup merge of #28753 - steveklabnik:gh28572, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28753 - steveklabnik:gh28572, r=alexcrichton

This is part of #28572, but doesn't complete it. Amongst other things,
this patch:

* Increases consistency in the way feature flags are used with other
  docs.
* Removes the ignores, which is nice: we actually had some syntax errors
  in the examples :sob:.
* Mentions #![no_core]

Realistically, this document used to be in the order of least to most:
nothing, then adding core. But with the changes in RFC 1184, this is
backwards: it now shows stuff that uses core from the beginning. In the
future, I'd like to revamp this to go from 'most to least', but I'd like
to see the discussion in https://github.com/rust-lang/rust/issues/27701
goes before I write more.

8 years agoDon't crash on non-existent path in constant.
Eli Friedman [Wed, 30 Sep 2015 22:04:21 +0000 (15:04 -0700)]
Don't crash on non-existent path in constant.

The behavior here isn't really ideal, but we can't really do much better
given the current state of constant evaluation.

Fixes #28670, and probably a bunch of duplicates.

8 years agoAdd some docs for FromString::from_str
Steve Klabnik [Wed, 30 Sep 2015 21:42:41 +0000 (17:42 -0400)]
Add some docs for FromString::from_str

@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.

8 years agokill the fake provided method stubs
Ariel Ben-Yehuda [Wed, 30 Sep 2015 19:28:27 +0000 (22:28 +0300)]
kill the fake provided method stubs

this simplifies the code while reducing the size of libcore.rlib by
3.3 MiB (~1M of which is bloat a separate patch of mine removes
too), while reducing rustc memory usage on small crates by 18MiB.

This also simplifies the code considerably.

8 years agotrans: Fix __imp_ creation for i686 MSVC
Alex Crichton [Tue, 29 Sep 2015 23:26:34 +0000 (16:26 -0700)]
trans: Fix __imp_ creation for i686 MSVC

Turns out the symbol names are slightly different on 32-bit than on 64, so the
prefix needs to be tweaked just a bit!

8 years agoAuto merge of #28769 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Sep 2015 19:04:02 +0000 (19:04 +0000)]
Auto merge of #28769 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28743, #28744, #28745, #28749, #28754, #28755, #28757, #28759, #28761, #28762, #28763, #28765
- Failed merges:

8 years agoImprove identifier defintion in the reference
Steve Klabnik [Wed, 30 Sep 2015 17:42:57 +0000 (13:42 -0400)]
Improve identifier defintion in the reference

Fixes #28706

8 years agoRollup merge of #28765 - steveklabnik:gh28693, r=nikomatsakis
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28765 - steveklabnik:gh28693, r=nikomatsakis

Fixes #28693

8 years agoRollup merge of #28763 - steveklabnik:gh27917, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28763 - steveklabnik:gh27917, r=alexcrichton

Fixes #27917

8 years agoRollup merge of #28762 - steveklabnik:gh28073, r=nikomatsakis
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28762 - steveklabnik:gh28073, r=nikomatsakis

Fixes #28073

8 years agoRollup merge of #28761 - steveklabnik:gh28082, r=brson
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28761 - steveklabnik:gh28082, r=brson

We don't completely cover documentation tests in the testing chapter,
since we cover them in the documentation chapter. So make sure people
know that.

Fixes #28082

8 years agoRollup merge of #28759 - steveklabnik:gh28359, r=nikomatsakis
Steve Klabnik [Wed, 30 Sep 2015 18:51:54 +0000 (14:51 -0400)]
Rollup merge of #28759 - steveklabnik:gh28359, r=nikomatsakis

Fixes #28359

I'm not doing more here because it's unclear that `as_slice()` is even going to stick around, see https://github.com/rust-lang/rust/issues/27729

8 years agoRollup merge of #28757 - steveklabnik:gh28384, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 18:51:54 +0000 (14:51 -0400)]
Rollup merge of #28757 - steveklabnik:gh28384, r=alexcrichton

Fixes #28384

8 years agoRollup merge of #28755 - steveklabnik:gh28418, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 18:51:54 +0000 (14:51 -0400)]
Rollup merge of #28755 - steveklabnik:gh28418, r=alexcrichton

The original blog post referred to examples by their file names, and now
that it's in guide form, there is no file name. So edit the text so that
it makes a bit more sense.

Fixes #28428

8 years agoRollup merge of #28754 - luser:fix-rustdoc-module-links, r=Manishearth
Steve Klabnik [Wed, 30 Sep 2015 18:51:54 +0000 (14:51 -0400)]
Rollup merge of #28754 - luser:fix-rustdoc-module-links, r=Manishearth

The links in the rustdoc for several places in fmt were trying to link to
the std::fmt module but actually linking to std, which was confusing.
While trying to figure out why I noticed that the documentation chapter of
the Rust book has examples that show this same bug (although it doesn't seem
widespread in practice).

r? @steveklabnik

8 years agoRollup merge of #28749 - tshepang:patch-6, r=bluss
Steve Klabnik [Wed, 30 Sep 2015 18:51:53 +0000 (14:51 -0400)]
Rollup merge of #28749 - tshepang:patch-6, r=bluss

8 years agoRollup merge of #28745 - tshepang:typo, r=bluss
Steve Klabnik [Wed, 30 Sep 2015 18:51:53 +0000 (14:51 -0400)]
Rollup merge of #28745 - tshepang:typo, r=bluss

8 years agoRollup merge of #28744 - dato:usize-typo, r=Aatch
Steve Klabnik [Wed, 30 Sep 2015 18:51:53 +0000 (14:51 -0400)]
Rollup merge of #28744 - dato:usize-typo, r=Aatch

8 years agoRollup merge of #28743 - JanLikar:master, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 18:51:53 +0000 (14:51 -0400)]
Rollup merge of #28743 - JanLikar:master, r=steveklabnik

 - Expand the first paragraph

 - Improve readability by partitioning the chapter into the following
   sections: "Patterns", "Type annotations", "Mutability", and
   "Initializing bindings"

 - Add "Scope and shadowing" section (fix #28177)

r? @steveklabnik

8 years agoMention that you can only index with usize
Steve Klabnik [Wed, 30 Sep 2015 17:46:58 +0000 (13:46 -0400)]
Mention that you can only index with usize

Fixes #28693

8 years agoElaborate on the io prelude in the book
Steve Klabnik [Wed, 30 Sep 2015 17:39:59 +0000 (13:39 -0400)]
Elaborate on the io prelude in the book

Fixes #27917

8 years agoMake note of performance implications of Read
Steve Klabnik [Wed, 30 Sep 2015 17:35:33 +0000 (13:35 -0400)]
Make note of performance implications of Read

Fixes #28073

8 years agoCross-reference doc chapter from testing chapter
Steve Klabnik [Wed, 30 Sep 2015 17:30:43 +0000 (13:30 -0400)]
Cross-reference doc chapter from testing chapter

We don't completely cover documentation tests in the testing chapter,
since we cover them in the documentation chapter. So make sure people
know that.

Fixes #28082

8 years agoFix module links from core::fmt::* to go to std::fmt
Ted Mielczarek [Wed, 30 Sep 2015 17:24:39 +0000 (13:24 -0400)]
Fix module links from core::fmt::* to go to std::fmt

8 years agoClarify logic instead of using 'vice versa'
Steve Klabnik [Wed, 30 Sep 2015 17:24:28 +0000 (13:24 -0400)]
Clarify logic instead of using 'vice versa'

Fixes #28166

8 years agoCall out slicing syntax more explicitly
Steve Klabnik [Wed, 30 Sep 2015 17:21:02 +0000 (13:21 -0400)]
Call out slicing syntax more explicitly

Fixes #28359

8 years agoAuto merge of #28758 - Manishearth:rollup, r=Manishearth
bors [Wed, 30 Sep 2015 17:12:08 +0000 (17:12 +0000)]
Auto merge of #28758 - Manishearth:rollup, r=Manishearth

- Successful merges: #28743, #28744, #28745, #28749
- Failed merges:

8 years agoRollup merge of #28749 - tshepang:patch-6, r=bluss
Manish Goregaokar [Wed, 30 Sep 2015 17:01:23 +0000 (22:31 +0530)]
Rollup merge of #28749 - tshepang:patch-6, r=bluss

8 years agoRollup merge of #28745 - tshepang:typo, r=bluss
Manish Goregaokar [Wed, 30 Sep 2015 17:01:23 +0000 (22:31 +0530)]
Rollup merge of #28745 - tshepang:typo, r=bluss

8 years agoRollup merge of #28744 - dato:usize-typo, r=Aatch
Manish Goregaokar [Wed, 30 Sep 2015 17:01:23 +0000 (22:31 +0530)]
Rollup merge of #28744 - dato:usize-typo, r=Aatch

8 years agoRollup merge of #28743 - JanLikar:master, r=steveklabnik
Manish Goregaokar [Wed, 30 Sep 2015 17:01:22 +0000 (22:31 +0530)]
Rollup merge of #28743 - JanLikar:master, r=steveklabnik

 - Expand the first paragraph

 - Improve readability by partitioning the chapter into the following
   sections: "Patterns", "Type annotations", "Mutability", and
   "Initializing bindings"

 - Add "Scope and shadowing" section (fix #28177)

r? @steveklabnik

8 years agoFormat panic docs for split_at
Steve Klabnik [Wed, 30 Sep 2015 16:42:47 +0000 (12:42 -0400)]
Format panic docs for split_at

Fixes #28384

8 years agoImprove wording in error handling guide
Steve Klabnik [Wed, 30 Sep 2015 16:39:37 +0000 (12:39 -0400)]
Improve wording in error handling guide

The original blog post referred to examples by their file names, and now
that it's in guide form, there is no file name. So edit the text so that
it makes a bit more sense.

Fixes #28428

8 years agoFix module links in std::fmt and the Rust book's documentation chapter.
Ted Mielczarek [Wed, 30 Sep 2015 16:33:38 +0000 (12:33 -0400)]
Fix module links in std::fmt and the Rust book's documentation chapter.

The links in the rustdoc for several places in fmt were trying to link to
the std::fmt module but actually linking to std, which was confusing.
While trying to figure out why I noticed that the documentation chapter of
the Rust book has examples that show this same bug (although it doesn't seem
widespread in practice).

8 years agoUpdate no_std docs
Steve Klabnik [Wed, 30 Sep 2015 15:46:33 +0000 (11:46 -0400)]
Update no_std docs

This is part of #28572, but doesn't complete it. Amongst other things,
this patch:

* Increases consistency in the way feature flags are used with other
  docs.
* Removes the ignores, which is nice: we actually had some syntax errors
  in the examples :sob:.
* Mentions #![no_core]

Realistically, this document used to be in the order of least to most:
nothing, then adding core. But with the changes in RFC 1184, this is
backwards: it now shows stuff that uses core from the beginning. In the
future, I'd like to revamp this to go from 'most to least', but I'd like
to see the discussion in https://github.com/rust-lang/rust/issues/27701
goes before I write more.

8 years agoAuto merge of #28738 - apasel422:peekable, r=alexcrichton
bors [Wed, 30 Sep 2015 15:22:17 +0000 (15:22 +0000)]
Auto merge of #28738 - apasel422:peekable, r=alexcrichton

8 years agoAuto merge of #28731 - bluss:by-ref, r=alexcrichton
bors [Wed, 30 Sep 2015 11:03:13 +0000 (11:03 +0000)]
Auto merge of #28731 - bluss:by-ref, r=alexcrichton

Remove redundant uses of Iterator::by_ref()

8 years agopath: remove a line of code that is not useful
Tshepang Lekhonkhobe [Wed, 30 Sep 2015 10:00:02 +0000 (12:00 +0200)]
path: remove a line of code that is not useful

8 years agoAuto merge of #28730 - apasel422:issue-21922, r=alexcrichton
bors [Wed, 30 Sep 2015 07:12:36 +0000 (07:12 +0000)]
Auto merge of #28730 - apasel422:issue-21922, r=alexcrichton

Closes #21922.

8 years agolibcxxabi is no longer necessary for libunwind
Aidan Hobson Sayers [Wed, 30 Sep 2015 06:42:34 +0000 (07:42 +0100)]
libcxxabi is no longer necessary for libunwind

8 years agodoc: fix typo
Tshepang Lekhonkhobe [Wed, 30 Sep 2015 06:39:02 +0000 (08:39 +0200)]
doc: fix typo