]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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 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 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 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 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

8 years agoAuto merge of #28723 - carols10cents:0-or-O-or-o, r=steveklabnik
bors [Tue, 29 Sep 2015 03:38:52 +0000 (03:38 +0000)]
Auto merge of #28723 - carols10cents:0-or-O-or-o, r=steveklabnik

Especially when documenting the use of `0`, since zero looks very
similar to `O` in fonts not meant for displaying code.

Other literal characters, traits, etc should also use code formatting.
This change makes this documentation more internally consistent.

Before this change, circled is the character I was using this documentation to find out about and that confused me when it wasn't immediately clear what character it was:

<img width="1013" alt="screen shot 2015-09-28 at 10 13 31 pm" src="https://cloud.githubusercontent.com/assets/193874/10154708/c70815fe-6638-11e5-9acc-57c73a524203.png">

After this change:

<img width="981" alt="screen shot 2015-09-28 at 11 26 35 pm" src="https://cloud.githubusercontent.com/assets/193874/10154710/ce73eeb2-6638-11e5-98f7-902f58679316.png">

I ran `make check-docs` and didn't break anything :star:

8 years agoUse code formatting for code-relevant values in std::fmt docs
Carol (Nichols || Goulding) [Tue, 29 Sep 2015 02:23:16 +0000 (22:23 -0400)]
Use code formatting for code-relevant values in std::fmt docs

Especially when documenting the use of `0`, since zero looks very
similar to `O` in fonts not meant for displaying code.

Other literal characters, traits, etc should also use code formatting.
This change makes this documentation more internally consistent.

8 years agoAuto merge of #28707 - apasel422:issue-24389, r=alexcrichton
bors [Tue, 29 Sep 2015 01:45:33 +0000 (01:45 +0000)]
Auto merge of #28707 - apasel422:issue-24389, r=alexcrichton

Closes #24389.

8 years agoMinor code cleanup.
Scott Olson [Mon, 28 Sep 2015 02:26:12 +0000 (20:26 -0600)]
Minor code cleanup.

8 years agoAuto merge of #28705 - marti1125:master, r=steveklabnik
bors [Mon, 28 Sep 2015 23:56:41 +0000 (23:56 +0000)]
Auto merge of #28705 - marti1125:master, r=steveklabnik

#28701

8 years agoFill in some missing parts in the default HIR visitor
Vadim Petrochenkov [Mon, 28 Sep 2015 21:23:54 +0000 (00:23 +0300)]
Fill in some missing parts in the default HIR visitor

8 years agoAuto merge of #28703 - gavinb:master, r=alexcrichton
bors [Mon, 28 Sep 2015 21:08:40 +0000 (21:08 +0000)]
Auto merge of #28703 - gavinb:master, r=alexcrichton

Tests invoking a static method using a type alias.

Closes #11047

8 years agoFill in some missing parts in the default AST visitor
Vadim Petrochenkov [Mon, 28 Sep 2015 11:26:26 +0000 (14:26 +0300)]
Fill in some missing parts in the default AST visitor
+ Add helper macro for walking lists (including Options)

8 years agoAuto merge of #28691 - utkarshkukreti:add-path_max-to-liblibc, r=alexcrichton
bors [Mon, 28 Sep 2015 18:40:35 +0000 (18:40 +0000)]
Auto merge of #28691 - utkarshkukreti:add-path_max-to-liblibc, r=alexcrichton

PATH_MAX is defined for OSX and various BSDs but not Linux right now.

[Source for the value.](https://github.com/torvalds/linux/blob/9ffecb10283508260936b96022d4ee43a7798b4c/include/uapi/linux/limits.h#L12)

8 years agoAdd test for #24389
Andrew Paseltiner [Mon, 28 Sep 2015 17:39:29 +0000 (13:39 -0400)]
Add test for #24389

Closes #24389.

8 years agofixes #17017 (update padding:11px line 142 of rustbook.css)
Willy Aguirre [Mon, 28 Sep 2015 17:11:18 +0000 (12:11 -0500)]
fixes #17017 (update padding:11px line 142 of rustbook.css)

8 years agoAuto merge of #28668 - alexcrichton:crossing-with-jemalloc, r=nrc
bors [Mon, 28 Sep 2015 15:58:44 +0000 (15:58 +0000)]
Auto merge of #28668 - alexcrichton:crossing-with-jemalloc, r=nrc

This commit updates the compiler to not attempt to use jemalloc for platforms
where jemalloc is never enabled. Currently the compiler attempts to link in
jemalloc based on whether `--disable-jemalloc` was specified at build time for
the compiler itself, but this is only the right decision for the host target,
not for other targets.

This still leaves a hole open where a set of target libraries are downloaded
which were built with `--disable-jemalloc` and the compiler is unaware of that,
but this is a pretty rare case so it can always be fixed later.

8 years agoremove a sentence #28701
Willy Aguirre [Mon, 28 Sep 2015 15:46:50 +0000 (10:46 -0500)]
remove a sentence #28701

8 years agoTest case for Issue 11047
Gavin Baker [Mon, 28 Sep 2015 12:33:29 +0000 (22:33 +1000)]
Test case for Issue 11047

Tests invoking a static method using a type alias

8 years agoAdd PATH_MAX to liblibc's Linux bindings.
Utkarsh Kukreti [Sun, 27 Sep 2015 15:36:54 +0000 (21:06 +0530)]
Add PATH_MAX to liblibc's Linux bindings.

8 years agoAuto merge of #28689 - Manishearth:rollup, r=Manishearth
bors [Sun, 27 Sep 2015 11:01:11 +0000 (11:01 +0000)]
Auto merge of #28689 - Manishearth:rollup, r=Manishearth

- Successful merges: #28664, #28673, #28681, #28682, #28688
- Failed merges:

8 years agoRollup merge of #28688 - Manishearth:fix-primitives-search, r=eddyb
Manish Goregaokar [Sun, 27 Sep 2015 09:35:18 +0000 (15:05 +0530)]
Rollup merge of #28688 - Manishearth:fix-primitives-search, r=eddyb

None

8 years agoRollup merge of #28682 - apasel422:features, r=steveklabnik
Manish Goregaokar [Sun, 27 Sep 2015 09:35:18 +0000 (15:05 +0530)]
Rollup merge of #28682 - apasel422:features, r=steveklabnik

8 years agoRollup merge of #28681 - arielb1:destructor-fixes, r=eddyb
Manish Goregaokar [Sun, 27 Sep 2015 09:35:17 +0000 (15:05 +0530)]
Rollup merge of #28681 - arielb1:destructor-fixes, r=eddyb

Fixes #28568

r? @eddyb

8 years agoRollup merge of #28673 - wthrowe:bad-archive, r=alexcrichton
Manish Goregaokar [Sun, 27 Sep 2015 09:35:17 +0000 (15:05 +0530)]
Rollup merge of #28673 - wthrowe:bad-archive, r=alexcrichton

8 years agoRollup merge of #28664 - apasel422:collections-debug, r=alexcrichton
Manish Goregaokar [Sun, 27 Sep 2015 09:35:17 +0000 (15:05 +0530)]
Rollup merge of #28664 - apasel422:collections-debug, r=alexcrichton