]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agostd: Bump time margin in std::time tests
Alex Crichton [Mon, 30 Nov 2015 18:53:20 +0000 (10:53 -0800)]
std: Bump time margin in std::time tests

I believe that because Windows' unit of resolution is 100ns that this unit of
time will ensure that the assertions will hold true as it's representable in the
native format.

cc #29970

8 years agoAuto merge of #29929 - michaelwoerister:mir-repr-to-librustc, r=nikomatsakis
bors [Mon, 30 Nov 2015 14:18:28 +0000 (14:18 +0000)]
Auto merge of #29929 - michaelwoerister:mir-repr-to-librustc, r=nikomatsakis

This is done mostly so that we can refer to MIR types in csearch and other metadata related area.

Heads up, @rust-lang/compiler!

r? @nikomatsakis

8 years agoAuto merge of #30111 - GuillaumeGomez:patch-3, r=Manishearth
bors [Mon, 30 Nov 2015 10:19:49 +0000 (10:19 +0000)]
Auto merge of #30111 - GuillaumeGomez:patch-3, r=Manishearth

r? @Manishearth

cc @huonw

8 years agoReword E0492
Guillaume Gomez [Mon, 30 Nov 2015 09:29:35 +0000 (10:29 +0100)]
Reword E0492

8 years agoAlso move the MIR visitor to librustc.
Michael Woerister [Tue, 24 Nov 2015 13:35:34 +0000 (14:35 +0100)]
Also move the MIR visitor to librustc.

8 years agoMove the core MIR datastructures to librustc.
Michael Woerister [Thu, 19 Nov 2015 15:37:34 +0000 (16:37 +0100)]
Move the core MIR datastructures to librustc.

This is done mostly so that we can refer to MIR types in csearch and other metadata related area.

8 years agoAuto merge of #30101 - istankovic:fix-typos, r=steveklabnik
bors [Mon, 30 Nov 2015 00:41:13 +0000 (00:41 +0000)]
Auto merge of #30101 - istankovic:fix-typos, r=steveklabnik

Fix some typos in the docs for Peekable.

r? @steveklabnik

8 years agoAuto merge of #29976 - GuillaumeGomez:patch-5, r=Manishearth
bors [Sun, 29 Nov 2015 22:54:43 +0000 (22:54 +0000)]
Auto merge of #29976 - GuillaumeGomez:patch-5, r=Manishearth

r? @Manishearth

8 years agoAuto merge of #30088 - sourcefrog:doc-casts, r=steveklabnik
bors [Sun, 29 Nov 2015 21:10:36 +0000 (21:10 +0000)]
Auto merge of #30088 - sourcefrog:doc-casts, r=steveklabnik

Based on the description in https://github.com/rust-lang/rust/blob/219eca11b044de3644b3e9101124513c1a842b09/src/librustc_typeck/check/cast.rs#L11 and https://doc.rust-lang.org/nightly/nomicon/casts.html

8 years agoRephrased description of casting
Martin Pool [Sun, 29 Nov 2015 20:00:07 +0000 (12:00 -0800)]
Rephrased description of casting

8 years agoAdd information about numeric casts, from the nomicon
Martin Pool [Sun, 29 Nov 2015 19:54:29 +0000 (11:54 -0800)]
Add information about numeric casts, from the nomicon

8 years agoAuto merge of #30100 - jFransham:patch-1, r=steveklabnik
bors [Sun, 29 Nov 2015 18:13:17 +0000 (18:13 +0000)]
Auto merge of #30100 - jFransham:patch-1, r=steveklabnik

Fixes #30093 in the most trivial possible way.

8 years agoAuto merge of #30059 - androm3da:master, r=bluss
bors [Sun, 29 Nov 2015 16:30:15 +0000 (16:30 +0000)]
Auto merge of #30059 - androm3da:master, r=bluss

8 years agolibcore/iter: fix typos
Ivan Stankovic [Sun, 29 Nov 2015 13:52:29 +0000 (14:52 +0100)]
libcore/iter: fix typos

8 years agoFix #30093
Jack Fransham [Sun, 29 Nov 2015 13:36:01 +0000 (13:36 +0000)]
Fix #30093

8 years agoAuto merge of #30075 - kyeah:mac-span, r=sanxiyn
bors [Sun, 29 Nov 2015 06:00:05 +0000 (06:00 +0000)]
Auto merge of #30075 - kyeah:mac-span, r=sanxiyn

Fixes #28424 (item macros), #30067 (impl item macros), and pattern macros.

8 years agoUse last_span for macro spans
Kevin Yeh [Sun, 29 Nov 2015 04:36:37 +0000 (22:36 -0600)]
Use last_span for macro spans

8 years agoAdd E0492 error explanation
Guillaume Gomez [Sat, 21 Nov 2015 22:07:58 +0000 (23:07 +0100)]
Add E0492 error explanation

8 years agoAuto merge of #30092 - semarie:to_socket_addr_str_bad, r=alexcrichton
bors [Sat, 28 Nov 2015 19:57:45 +0000 (19:57 +0000)]
Auto merge of #30092 - semarie:to_socket_addr_str_bad, r=alexcrichton

I don't reproduce it on severals hosts (virtual or real), so I can't
debug it. As Bitrig has disabled this test too, I will follow the same
here.

r? @alexcrichton

8 years agoAuto merge of #29651 - tshepang:misc, r=steveklabnik
bors [Sat, 28 Nov 2015 18:09:07 +0000 (18:09 +0000)]
Auto merge of #29651 - tshepang:misc, r=steveklabnik

8 years agoAuto merge of #30074 - jonas-schievink:macro-doc, r=sanxiyn
bors [Sat, 28 Nov 2015 16:22:27 +0000 (16:22 +0000)]
Auto merge of #30074 - jonas-schievink:macro-doc, r=sanxiyn

Fixes #17616

New docs for `panic!`:
```rust
macro_rules! panic {
    () => { ... };
    ($msg:expr) => { ... };
    ($fmt:expr, $($arg:tt)+) => { ... };
}
```

New docs for `assert!`:
```rust
macro_rules! assert {
    ( $ cond : expr ) => { ... };
    (
$ cond : expr , $ ( $ arg : tt ) + ) => { ... };
}
```
<sup>not pretty, but at least it's not worse :joy:

8 years agoAdd a test
Jonas Schievink [Sat, 28 Nov 2015 13:47:12 +0000 (14:47 +0100)]
Add a test

8 years agoAuto merge of #30091 - vyp:doc-typo, r=bluss
bors [Sat, 28 Nov 2015 13:39:21 +0000 (13:39 +0000)]
Auto merge of #30091 - vyp:doc-typo, r=bluss

8 years agodisable net::addr::to_socket_addr_str_bad test under openbsd
Sébastien Marie [Sat, 28 Nov 2015 08:10:48 +0000 (09:10 +0100)]
disable net::addr::to_socket_addr_str_bad test under openbsd

I don't reproduce it on severals hosts (virtual or real), so I can't
debug it. As Bitrig has disabled this test too, I will follow the same
here.

8 years agodoc(book/ffi): remove duplicate link reference `[libc]'
xd1le [Sat, 28 Nov 2015 05:58:39 +0000 (16:58 +1100)]
doc(book/ffi): remove duplicate link reference `[libc]'

8 years agoAdd E0498 error explanation
Guillaume Gomez [Sat, 21 Nov 2015 21:24:28 +0000 (22:24 +0100)]
Add E0498 error explanation

8 years agoAttempted documentation of coercions
Martin Pool [Sat, 28 Nov 2015 01:35:12 +0000 (17:35 -0800)]
Attempted documentation of coercions

Trying to summarize here only the cases that will make sense at the
level of the rust book

8 years agoCopy in some documentation about which casts are legal
Martin Pool [Sat, 28 Nov 2015 01:10:50 +0000 (17:10 -0800)]
Copy in some documentation about which casts are legal

8 years agoAuto merge of #29383 - petrochenkov:empstr, r=pnkfelix
bors [Sat, 28 Nov 2015 00:45:34 +0000 (00:45 +0000)]
Auto merge of #29383 - petrochenkov:empstr, r=pnkfelix

Fixes https://github.com/rust-lang/rust/issues/28692
Fixes https://github.com/rust-lang/rust/issues/28992
Fixes some other similar issues (see the tests)

[breaking-change], needs crater run (cc @brson or @alexcrichton )

The pattern with parens `UnitVariant(..)` for unit variants seems to be popular in rustc (see the second commit), but mostly used by one person (@nikomatsakis), according to git blame. If it causes breakage on crates.io I'll add an exceptional case for it.

8 years agoAuto merge of #30085 - oli-obk:fix/pnkfelix_test, r=pnkfelix
bors [Fri, 27 Nov 2015 20:39:28 +0000 (20:39 +0000)]
Auto merge of #30085 - oli-obk:fix/pnkfelix_test, r=pnkfelix

for discussion see https://github.com/rust-lang/rust/pull/26848/files#r43151926

r? @pnkfelix

8 years agoAuto merge of #30064 - fhartwig:macro-suggestions, r=sanxiyn
bors [Fri, 27 Nov 2015 18:41:53 +0000 (18:41 +0000)]
Auto merge of #30064 - fhartwig:macro-suggestions, r=sanxiyn

Fixes #13677
This does the same sort of suggestion for misspelt macros that we already do for misspelt identifiers.
Example. Compiling this program:

```rust
macro_rules! foo {
    ($e:expr) => ( $e )
}

fn main() {
    fob!("hello!");
}
```

gives the following error message:

```
/Users/mcp/temp/test.rs:7:5: 7:8 error: macro undefined: 'fob!'
/Users/mcp/temp/test.rs:7     fob!("hello!");
                              ^~~
/Users/mcp/temp/test.rs:7:5: 7:8 help: did you mean `foo`?
/Users/mcp/temp/test.rs:7     fob!("hello!");
```

I had to move the levenshtein distance function into libsyntax for this. Maybe this should live somewhere else (some utility crate?), but I couldn't find a crate to put it in that is imported by libsyntax and the other rustc crates.

8 years agoIntroduce max_suggestion_distance function to avoid duplicating the heuristic
Florian Hartwig [Fri, 27 Nov 2015 16:52:29 +0000 (17:52 +0100)]
Introduce max_suggestion_distance function to avoid duplicating the heuristic

8 years agoShifted focus of while-let example per review.
ebadf [Fri, 27 Nov 2015 16:23:58 +0000 (10:23 -0600)]
Shifted focus of while-let example per review.

8 years agoAuto merge of #30082 - semarie:execve, r=alexcrichton
bors [Fri, 27 Nov 2015 15:55:05 +0000 (15:55 +0000)]
Auto merge of #30082 - semarie:execve, r=alexcrichton

under OpenBSD and Bitrig, it is an error to pass an empty argv
argument to execve(2). It results the test fail as execve(2) don't exec
and set errno to EINVAL.

instead, make argv with two arguments (in order to differenciate the
initial call, from the execve call).

r? @alexcrichton

8 years agorevert test to check runtime evaluation instead of constant evaluation
Oliver Schneider [Fri, 20 Nov 2015 14:39:50 +0000 (15:39 +0100)]
revert test to check runtime evaluation instead of constant evaluation

see https://github.com/rust-lang/rust/pull/26848/files#r43151926

8 years agopass at least one argument to execve
Sébastien Marie [Fri, 27 Nov 2015 12:48:07 +0000 (13:48 +0100)]
pass at least one argument to execve

under OpenBSD and Bitrig, it is an error to pass an empty argv
argument to execve(2). It results the test fail as execve(2) don't exec
and set errno to EINVAL.

instead, make argv with two arguments (in order to differenciate the
initial call, from the execve call).

8 years agoAuto merge of #30071 - brson:netbsd, r=alexcrichton
bors [Fri, 27 Nov 2015 01:48:12 +0000 (01:48 +0000)]
Auto merge of #30071 - brson:netbsd, r=alexcrichton

Depends on https://github.com/rust-lang/rust/pull/30015 since this branch includes `#[staged_api]` changes.

8 years agoUpdate libc. Fixes netbsd.
Brian Anderson [Thu, 26 Nov 2015 10:23:31 +0000 (10:23 +0000)]
Update libc. Fixes netbsd.

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 agoFix spans for macros
Kevin Yeh [Thu, 26 Nov 2015 19:14:10 +0000 (13:14 -0600)]
Fix spans for macros

8 years ago;
Jonas Schievink [Thu, 26 Nov 2015 20:10:04 +0000 (21:10 +0100)]
;

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 agorustdoc: only show macro arm's lhs
Jonas Schievink [Thu, 26 Nov 2015 18:14:36 +0000 (19:14 +0100)]
rustdoc: only show macro arm's lhs

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 agoAdd '!' to macro name suggestion, use fileline_help instead of span_help
Florian Hartwig [Thu, 26 Nov 2015 10:59:41 +0000 (11:59 +0100)]
Add '!' to macro name suggestion, use fileline_help instead of span_help

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 agoCorrections to the while-let example per review.
ebadf [Thu, 26 Nov 2015 02:05:45 +0000 (20:05 -0600)]
Corrections to the while-let example per review.

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 agoAdd test for macro suggestions
Florian Hartwig [Wed, 25 Nov 2015 23:36:30 +0000 (00:36 +0100)]
Add test for macro suggestions

8 years agoAdd suggestion of similar macro names to `macro undefined` error message
Florian Hartwig [Wed, 25 Nov 2015 23:21:38 +0000 (00:21 +0100)]
Add suggestion of similar macro names to `macro undefined` error message

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 agobook: miscellaneous improvements to "dining philosophers" example
Tshepang Lekhonkhobe [Thu, 5 Nov 2015 21:59:55 +0000 (23:59 +0200)]
book: miscellaneous improvements to "dining philosophers" example

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 agoUpdated "while let" example.
androm3da [Wed, 25 Nov 2015 18:46:35 +0000 (12:46 -0600)]
Updated "while let" example.

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.