]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #30077 - nrc:save-abs-crate, r=eddyb
bors [Thu, 26 Nov 2015 22:04:06 +0000 (22:04 +0000)]
Auto merge of #30077 - nrc:save-abs-crate, r=eddyb

8 years agoAuto merge of #30068 - wthrowe:unsized-pointer-impls, r=alexcrichton
bors [Thu, 26 Nov 2015 20:07:05 +0000 (20:07 +0000)]
Auto merge of #30068 - wthrowe:unsized-pointer-impls, r=alexcrichton

I'm pretty sure this code isn't actually used by the compiler, so this
is effectively a documentation change.

8 years agoAuto merge of #30043 - arielb1:split-metadata, r=nikomatsakis
bors [Thu, 26 Nov 2015 18:20:58 +0000 (18:20 +0000)]
Auto merge of #30043 - arielb1:split-metadata, r=nikomatsakis

This improves bootstrap times because of better parallelism - though I need to measure how much - and allows metadata to be modified without triggering a full recompile. This also ensures that metadata handling and the rest of rustc remain decoupled, which is a first step for switching to a new metadata format.

This is a [breaking-change] to all plugin authors because of the following renames:
 * `rustc::plugin` is now `rustc_plugin`
 * `rustc::metadata` is now `rustc_metadata`
 * Most data types from `rustc::metadata`, along with `LOCAL_CRATE`, are now in `rustc::middle::cstore`.
 * The CStore methods were split between the `rustc::middle::CrateStore` trait (and trait object) and the `rustc_metadata::cstore::CStore`, with an `Rc<CrateStore>` stored in the `Session`. The inner `CStore` can be accessed via the inner `Any` bound, but this is deprecated.

r? @nikomatsakis

8 years agofix rustc-test
Ariel Ben-Yehuda [Thu, 26 Nov 2015 17:19:54 +0000 (19:19 +0200)]
fix rustc-test

8 years agofix tidy
Ariel Ben-Yehuda [Wed, 25 Nov 2015 15:02:59 +0000 (17:02 +0200)]
fix tidy

8 years agofix tests & rustdoc
Ariel Ben-Yehuda [Tue, 24 Nov 2015 23:23:22 +0000 (01:23 +0200)]
fix tests & rustdoc

8 years agosplit the metadata code into rustc_metadata
Ariel Ben-Yehuda [Tue, 24 Nov 2015 22:00:26 +0000 (00:00 +0200)]
split the metadata code into rustc_metadata

tests & rustdoc still broken

8 years agomove librustc/plugin to librustc_plugin
Ariel Ben-Yehuda [Sun, 22 Nov 2015 20:14:09 +0000 (22:14 +0200)]
move librustc/plugin to librustc_plugin

this is a [breaking-change] to all plugin authors - sorry

8 years agomake check works
Ariel Ben-Yehuda [Sun, 22 Nov 2015 19:02:04 +0000 (21:02 +0200)]
make check works

8 years agomake CrateStore a trait object
Ariel Ben-Yehuda [Sat, 21 Nov 2015 19:39:05 +0000 (21:39 +0200)]
make CrateStore a trait object

rustdoc still broken

8 years agoremove csearch from the rest of rustc
Ariel Ben-Yehuda [Fri, 20 Nov 2015 23:08:09 +0000 (01:08 +0200)]
remove csearch from the rest of rustc

8 years agoremove csearch from resolve and typeck
Ariel Ben-Yehuda [Fri, 20 Nov 2015 15:46:39 +0000 (17:46 +0200)]
remove csearch from resolve and typeck

8 years agostop using csearch in librustc and librustc_lint
Ariel Ben-Yehuda [Fri, 20 Nov 2015 12:51:18 +0000 (14:51 +0200)]
stop using csearch in librustc and librustc_lint

8 years agoAuto merge of #30061 - tshepang:doc-time, r=brson
bors [Thu, 26 Nov 2015 14:50:36 +0000 (14:50 +0000)]
Auto merge of #30061 - tshepang:doc-time, r=brson

8 years agoAuto merge of #30054 - Ms2ger:TypeOrigin, r=eddyb
bors [Thu, 26 Nov 2015 13:07:18 +0000 (13:07 +0000)]
Auto merge of #30054 - Ms2ger:TypeOrigin, r=eddyb

8 years agoAuto merge of #30015 - petrochenkov:staged, r=brson
bors [Thu, 26 Nov 2015 10:22:37 +0000 (10:22 +0000)]
Auto merge of #30015 - petrochenkov:staged, r=brson

Closes https://github.com/rust-lang/rust/issues/30008

`#[stable]`, `#[unstable]` and `#[rustc_deprecated]` are now guarded by `#[feature(staged_api)]`

r? @brson

8 years agoUse the TypeOrigin variants qualified.
Ms2ger [Wed, 25 Nov 2015 11:41:09 +0000 (12:41 +0100)]
Use the TypeOrigin variants qualified.

8 years agoMark raw pointer Send and Sync impls ?Sized
William Throwe [Wed, 25 Nov 2015 04:39:11 +0000 (23:39 -0500)]
Mark raw pointer Send and Sync impls ?Sized

I'm pretty sure this code isn't actually used by the compiler, so this
is effectively a documentation change.

8 years agosave-analysis: use absolute paths for file names
Nick Cameron [Thu, 26 Nov 2015 05:05:32 +0000 (18:05 +1300)]
save-analysis: use absolute paths for file names

8 years agodoc: this is already mentioned in previous paragraph, and is harder to read
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:52:12 +0000 (22:52 +0200)]
doc: this is already mentioned in previous paragraph, and is harder to read

8 years agoAuto merge of #30053 - JIghtuse:master, r=steveklabnik
bors [Thu, 26 Nov 2015 00:20:37 +0000 (00:20 +0000)]
Auto merge of #30053 - JIghtuse:master, r=steveklabnik

8 years agoAuto merge of #30060 - jonas-schievink:asparagus, r=nikomatsakis
bors [Wed, 25 Nov 2015 22:31:10 +0000 (22:31 +0000)]
Auto merge of #30060 - jonas-schievink:asparagus, r=nikomatsakis

Fixes #27092
Fixes #30005

8 years agoConsider a crate staged if it has `stable` or `unstable` in its root
Vadim Petrochenkov [Wed, 25 Nov 2015 21:15:46 +0000 (00:15 +0300)]
Consider a crate staged if it has `stable` or `unstable` in its root

8 years agodoc: fix type name
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:51:01 +0000 (22:51 +0200)]
doc: fix type name

8 years agodoc: add a pause
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:50:47 +0000 (22:50 +0200)]
doc: add a pause

8 years agodoc: split overlong sentence
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:47:17 +0000 (22:47 +0200)]
doc: split overlong sentence

8 years agodoc: add missing commas
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:46:39 +0000 (22:46 +0200)]
doc: add missing commas

8 years agodoc: fix grammar
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:45:39 +0000 (22:45 +0200)]
doc: fix grammar

8 years agodoc: remove info repeated on next paragraph
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:45:14 +0000 (22:45 +0200)]
doc: remove info repeated on next paragraph

8 years agoAuto merge of #30017 - nrc:fmt, r=brson
bors [Wed, 25 Nov 2015 20:40:27 +0000 (20:40 +0000)]
Auto merge of #30017 - nrc:fmt, r=brson

8 years agoAdd a test
Jonas Schievink [Wed, 25 Nov 2015 20:01:23 +0000 (21:01 +0100)]
Add a test

8 years agoFix "Cannot fill in a NT" ICE
Jonas Schievink [Wed, 25 Nov 2015 19:58:57 +0000 (20:58 +0100)]
Fix "Cannot fill in a NT" ICE

8 years agoUpdate liblibc
Vadim Petrochenkov [Wed, 25 Nov 2015 19:38:54 +0000 (22:38 +0300)]
Update liblibc

8 years agoRemove all uses of `#[staged_api]`
Vadim Petrochenkov [Mon, 23 Nov 2015 22:52:55 +0000 (01:52 +0300)]
Remove all uses of `#[staged_api]`

8 years agoRemove `#[staged_api]`
Vadim Petrochenkov [Mon, 23 Nov 2015 22:51:58 +0000 (01:51 +0300)]
Remove `#[staged_api]`

8 years agoAuto merge of #30044 - nikomatsakis:issue-29466, r=arielb1
bors [Wed, 25 Nov 2015 18:49:56 +0000 (18:49 +0000)]
Auto merge of #30044 - nikomatsakis:issue-29466, r=arielb1

The graph extent mechanism is not good. I have some ideas for a better replacement, but this PR simply removes it. It also stops recursing on statement scopes and processes them using an "on the heap" stack, which fixes #29466.

r? @dotdash

8 years agoAuto merge of #30030 - steveklabnik:doc_std_char, r=brson
bors [Wed, 25 Nov 2015 16:05:49 +0000 (16:05 +0000)]
Auto merge of #30030 - steveklabnik:doc_std_char, r=brson

Part of #29428

8 years agoImprove docs for std::char
Steve Klabnik [Tue, 24 Nov 2015 16:49:19 +0000 (11:49 -0500)]
Improve docs for std::char

Part of #29428

8 years agoAuto merge of #30052 - Ryman:bind_docs, r=apasel422
bors [Wed, 25 Nov 2015 13:18:16 +0000 (13:18 +0000)]
Auto merge of #30052 - Ryman:bind_docs, r=apasel422

`socket_addr` was renamed to `local_addr` in 1.0beta.

See: f798674b86382929ca17c88de422a6e2fdb27f2a

r? @steveklabnik

8 years agoFix docs for TcpListener::bind
Kevin Butler [Tue, 24 Nov 2015 23:13:07 +0000 (23:13 +0000)]
Fix docs for TcpListener::bind

`socket_addr` was renamed to `local_addr` in 1.0beta.

See: f798674b86382929ca17c88de422a6e2fdb27f2a

8 years agoAuto merge of #30034 - brson:rust_path, r=alexcrichton
bors [Wed, 25 Nov 2015 08:14:39 +0000 (08:14 +0000)]
Auto merge of #30034 - brson:rust_path, r=alexcrichton

This was to support rustpkg but is unused now.

8 years agotrpl: Fix example logic in error handling chapter
Boris Egorov [Wed, 25 Nov 2015 07:59:21 +0000 (13:59 +0600)]
trpl: Fix example logic in error handling chapter

8 years agoAuto merge of #30049 - Manishearth:rollup, r=Manishearth
bors [Wed, 25 Nov 2015 05:43:43 +0000 (05:43 +0000)]
Auto merge of #30049 - Manishearth:rollup, r=Manishearth

- Successful merges: #30013, #30038, #30040
- Failed merges: #30030

8 years agoRollup merge of #30040 - apasel422:issue-30031, r=brson
Manish Goregaokar [Wed, 25 Nov 2015 03:51:19 +0000 (09:21 +0530)]
Rollup merge of #30040 - apasel422:issue-30031, r=brson

Closes #30031.

8 years agoRollup merge of #30038 - Carreau:cargo-philosopher, r=steveklabnik
Manish Goregaokar [Wed, 25 Nov 2015 03:51:18 +0000 (09:21 +0530)]
Rollup merge of #30038 - Carreau:cargo-philosopher, r=steveklabnik

At this point of the book, reader have likely use `cargo new --bin`,
likely 2 times, once if they are lazy. This remind them of the `cargo`
syntax.

I was myself unsure whether it was `cargo create`, `cargo new`, and
whether it would initialize in current working directory or needed a
target.

--

Otherwise thanks, I've been writing rust for a few hours, and likes it so far.

8 years agoRollup merge of #30013 - steveklabnik:doc_char, r=brson
Manish Goregaokar [Wed, 25 Nov 2015 03:51:18 +0000 (09:21 +0530)]
Rollup merge of #30013 - steveklabnik:doc_char, r=brson

Part of https://github.com/rust-lang/rust/issues/29333

8 years agoAuto merge of #30011 - jonas-schievink:macro-context, r=nrc
bors [Wed, 25 Nov 2015 03:02:05 +0000 (03:02 +0000)]
Auto merge of #30011 - jonas-schievink:macro-context, r=nrc

Fixes #22425

Also fixes #30007, since it's just a change from `true` to `false`.

8 years agoAuto merge of #29687 - Havvy:ux-guidelines, r=pnkfelix
bors [Wed, 25 Nov 2015 01:14:43 +0000 (01:14 +0000)]
Auto merge of #29687 - Havvy:ux-guidelines, r=pnkfelix

See https://github.com/rust-lang/rfcs/pull/1246 for discussion.

8 years agoRewrite stmt processing not to recurse to avoid stack overflow if there
Niko Matsakis [Tue, 24 Nov 2015 22:24:21 +0000 (17:24 -0500)]
Rewrite stmt processing not to recurse to avoid stack overflow if there
are tons of let statements. Fixes #29466.

8 years agoAuto merge of #30016 - alexcrichton:fix-off-by-one, r=brson
bors [Tue, 24 Nov 2015 23:24:18 +0000 (23:24 +0000)]
Auto merge of #30016 - alexcrichton:fix-off-by-one, r=brson

Typical algebra currently doesn't work on the types in std::time currently (see
[this comment][comment]), so tweak the tests to account for this property.

[comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-159093809

Closes #29970

8 years agoRemove the GraphExtents, the design of which seems bogus. They carried
Niko Matsakis [Thu, 19 Nov 2015 10:54:27 +0000 (05:54 -0500)]
Remove the GraphExtents, the design of which seems bogus. They carried
the right information, but it's hard to maintain in the face of
optimizations, and in the form that the analyses probably actually want.

8 years agoAdd some comments to Mir struct.
Niko Matsakis [Thu, 12 Nov 2015 19:29:23 +0000 (14:29 -0500)]
Add some comments to Mir struct.

8 years agoAdd overflow check to `arc::Weak::upgrade`
Andrew Paseltiner [Tue, 24 Nov 2015 21:40:25 +0000 (16:40 -0500)]
Add overflow check to `arc::Weak::upgrade`

Closes #30031.

8 years agoAuto merge of #30009 - apasel422:tests, r=alexcrichton
bors [Tue, 24 Nov 2015 21:36:54 +0000 (21:36 +0000)]
Auto merge of #30009 - apasel422:tests, r=alexcrichton

Closes #25810.
Closes #29276.

r? @alexcrichton

8 years agoAdd cargo instructions for dinning_philosopher project
Matthias Bussonnier [Tue, 24 Nov 2015 20:58:18 +0000 (21:58 +0100)]
Add cargo instructions for dinning_philosopher project

At this point of the book, reader have likely use `cargo new --bin`,
likely 2 times, once if they are lazy. This remind them of the `cargo`
syntax.

I was myself unsure whether it was `cargo create`, `cargo new`, and
whether it would initialize in current working directory or needed a
target.

8 years agoAuto merge of #29960 - aturon:dismantle-traitref-subtyping, r=nikomatsakis
bors [Tue, 24 Nov 2015 19:46:59 +0000 (19:46 +0000)]
Auto merge of #29960 - aturon:dismantle-traitref-subtyping, r=nikomatsakis

Trait references are always invariant, so all uses of subtyping between
them are equivalent to using equality.

Moreover, the overlap check was previously performed twice per impl
pair, once in each direction. It is now performed only once, and
internally uses the equality check.

On glium, a crate that spends some time in coherence, this change sped
up coherence checking by a few percent (not very significant).

r? @nikomatsakis

8 years agoRemove RUST_PATH from compiler
Brian Anderson [Tue, 24 Nov 2015 19:37:40 +0000 (19:37 +0000)]
Remove RUST_PATH from compiler

This was to support rustpkg but is unused now.

8 years agoFix up docs for char
Steve Klabnik [Mon, 23 Nov 2015 21:56:07 +0000 (16:56 -0500)]
Fix up docs for char

Part of https://github.com/rust-lang/rust/issues/29333

8 years agoAuto merge of #30028 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 24 Nov 2015 17:10:55 +0000 (17:10 +0000)]
Auto merge of #30028 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29397, #29933, #30004, #30019, #30020, #30023
- Failed merges:

8 years agoFix test failures
Jonas Schievink [Tue, 24 Nov 2015 16:46:10 +0000 (17:46 +0100)]
Fix test failures

8 years agoRemove "this"
Jonas Schievink [Tue, 24 Nov 2015 15:34:48 +0000 (16:34 +0100)]
Remove "this"

8 years agoRollup merge of #30023 - Ms2ger:EntryOrExit, r=Manishearth
Steve Klabnik [Tue, 24 Nov 2015 14:43:47 +0000 (09:43 -0500)]
Rollup merge of #30023 - Ms2ger:EntryOrExit, r=Manishearth

8 years agoRollup merge of #30020 - Manishearth:unit, r=bluss
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30020 - Manishearth:unit, r=bluss

`unit` was in code formatting, which is wrong, since it's not actual code. The correct code is `()`.

8 years agoRollup merge of #30019 - alex:patch-1, r=steveklabnik
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30019 - alex:patch-1, r=steveklabnik

looks like a case of mixed tabs and spaces

8 years agoRollup merge of #30004 - michaelwoerister:primitive-ty-to-str, r=alexcrichton
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30004 - michaelwoerister:primitive-ty-to-str, r=alexcrichton

Good candidate for a rollup, this one.

8 years agoRollup merge of #29933 - tbu-:pr_dont_opt_in_copy, r=nikomatsakis
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #29933 - tbu-:pr_dont_opt_in_copy, r=nikomatsakis

It was introduced with the change that made copy opt-in. The
implementation gives a warning, because the struct contains a raw
pointer.

8 years agoRollup merge of #29397 - dylanmckay:llvmdeps-deps, r=brson
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #29397 - dylanmckay:llvmdeps-deps, r=brson

Previously the file was not regenrated upon modification of `src/rustllvm` or others.

Now it will be rebuilt if `src/llvm` or `src/rustllvm` is touched.

Also added *.rs rule to 'clean' rule so that it is removed upon 'make
clean'.

Fixes #28614.

8 years agoAuto merge of #29934 - arielb1:constrained-projection-2, r=nikomatsakis
bors [Tue, 24 Nov 2015 14:30:46 +0000 (14:30 +0000)]
Auto merge of #29934 - arielb1:constrained-projection-2, r=nikomatsakis

Fixes #29861 - it was a bug I accidentally introduced in #26275.

r? @nikomatsakis

8 years agoUse the EntryOrExit variants qualified.
Ms2ger [Tue, 24 Nov 2015 12:06:12 +0000 (13:06 +0100)]
Use the EntryOrExit variants qualified.

8 years agoAuto merge of #30012 - jonas-schievink:log-level-trace, r=alexcrichton
bors [Tue, 24 Nov 2015 11:10:22 +0000 (11:10 +0000)]
Auto merge of #30012 - jonas-schievink:log-level-trace, r=alexcrichton

The `log` crate on crates.io already knows `TRACE`, but the internal liblog doesn't, which causes it to spew errors when a `TRACE` level is defined. I made `TRACE` behave like `DEBUG`.

8 years agoAuto merge of #30000 - Manishearth:unreachable-call, r=nrc
bors [Tue, 24 Nov 2015 06:58:25 +0000 (06:58 +0000)]
Auto merge of #30000 - Manishearth:unreachable-call, r=nrc

Fixes #1889

8 years agoUpdate reference.md
Manish Goregaokar [Tue, 24 Nov 2015 06:26:27 +0000 (11:56 +0530)]
Update reference.md

8 years agofixed inconsistent indentation in book example
Alex Gaynor [Tue, 24 Nov 2015 06:24:27 +0000 (01:24 -0500)]
fixed inconsistent indentation in book example

looks like a case of mixed tabs and spaces

8 years agoFix unreachable code in libsyntax
Manish Goregaokar [Tue, 24 Nov 2015 01:53:53 +0000 (07:23 +0530)]
Fix unreachable code in libsyntax

8 years agoAuto merge of #30006 - ntrepid8:skip-check-for-DYLD-libs-in-child-proc, r=alexcrichton
bors [Tue, 24 Nov 2015 04:26:47 +0000 (04:26 +0000)]
Auto merge of #30006 - ntrepid8:skip-check-for-DYLD-libs-in-child-proc, r=alexcrichton

link: https://forums.developer.apple.com/thread/9233
The causes a test in `src/libstd/process.rs' to fail when those environment variables are not found in the child process.  This PR skips those variables similar to how the Windows envars that start with `=` are skipped.

8 years agorustfmt: libflate, libfmt_macros, libgetopts, libgraphviz, liblog, librand
Nick Cameron [Mon, 23 Nov 2015 23:11:20 +0000 (12:11 +1300)]
rustfmt: libflate, libfmt_macros, libgetopts, libgraphviz, liblog, librand

8 years agoAuto merge of #30001 - Detegr:master, r=Manishearth
bors [Tue, 24 Nov 2015 01:42:31 +0000 (01:42 +0000)]
Auto merge of #30001 - Detegr:master, r=Manishearth

r? @Manishearth

8 years agostd: Tweak tests of std::time
Alex Crichton [Mon, 23 Nov 2015 22:51:45 +0000 (14:51 -0800)]
std: Tweak tests of std::time

Typical algebra currently doesn't work on the types in std::time currently (see
[this comment][comment]), so tweak the tests to account for this property.

[comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-159093809

Closes #29970

8 years agorustfmt libcollections
Nick Cameron [Mon, 23 Nov 2015 22:23:48 +0000 (11:23 +1300)]
rustfmt libcollections

8 years agoAuto merge of #29955 - bltavares:makefile-29554, r=brson
bors [Mon, 23 Nov 2015 22:53:14 +0000 (22:53 +0000)]
Auto merge of #29955 - bltavares:makefile-29554, r=brson

Reference #29554

8 years agorustfmt: liballoc, liballoc_*, libarena
Nick Cameron [Mon, 23 Nov 2015 02:32:40 +0000 (15:32 +1300)]
rustfmt: liballoc, liballoc_*, libarena

8 years agoAdd TRACE to the known log levels
Jonas Schievink [Mon, 23 Nov 2015 21:09:40 +0000 (22:09 +0100)]
Add TRACE to the known log levels

The `log` crate on crates.io already knows TRACE, but the internal
liblog doesn't, which causes it to spew errors when a TRACE level is
defined.

8 years agoMake unreachable_code lint warn on diverging call arguments as well
Manish Goregaokar [Mon, 23 Nov 2015 13:55:57 +0000 (19:25 +0530)]
Make unreachable_code lint warn on diverging call arguments as well

Fixes #1889

8 years agoAuto merge of #29952 - petrochenkov:depr, r=brson
bors [Mon, 23 Nov 2015 20:08:49 +0000 (20:08 +0000)]
Auto merge of #29952 - petrochenkov:depr, r=brson

Part of https://github.com/rust-lang/rust/issues/29935

The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things.

8 years agoPrint the macro context name on incomplete parse
Jonas Schievink [Mon, 23 Nov 2015 20:06:51 +0000 (21:06 +0100)]
Print the macro context name on incomplete parse

Fixes #22425

Also fixes #30007, since it's just a change from `true` to `false`.

8 years agoAdd tests for #25810 and #29276
Andrew Paseltiner [Mon, 23 Nov 2015 19:57:28 +0000 (14:57 -0500)]
Add tests for #25810 and #29276

Closes #25810.
Closes #29276.

8 years agoskip check for DYLD envars in child proc
Josh Austin [Mon, 23 Nov 2015 19:08:52 +0000 (14:08 -0500)]
skip check for DYLD envars in child proc

8 years agoAdd compile-fail test for issue #10969
Antti Keränen [Mon, 23 Nov 2015 19:06:08 +0000 (21:06 +0200)]
Add compile-fail test for issue #10969

8 years agoAuto merge of #29530 - jseyfried:resolve, r=nikomatsakis
bors [Mon, 23 Nov 2015 17:31:19 +0000 (17:31 +0000)]
Auto merge of #29530 - jseyfried:resolve, r=nikomatsakis

Replace `TypeNsDef` and `ValueNsDef` with a more general type `NsDef`.

Define a newtype `NameBinding` for `Rc<RefCell<Option<NsDef>>>` and refactor `NameBindings` to be a `NameBinding` for each namespace.

Replace uses of `NameBindings` with `NameBinding` where only one binding is being used (in `NamespaceResult`, `Target,` etc).

Refactor away `resolve_definition_of_name_in_module` and `NameDefinition`, fixing issue #4952.

8 years agoAvoid some code duplication around getting names of numeric types.
Michael Woerister [Mon, 23 Nov 2015 14:59:36 +0000 (15:59 +0100)]
Avoid some code duplication around getting names of numeric types.

8 years agoAdd a note when trying to call a non-function
Antti Keränen [Mon, 23 Nov 2015 14:48:55 +0000 (16:48 +0200)]
Add a note when trying to call a non-function

The note added tells the definition location of the non-function
that is being called. Fixes #10969

8 years agoAuto merge of #29998 - fiveop:patch-1, r=steveklabnik
bors [Mon, 23 Nov 2015 14:37:35 +0000 (14:37 +0000)]
Auto merge of #29998 - fiveop:patch-1, r=steveklabnik

8 years agowording: results don't fail
Philipp Matthias Schäfer [Mon, 23 Nov 2015 08:39:58 +0000 (09:39 +0100)]
wording: results don't fail

8 years agoAuto merge of #29984 - Manishearth:slice-assert, r=alexcrichton
bors [Mon, 23 Nov 2015 06:27:49 +0000 (06:27 +0000)]
Auto merge of #29984 - Manishearth:slice-assert, r=alexcrichton

I'd like to have the message print out the index and length values like it does elsewhere, but I'm not sure how to do that without affecting perf here. Will `assert!(cond, "index out of bounds got {} but len is ", idx, len)` make things slower? It calls `panic_fmt` which is marked as cold but also calls `format_args!`, and I don't know if that allocates or does any heavy lifting.

cc @alexcrichton @Gankro

8 years agoImprove slice indexing assertion
Manish Goregaokar [Sun, 22 Nov 2015 13:14:37 +0000 (18:44 +0530)]
Improve slice indexing assertion

8 years agoMark slice_error_fail as a cold path
Manish Goregaokar [Mon, 23 Nov 2015 04:04:01 +0000 (09:34 +0530)]
Mark slice_error_fail as a cold path

8 years agoAuto merge of #28907 - SingingTree:rustfmt_libterm, r=nrc
bors [Sun, 22 Nov 2015 23:01:56 +0000 (23:01 +0000)]
Auto merge of #28907 - SingingTree:rustfmt_libterm, r=nrc

Hey hey,

This is the result of running rustfmt over the libterm module. The first commit reflects the unaltered changes from rustfmt, and the commit message contains some notes on areas where I thought rustfmt had behaved strangely. The second commit attempts to fix the strange areas from the first commit.

Clarification edit: there are still some areas where I think rustfmt has made changes which may merit discussion (one is noted in the comments below). My second commit only undoes the changes that I figured would not warrant discussion (based on my opinion of the style, which is of course subjective).

r? @nrc

8 years agoAuto merge of #29964 - alexcrichton:update-libc, r=brson
bors [Sun, 22 Nov 2015 21:17:57 +0000 (21:17 +0000)]
Auto merge of #29964 - alexcrichton:update-libc, r=brson

Includes rust-lang-nursery/libc#66 which should:

Closes #29818
Closes #29956

8 years agolibc: Update to master
Alex Crichton [Fri, 20 Nov 2015 22:17:27 +0000 (14:17 -0800)]
libc: Update to master

Includes rust-lang-nursery/libc#66 which should:

Closes #29956

8 years agoAuto merge of #29983 - tbu-:pr_env_windows_hidden_variables, r=alexcrichton
bors [Sun, 22 Nov 2015 18:34:13 +0000 (18:34 +0000)]
Auto merge of #29983 - tbu-:pr_env_windows_hidden_variables, r=alexcrichton

Fixes #29972.