]> git.lizzy.rs Git - rust.git/log
rust.git
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 agorustc: Support output filenames for each emit type
Alex Crichton [Wed, 30 Sep 2015 17:08:37 +0000 (10:08 -0700)]
rustc: Support output filenames for each emit type

Currently the compiler supports the ability to emit multiple output types as
part of one compilation (e.g. asm, LLVM IR, bytecode, link, dep-info, etc). It
does not, however, support the ability to customize the output filename for each
of these output types. The `-o` flag is ignored if multiple emit types are
specified (and the compiler emits a warning about this).

Normally this doesn't matter too much, but in the case of `dep-info` it can lead
to a number of problems (e.g. see #28716). By allowing customization of the
output filename for each emit type we're able to solve the problems in that
issue.

This commit adds support for the `--emit` option to the compiler to look like:

    rustc foo.rs --emit dep-info=.deps/foo.d,link

This indicates that the `dep-info` output type will be placed at `.deps/foo.d`
and the `link` output type will otherwise be determined via the `--out-dir` and
`-o` flags.

Closes #28716

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 agoImplement `size_hint` for `EscapeDefault`
Simon Mazur [Tue, 29 Sep 2015 18:25:40 +0000 (21:25 +0300)]
Implement `size_hint` for `EscapeDefault`

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

8 years agoAuto merge of #28729 - retep998:canonical-dir, r=alexcrichton
bors [Wed, 30 Sep 2015 05:19:17 +0000 (05:19 +0000)]
Auto merge of #28729 - retep998:canonical-dir, r=alexcrichton

cc https://github.com/rust-lang/rust/issues/27706

8 years agoFix typo in docs: usize is unsigned, not signed.
Dato Simó [Wed, 30 Sep 2015 04:18:23 +0000 (01:18 -0300)]
Fix typo in docs: usize is unsigned, not signed.

8 years agoAuto merge of #28724 - tsion:remove-double-semicolons, r=alexcrichton
bors [Wed, 30 Sep 2015 03:24:00 +0000 (03:24 +0000)]
Auto merge of #28724 - tsion:remove-double-semicolons, r=alexcrichton

Really minor code cleanup, because why not?

8 years agoAuto merge of #28500 - alexcrichton:docker-travis, r=brson
bors [Wed, 30 Sep 2015 01:21:55 +0000 (01:21 +0000)]
Auto merge of #28500 - alexcrichton:docker-travis, r=brson

Travis CI has new infrastructure using the Google Compute Engine which has both
faster CPUs and more memory, and we've been encouraged to switch as it should
help our build times! The only downside currently, however, is that IPv6 is
disabled, causing a number of standard library tests to fail.

Consequently this commit tweaks our travis config in a few ways:

* ccache is disabled as it's not working on GCE just yet
* Docker is used to run tests inside which reportedly will get IPv6 working
* A system LLVM installation is used instead of building LLVM itself. This is
  primarily done to reduce build times, but we want automation for this sort of
  behavior anyway and we can extend this in the future with building from source
  as well if needed.
* gcc-specific logic is removed as the docker image for Ubuntu gives us a
  recent-enough gcc by default.

8 years agoImprove "Variable bindings" chapter
Jan Likar [Wed, 30 Sep 2015 00:42:52 +0000 (02:42 +0200)]
Improve "Variable bindings" chapter

 - 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)

8 years agoTweak Travis to use GCE
Alex Crichton [Fri, 18 Sep 2015 17:19:23 +0000 (10:19 -0700)]
Tweak Travis to use GCE

Travis CI has new infrastructure using the Google Compute Engine which has both
faster CPUs and more memory, and we've been encouraged to switch as it should
help our build times! The only downside currently, however, is that IPv6 is
disabled, causing a number of standard library tests to fail.

Consequently this commit tweaks our travis config in a few ways:

* ccache is disabled as it's not working on GCE just yet
* Docker is used to run tests inside which reportedly will get IPv6 working
* A system LLVM installation is used instead of building LLVM itself. This is
  primarily done to reduce build times, but we want automation for this sort of
  behavior anyway and we can extend this in the future with building from source
  as well if needed.
* gcc-specific logic is removed as the docker image for Ubuntu gives us a
  recent-enough gcc by default.

8 years agoAuto merge of #28702 - arielb1:metadata-versioning, r=nrc
bors [Tue, 29 Sep 2015 23:26:34 +0000 (23:26 +0000)]
Auto merge of #28702 - arielb1:metadata-versioning, r=nrc

This prevents ICEs when old crates are used with a new version of
rustc. Currently, the linking of crates compiled with different
versions of rustc is completely unsupported.

Fixes #28700

r? @nrc

8 years agoDerive `Clone` for `Peekable`
Andrew Paseltiner [Tue, 29 Sep 2015 22:35:33 +0000 (18:35 -0400)]
Derive `Clone` for `Peekable`

8 years agosacrifice a few bytes for the euv demon
Ariel Ben-Yehuda [Tue, 29 Sep 2015 21:51:12 +0000 (00:51 +0300)]
sacrifice a few bytes for the euv demon

8 years agoAuto merge of #28715 - petrochenkov:visit, r=nrc
bors [Tue, 29 Sep 2015 21:32:39 +0000 (21:32 +0000)]
Auto merge of #28715 - petrochenkov:visit, r=nrc

Some minor parts of AST and HIR were not visited by the `visit::walk_xxx` methods - some identifiers, lifetimes, loop labels, attributes of exported macros - but nothing as serious as in, for example, https://github.com/rust-lang/rust/pull/28364.
\+ Added a convenience macro for visiting lists (including Options)
\+ Removed some pre-Deref-coersions `&**` noise from visitors

r? @nrc

8 years agoAuto merge of #28623 - llogiq:faster-fasta, r=brson
bors [Tue, 29 Sep 2015 19:28:27 +0000 (19:28 +0000)]
Auto merge of #28623 - llogiq:faster-fasta, r=brson

I just removed the num_cpus dependency (because we don't want that in there), using 4 threads instead.

I should add that Veedrac asked me to submit this here in his name.

8 years agostore the rustc version in metadata and check it
Ariel Ben-Yehuda [Mon, 28 Sep 2015 04:31:45 +0000 (07:31 +0300)]
store the rustc version in metadata and check it

This prevents ICEs when old crates are used with a new version of
rustc. Currently, the linking of crates compiled with different
versions of rustc is completely unsupported.

Fixes #28700

8 years agoMake fs::canonicalize work on directories on Windows
Peter Atashian [Tue, 29 Sep 2015 18:21:39 +0000 (14:21 -0400)]
Make fs::canonicalize work on directories on Windows

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoRemove redundant uses of Iterator::by_ref()
Ulrik Sverdrup [Tue, 29 Sep 2015 15:12:42 +0000 (17:12 +0200)]
Remove redundant uses of Iterator::by_ref()

8 years agoAdd unused_attributes to unused lint group.
Lee Jeffery [Tue, 29 Sep 2015 15:44:26 +0000 (16:44 +0100)]
Add unused_attributes to unused lint group.

8 years agoAuto merge of #27273 - tshepang:claim-not-accurate, r=steveklabnik
bors [Tue, 29 Sep 2015 15:04:47 +0000 (15:04 +0000)]
Auto merge of #27273 - tshepang:claim-not-accurate, r=steveklabnik

8 years agoAdd test for #21922
Andrew Paseltiner [Tue, 29 Sep 2015 14:19:24 +0000 (10:19 -0400)]
Add test for #21922

Closes #21922.

8 years agoAdd `fmt::Debug` string escape tests
Simon Mazur [Tue, 29 Sep 2015 12:53:58 +0000 (15:53 +0300)]
Add `fmt::Debug` string escape tests

8 years agoImprove speed of `fmt::Debug` for `str` and `char`
Simon Mazur [Wed, 23 Sep 2015 23:03:47 +0000 (02:03 +0300)]
Improve speed of `fmt::Debug` for `str` and `char`

fixes #26920

8 years agoRestore `if let`s replaced with `for`s
Vadim Petrochenkov [Tue, 29 Sep 2015 08:33:25 +0000 (11:33 +0300)]
Restore `if let`s replaced with `for`s