]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #30593 - steveklabnik:small_rc_refactoring, r=Gankro
bors [Thu, 31 Dec 2015 11:42:16 +0000 (11:42 +0000)]
Auto merge of #30593 - steveklabnik:small_rc_refactoring, r=Gankro

This hairy conditional doesn't need to be so. It _does_ need to be a
thin pointer, otherwise, it will fail to compile, so let's pull that out
into a temporary for future readers of the source.

/cc @nrc @SimonSapin @Gankro @durka , who brought this up on IRC

8 years agoAuto merge of #30641 - tsion:match-range, r=eddyb
bors [Thu, 31 Dec 2015 09:40:02 +0000 (09:40 +0000)]
Auto merge of #30641 - tsion:match-range, r=eddyb

The previous version using `PartialOrd::le` was broken since it passed `T` arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be used with chars and numeric types.

r? @eddyb

8 years agoAuto merge of #30598 - est31:macro_export_help_note, r=Manishearth
bors [Thu, 31 Dec 2015 06:16:12 +0000 (06:16 +0000)]
Auto merge of #30598 - est31:macro_export_help_note, r=Manishearth

The current help message is too much about "normal" macros to be used
as general message. Keep it for normal macros, and add custom help and
error messages for macro definitions.

8 years agoAuto merge of #30586 - nagisa:mir-cast, r=arielb1
bors [Thu, 31 Dec 2015 03:01:00 +0000 (03:01 +0000)]
Auto merge of #30586 - nagisa:mir-cast, r=arielb1

I think that should pretty much conclude all of https://github.com/rust-lang/rust/issues/29576.

8 years agoAuto merge of #30585 - Ms2ger:ExplicitSelfCategory, r=brson
bors [Thu, 31 Dec 2015 01:12:38 +0000 (01:12 +0000)]
Auto merge of #30585 - Ms2ger:ExplicitSelfCategory, r=brson

8 years agoAuto merge of #30375 - aaronkeen:issue_28777, r=eddyb
bors [Wed, 30 Dec 2015 23:20:12 +0000 (23:20 +0000)]
Auto merge of #30375 - aaronkeen:issue_28777, r=eddyb

RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to
contain braces.

https://github.com/rust-lang/rust/issues/28777

8 years agoMerge pull request #30643 from dhuseby/snaps_2015-12-18-3391630
Dave Huseby [Wed, 30 Dec 2015 22:33:33 +0000 (14:33 -0800)]
Merge pull request #30643 from dhuseby/snaps_2015-12-18-3391630

Fixes #30521 and #30627 by adding new snapshots
edunham uploaded the snapshots.

8 years agoAuto merge of #30467 - shahn:master, r=brson
bors [Wed, 30 Dec 2015 19:37:53 +0000 (19:37 +0000)]
Auto merge of #30467 - shahn:master, r=brson

This adds a constructor for a Weak that can never be upgraded. These are
mostly useless, but for example are required when deserializing.

8 years agoSmall refactoring to make this code more clear
Steve Klabnik [Mon, 28 Dec 2015 20:28:46 +0000 (15:28 -0500)]
Small refactoring to make this code more clear

This hairy conditional doesn't need to be so. It _does_ need to be a
thin pointer, otherwise, it will fail to compile, so let's pull that out
into a temporary for future readers of the source.

Also, after a discussion with @pnkfelix and @gankro, we don't need these
null checks anymore, as zero-on-drop has been gone for a while now.

8 years agoFixes #30521 and #30627 by adding new snapshots
Dave Huseby [Wed, 30 Dec 2015 17:02:02 +0000 (09:02 -0800)]
Fixes #30521 and #30627 by adding new snapshots

8 years agoAdd test for MIR range matching.
Scott Olson [Wed, 30 Dec 2015 16:28:45 +0000 (10:28 -0600)]
Add test for MIR range matching.

8 years agoUse built-in comparisons for range matching in MIR.
Scott Olson [Wed, 30 Dec 2015 16:25:35 +0000 (10:25 -0600)]
Use built-in comparisons for range matching in MIR.

The previous version using `PartialOrd::le` was broken since it passed `T`
arguments where `&T` was expected.

It makes sense to use primitive comparisons since range patterns can only be
used with chars and numeric types.

8 years agoAuto merge of #30640 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Dec 2015 16:07:08 +0000 (16:07 +0000)]
Auto merge of #30640 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30373, #30502, #30511, #30546, #30556, #30620
- Failed merges:

8 years agoLimit line length to below 100 chars
est31 [Wed, 30 Dec 2015 15:27:55 +0000 (16:27 +0100)]
Limit line length to below 100 chars

8 years agoMove pub-{item,methd}-macro.rs to the parse-fail subdir as well
est31 [Tue, 29 Dec 2015 13:19:08 +0000 (14:19 +0100)]
Move pub-{item,methd}-macro.rs to the parse-fail subdir as well

8 years agoMove pub-macro-rules.rs test to parse-fail directory
est31 [Tue, 29 Dec 2015 13:00:38 +0000 (14:00 +0100)]
Move pub-macro-rules.rs test to parse-fail directory

8 years agowhitespace after colon, not before
est31 [Tue, 29 Dec 2015 12:59:19 +0000 (13:59 +0100)]
whitespace after colon, not before

8 years agoCustom help message for people trying to make macro public
est31 [Mon, 28 Dec 2015 04:31:11 +0000 (05:31 +0100)]
Custom help message for people trying to make macro public

The current help message is too much about "normal" macros to be used
as general message. Keep it for normal macros, and add custom help and
error messages for macro definitions.

8 years agoRollup merge of #30620 - salty-horse:an_mut, r=brson
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30620 - salty-horse:an_mut, r=brson

As discussed in issue #30568.

8 years agoRollup merge of #30556 - nodakai:patch-1, r=brson
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30556 - nodakai:patch-1, r=brson

Use proper URLs as given by Github.

So far we relied on redirect by Github which is not guaranteed to work.

8 years agoRollup merge of #30546 - tshepang:add-links, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30546 - tshepang:add-links, r=steveklabnik

8 years agoRollup merge of #30511 - defyrlt:issue_30507, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30511 - defyrlt:issue_30507, r=steveklabnik

Resolves #30507

r? @steveklabnik

8 years agoRollup merge of #30502 - Luke-Nukem:master, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30502 - Luke-Nukem:master, r=steveklabnik

Rewrite of a paragraph in in the `match` section.

The colon `:` should be used only when the sentence preceeding it is a
complete sentence. If this is not the case, then a `;` should be used;
this denotes that the following fragment is a part of the previous
fragment.

I got a new bike; it has two wheels. (Similar to I got a new bike, it has two wheels)
The ice cream truck has great flavours; blueberry, blackberry, berryberry.

Writing a complete sentence:
- with a list under it
- You can join two sentences with it: Much like this.

r? @steveklabnik

8 years agoRollup merge of #30373 - ChrisBuchholz:master, r=steveklabnik
Steve Klabnik [Wed, 30 Dec 2015 14:24:24 +0000 (09:24 -0500)]
Rollup merge of #30373 - ChrisBuchholz:master, r=steveklabnik

The current explanation for scan() is not very clear as to how it works, especially when it compares itself to fold().

I believe these changes makes it all a bit more clear for the reader, and makes it easier to understand the example code.

r? @steveklabnik

8 years agoAuto merge of #30526 - Ms2ger:PathParameters, r=brson
bors [Wed, 30 Dec 2015 14:19:08 +0000 (14:19 +0000)]
Auto merge of #30526 - Ms2ger:PathParameters, r=brson

8 years agoAuto merge of #30542 - nrc:errs-base, r=nagisa
bors [Wed, 30 Dec 2015 12:27:10 +0000 (12:27 +0000)]
Auto merge of #30542 - nrc:errs-base, r=nagisa

As discussed [here](https://internals.rust-lang.org/t/more-structured-errors/3005)

r? @nikomatsakis or anyone else on the @rust-lang/compiler team

8 years agodoc: add graves
Tshepang Lekhonkhobe [Wed, 30 Dec 2015 10:41:04 +0000 (12:41 +0200)]
doc: add graves

8 years agodoc: add some links for io::stdio
Tshepang Lekhonkhobe [Thu, 24 Dec 2015 00:52:27 +0000 (02:52 +0200)]
doc: add some links for io::stdio

8 years agoAuto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiyn
bors [Wed, 30 Dec 2015 07:35:10 +0000 (07:35 +0000)]
Auto merge of #30458 - fhahn:fix-warnings-tests-stdlib, r=sanxiyn

This PR siliences some warnings when compiling stdlib with --test. Mostly remove some unused imports and added a few `#[allow(..)]`.

I also marked some signal handling functions with `#[cfg(not(test))]`, because they are only called through `rt::lang_start`, which is also marked as  `#[cfg(not(test))]`

8 years agoRebasing and review comments
Nick Cameron [Wed, 23 Dec 2015 21:54:37 +0000 (10:54 +1300)]
Rebasing and review comments

8 years agoRefactoring
Nick Cameron [Wed, 23 Dec 2015 06:27:20 +0000 (19:27 +1300)]
Refactoring

8 years agouse structured errors
Nick Cameron [Sun, 20 Dec 2015 21:00:43 +0000 (10:00 +1300)]
use structured errors

8 years agoStructured diagnostics
Nick Cameron [Fri, 18 Dec 2015 03:15:53 +0000 (16:15 +1300)]
Structured diagnostics

8 years agoAuto merge of #29974 - brson:gold, r=alexcrichton
bors [Wed, 30 Dec 2015 01:07:19 +0000 (01:07 +0000)]
Auto merge of #29974 - brson:gold, r=alexcrichton

When using `cc` for linking rustc will, if gold is available (by looking for `/usr/bin/ld.gold`), pass `-fuse-ld=gold` to `cc`.

In some scenarios gold links much faster than ld. Servo uses it to considerably speed up linking. gold behaves nearly identically to ld (though I think there are rare corner cases that don't work still). I've run this through crater and everything there continues to link.

To disable, pass `-C disable-gold`.

8 years agoAuto merge of #30619 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 29 Dec 2015 22:21:57 +0000 (22:21 +0000)]
Auto merge of #30619 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30253, #30390, #30405, #30549, #30603, #30610
- Failed merges:

8 years agobook: Replace "an &mut" with "a mut". Fixes #30568
Ori Avtalion [Tue, 29 Dec 2015 21:13:23 +0000 (23:13 +0200)]
book: Replace "an &mut" with "a mut". Fixes #30568

8 years agoRollup merge of #30610 - steveklabnik:gh30600, r=sfackler
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30610 - steveklabnik:gh30600, r=sfackler

Also, make its panic description identical in wording to assert_eq.

Fixes #30600

8 years agoRollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth

@ubsan brought up this relatively poor error message. This adds a
help message hinting when the problem actually is, and how to fix
it.

8 years agoRollup merge of #30549 - mitaa:doc_dstruct, r=brson
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30549 - mitaa:doc_dstruct, r=brson

(reported in #30477)

8 years agoRollup merge of #30405 - durka:patch-12, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:09 +0000 (15:55 -0500)]
Rollup merge of #30405 - durka:patch-12, r=steveklabnik

Fixes #30217.

8 years agoRollup merge of #30390 - mitaa:patch-1, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:08 +0000 (15:55 -0500)]
Rollup merge of #30390 - mitaa:patch-1, r=steveklabnik

None of my devices/browsers renders this correctly.

r? @steveklabnik

8 years agoRollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnik
Steve Klabnik [Tue, 29 Dec 2015 20:55:08 +0000 (15:55 -0500)]
Rollup merge of #30253 - Manishearth:diag-401-improve, r=steveklabnik

r? @steveklabnik

8 years agoImplement `as` casting (Misc cast kind)
Simonas Kazlauskas [Thu, 5 Nov 2015 11:33:06 +0000 (13:33 +0200)]
Implement `as` casting (Misc cast kind)

8 years agoCorrect the documentation of debug_assert_eq
Steve Klabnik [Tue, 29 Dec 2015 16:01:35 +0000 (11:01 -0500)]
Correct the documentation of debug_assert_eq

Also, make its panic description identical in wording to assert_eq.

Fixes #30600

8 years agoFix warnings when compiling stdlib with --test
Florian Hahn [Fri, 18 Dec 2015 12:29:49 +0000 (13:29 +0100)]
Fix warnings when compiling stdlib with --test

8 years agoAdd a hint when given --extern with an indeterminate type
Corey Richardson [Tue, 29 Dec 2015 05:11:52 +0000 (00:11 -0500)]
Add a hint when given --extern with an indeterminate type

@ubsan brought up this relatively poor error message. This adds a
help message hinting when the problem actually is, and how to fix
it.

8 years agoAuto merge of #30548 - mmcco:linux-syscall, r=brson
bors [Mon, 28 Dec 2015 20:11:34 +0000 (20:11 +0000)]
Auto merge of #30548 - mmcco:linux-syscall, r=brson

There's no need for us to redeclare it in an extern block.

We should probably put the syscall number constants in libc too.

8 years agoLink with ld.gold by default
Brian Anderson [Sat, 8 Aug 2015 18:33:43 +0000 (11:33 -0700)]
Link with ld.gold by default

To disable, pass `-C disable-gold`

8 years agoAuto merge of #30588 - nagisa:mir-unit-enums-again, r=eddyb
bors [Mon, 28 Dec 2015 14:32:09 +0000 (14:32 +0000)]
Auto merge of #30588 - nagisa:mir-unit-enums-again, r=eddyb

A dumb mistake on my part from previous PR fixing unit enums in MIR.

8 years ago[MIR] Fix setting discriminant for unit enums
Simonas Kazlauskas [Mon, 28 Dec 2015 13:48:01 +0000 (15:48 +0200)]
[MIR] Fix setting discriminant for unit enums

8 years agoRename ExplicitSelfCategory's variants and stop re-exporting them.
Ms2ger [Mon, 28 Dec 2015 11:52:43 +0000 (12:52 +0100)]
Rename ExplicitSelfCategory's variants and stop re-exporting them.

8 years agoAuto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik
bors [Mon, 28 Dec 2015 09:55:45 +0000 (09:55 +0000)]
Auto merge of #30570 - fhartwig:dead-doc-links, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #30547 - mmcco:cfg, r=sanxiyn
bors [Mon, 28 Dec 2015 06:07:34 +0000 (06:07 +0000)]
Auto merge of #30547 - mmcco:cfg, r=sanxiyn

8 years agoAuto merge of #30579 - dotdash:30478, r=arielb1
bors [Mon, 28 Dec 2015 02:29:14 +0000 (02:29 +0000)]
Auto merge of #30579 - dotdash:30478, r=arielb1

`auto_ref()` currently returns an Rvalue datum for the ref'd value,
which is fine for thin pointers, but for fat pointers this means that
once the pointer is moved out of that datum, its memory will be marked
as dead. And because there is not necessarily an intermediate temporary
involved we can end up marking memory as dead that is actually still
used.

As I don't want to break the micro-optimization for thin pointers by
always returning an Lvalue datum, I decided to only do so for fat
pointers.

Fix #30478

8 years agoAuto merge of #30582 - arielb1:self-test, r=eddyb
bors [Sun, 27 Dec 2015 23:26:18 +0000 (23:26 +0000)]
Auto merge of #30582 - arielb1:self-test, r=eddyb

the old code was *so terrible*.

r? @eddyb

8 years agoremove hack in region inference
Ariel Ben-Yehuda [Sun, 27 Dec 2015 23:20:35 +0000 (01:20 +0200)]
remove hack in region inference

I forgot about it in the previous commit

8 years agorewrite the method-receiver matching code
Ariel Ben-Yehuda [Sun, 27 Dec 2015 20:09:33 +0000 (22:09 +0200)]
rewrite the method-receiver matching code

the old code was *so terrible*.

8 years agoAuto merge of #30575 - jswalden:error-handling-typo, r=apasel422
bors [Sun, 27 Dec 2015 19:50:09 +0000 (19:50 +0000)]
Auto merge of #30575 - jswalden:error-handling-typo, r=apasel422

Didn't build/test the change, but if that one-character fix isn't correct, I'll eat my hat.  :-)  Found this reading the book over the last week or two since Mozlando -- much enjoying the book so far.

8 years agoFix `auto_ref()` for fat pointers
Björn Steinbrink [Sun, 27 Dec 2015 16:56:15 +0000 (17:56 +0100)]
Fix `auto_ref()` for fat pointers

`auto_ref()` currently returns an Rvalue datum for the ref'd value,
which is fine for thin pointers, but for fat pointers this means that
once the pointer is moved out of that datum, its memory will be marked
as dead. And because there is not necessarily an intermediate temporary
involved we can end up marking memory as dead that is actually still
used.

As I don't want to break the micro-optimization for thin pointers by
always returning an Lvalue datum, I decided to only do so for fat
pointers.

Fix #30478

8 years agoChange the typo 'that' to 'than' in the book error-handling chapter.
Jeff Walden [Sun, 27 Dec 2015 06:24:45 +0000 (00:24 -0600)]
Change the typo 'that' to 'than' in the book error-handling chapter.

8 years agoAuto merge of #30566 - salty-horse:doc_typo, r=apasel422
bors [Sun, 27 Dec 2015 01:00:53 +0000 (01:00 +0000)]
Auto merge of #30566 - salty-horse:doc_typo, r=apasel422

Small typo. vectors -> vector.

8 years agoAuto merge of #30562 - nagisa:mir-unit-enums, r=luqmana
bors [Sat, 26 Dec 2015 22:58:34 +0000 (22:58 +0000)]
Auto merge of #30562 - nagisa:mir-unit-enums, r=luqmana

Thanks @arielb1!
r? @luqmana

8 years agoFix links in char docs
Florian Hartwig [Sat, 26 Dec 2015 21:04:18 +0000 (22:04 +0100)]
Fix links in char docs

8 years agobook: Fix typo
Ori Avtalion [Sat, 26 Dec 2015 20:29:02 +0000 (22:29 +0200)]
book: Fix typo

8 years agoAlso fix MIRification of unit enum variants
Simonas Kazlauskas [Sat, 26 Dec 2015 12:39:10 +0000 (14:39 +0200)]
Also fix MIRification of unit enum variants

8 years agoFix some links in str docs
Florian Hartwig [Sat, 26 Dec 2015 11:16:48 +0000 (12:16 +0100)]
Fix some links in str docs

8 years agoFix links in docs for std::io
Florian Hartwig [Fri, 25 Dec 2015 23:11:20 +0000 (00:11 +0100)]
Fix links in docs for std::io

8 years agoFix link that is currently broken due to bad markup
Florian Hartwig [Fri, 25 Dec 2015 23:01:10 +0000 (00:01 +0100)]
Fix link that is currently broken due to bad markup

8 years agoAuto merge of #30558 - jonas-schievink:delete-ast, r=nrc
bors [Fri, 25 Dec 2015 22:32:08 +0000 (22:32 +0000)]
Auto merge of #30558 - jonas-schievink:delete-ast, r=nrc

Or more specifically, after running early lints.

Closes #28142

8 years agoCorrect .gitmodules
Kai Noda [Fri, 25 Dec 2015 18:51:04 +0000 (02:51 +0800)]
Correct .gitmodules

Use proper URLs as given by Github.

So far we relied on redirect by Github which is not guaranteed to work.

8 years agoDelete the AST after lowering
Jonas Schievink [Fri, 25 Dec 2015 16:17:45 +0000 (17:17 +0100)]
Delete the AST after lowering

8 years agoAuto merge of #30555 - Manishearth:rollup, r=Manishearth
bors [Fri, 25 Dec 2015 14:27:58 +0000 (14:27 +0000)]
Auto merge of #30555 - Manishearth:rollup, r=Manishearth

- Successful merges: #30485, #30490, #30513, #30518, #30528, #30545, #30551, #30552
- Failed merges:

8 years agoRollup merge of #30552 - mmcco:align, r=steveklabnik
Manish Goregaokar [Fri, 25 Dec 2015 11:24:31 +0000 (16:54 +0530)]
Rollup merge of #30552 - mmcco:align, r=steveklabnik

Trivial, but my eye is twitching.

8 years agoRollup merge of #30551 - nagisa:mir-unit-structs, r=luqmana
Manish Goregaokar [Fri, 25 Dec 2015 11:24:31 +0000 (16:54 +0530)]
Rollup merge of #30551 - nagisa:mir-unit-structs, r=luqmana

Fixes https://github.com/rust-lang/rust/issues/30514

i also went ahead and removed the redundant `ItemKind`s.

r? @nikomatsakis (this is an easy one I guess)

8 years agoRollup merge of #30545 - bluss:operator-overload, r=steveklabnik
Manish Goregaokar [Fri, 25 Dec 2015 11:24:30 +0000 (16:54 +0530)]
Rollup merge of #30545 - bluss:operator-overload, r=steveklabnik

book: Some operator fixes for the syntax index

- Correct the names of the comparison traits (PartialOrd)
- Mention only the traits that overload the operator (PartialOrd,
  PartialEq), not operator-unrelated traits (Ord, Eq).
- Add `!=` operator.

8 years agoRollup merge of #30528 - michaelwoerister:fix-extern-def-paths, r=nikomatsakis
Manish Goregaokar [Fri, 25 Dec 2015 11:24:30 +0000 (16:54 +0530)]
Rollup merge of #30528 - michaelwoerister:fix-extern-def-paths, r=nikomatsakis

Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec".

cc @rust-lang/compiler

8 years agoRollup merge of #30518 - semarie:openbsd-snapshot, r=alexcrichton
Manish Goregaokar [Fri, 25 Dec 2015 11:24:30 +0000 (16:54 +0530)]
Rollup merge of #30518 - semarie:openbsd-snapshot, r=alexcrichton

as the buildbot has timeouted when building snap3 branch, I regenerate one locally.

here the diff that registers the OpenBSD snapshot.

the archive is available at http://semarie.online.fr/rust/rust-stage0-2015-12-18-3391630-openbsd-x86_64-6c8aab2c8a169274942f9a15e460069a3ff64be9.tar.bz2

sha256 : de3c26a93cf9512922cc012f9b57bd08d7b64f7e0469a9bb032fa9c07260cf0c

@alexcrichton does it is the good method for providing a snapshot ?

8 years agoRollup merge of #30513 - alexcrichton:assert-is-safe, r=aturon
Manish Goregaokar [Fri, 25 Dec 2015 11:24:30 +0000 (16:54 +0530)]
Rollup merge of #30513 - alexcrichton:assert-is-safe, r=aturon

Types like `&AssertRecoverSafe<T>` and `Rc<AssertRecoverSafe<T>>` were
mistakenly not considered recover safe, but the point of the assertion wrapper
is that it indeed is! This was caused by an interaction between the
`RecoverSafe` and `NoUnsafeCell` marker traits, and this is updated by adding an
impl of the `NoUnsafeCell` marker trait for `AssertRecoverSafe` to ensure that
it never interacts with the other negative impls of `RecoverSafe`.

cc #30510

8 years agoRollup merge of #30485 - sfackler:panic-handler, r=alexcrichton
Manish Goregaokar [Fri, 25 Dec 2015 11:24:30 +0000 (16:54 +0530)]
Rollup merge of #30485 - sfackler:panic-handler, r=alexcrichton

r? @alexcrichton

8 years agoAuto merge of #30544 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 25 Dec 2015 06:24:56 +0000 (06:24 +0000)]
Auto merge of #30544 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30251, #30461, #30465, #30473, #30529, #30537, #30539, #30541, #30543
- Failed merges:

8 years agoFix whitespace alignment
Michael McConville [Fri, 25 Dec 2015 02:39:38 +0000 (21:39 -0500)]
Fix whitespace alignment

Trivial, but my eye is twitching.

8 years agoProperly translate unit structs in MIR
Simonas Kazlauskas [Thu, 24 Dec 2015 23:02:34 +0000 (01:02 +0200)]
Properly translate unit structs in MIR

8 years agoast_map => hir_map
Jonas Schievink [Thu, 24 Dec 2015 20:30:27 +0000 (21:30 +0100)]
ast_map => hir_map

8 years agoFix link to `Formatter::debug_struct`
mitaa [Thu, 24 Dec 2015 07:15:58 +0000 (08:15 +0100)]
Fix link to `Formatter::debug_struct`

8 years agoUse libc's Linux syscall()
Michael McConville [Thu, 24 Dec 2015 03:46:45 +0000 (22:46 -0500)]
Use libc's Linux syscall()

There's no need for us to redeclare it in an extern block.

8 years agoSimply two cfg attributes
Michael McConville [Thu, 24 Dec 2015 03:31:53 +0000 (22:31 -0500)]
Simply two cfg attributes

8 years agobook: Some operator fixes for the syntax index
Ulrik Sverdrup [Wed, 23 Dec 2015 23:20:12 +0000 (00:20 +0100)]
book: Some operator fixes for the syntax index

- Correct the names of the comparison traits (PartialOrd)
- Mention only the traits that overload the operator (PartialOrd,
  PartialEq), not operator-unrelated traits (Ord, Eq).
- Add `!=` operator.

8 years agoRollup merge of #30543 - brson:doc, r=steveklabnik
Steve Klabnik [Wed, 23 Dec 2015 23:09:12 +0000 (18:09 -0500)]
Rollup merge of #30543 - brson:doc, r=steveklabnik

The website will [shortly](https://github.com/rust-lang/rust-www/pull/241) provide the main documentation landing page as well as the [FAQ](https://github.com/rust-lang/rust-www/issues/202). All of the content here will be there.

This strips out everything and makes the index *just* an index into the in-tree content. My only real qualm with this is that this will become the content on doc.rust-lang.org (a sweet URL), while the main documentation page will be www.rust-lang.org/documentation.html.

r? @steveklabnik

8 years agoRollup merge of #30541 - fbergr:doc, r=luqmana
Steve Klabnik [Wed, 23 Dec 2015 23:09:12 +0000 (18:09 -0500)]
Rollup merge of #30541 - fbergr:doc, r=luqmana

Country-code top level domain names are tied to a specific country (for example .de for Germany).

r? @steveklabnik

8 years agoRollup merge of #30539 - erickt:whitespace, r=sfackler
Steve Klabnik [Wed, 23 Dec 2015 23:09:12 +0000 (18:09 -0500)]
Rollup merge of #30539 - erickt:whitespace, r=sfackler

8 years agoRollup merge of #30537 - tshepang:make-visible, r=Gankro
Steve Klabnik [Wed, 23 Dec 2015 23:09:12 +0000 (18:09 -0500)]
Rollup merge of #30537 - tshepang:make-visible, r=Gankro

8 years agoRollup merge of #30529 - alexcrichton:less-c-code, r=sanxiyn
Steve Klabnik [Wed, 23 Dec 2015 23:09:12 +0000 (18:09 -0500)]
Rollup merge of #30529 - alexcrichton:less-c-code, r=sanxiyn

The corresopnding C file was removed in #30175 and looks like I forgot to remove
the header as well.

8 years agoRollup merge of #30473 - nwin:patch-2, r=steveklabnik
Steve Klabnik [Wed, 23 Dec 2015 23:09:11 +0000 (18:09 -0500)]
Rollup merge of #30473 - nwin:patch-2, r=steveklabnik

Clarify the difference between compiler-panic and libcore-panic.

8 years agoRollup merge of #30465 - androm3da:master, r=alexcrichton
Steve Klabnik [Wed, 23 Dec 2015 23:09:11 +0000 (18:09 -0500)]
Rollup merge of #30465 - androm3da:master, r=alexcrichton

The `dynamic_lib` library has been deprecated in favor of contents on crates.io, but apparently `libloading` is a more specific direction that fits the need.

8 years agoRollup merge of #30461 - lnmx:doc-typo, r=steveklabnik
Steve Klabnik [Wed, 23 Dec 2015 23:09:11 +0000 (18:09 -0500)]
Rollup merge of #30461 - lnmx:doc-typo, r=steveklabnik

8 years agoRollup merge of #30251 - nodakai:patch-1, r=pnkfelix
Steve Klabnik [Wed, 23 Dec 2015 23:09:11 +0000 (18:09 -0500)]
Rollup merge of #30251 - nodakai:patch-1, r=pnkfelix

On some weird setup where $SHELL is a relative path (can happen under GNU
Screen,) `file -L "$BIN_TO_PROBE"` fails and $CFG_CPUTYPE is wrongly set to
i686.  We should not only check its string value but also permission on
filesystem.

8 years agoStrip the documentation index down to the essentials.
Brian Anderson [Wed, 23 Dec 2015 22:15:13 +0000 (14:15 -0800)]
Strip the documentation index down to the essentials.

The main documentation page is now www.rust-lang.org/documentation.html

8 years agoRemove links to out-of-tree docs
Brian Anderson [Wed, 23 Dec 2015 22:04:43 +0000 (14:04 -0800)]
Remove links to out-of-tree docs

8 years agoRemove the FAQs in favor of the website
Brian Anderson [Wed, 23 Dec 2015 22:03:45 +0000 (14:03 -0800)]
Remove the FAQs in favor of the website

8 years agodoc: Change Google link to generic top level domain
fbergr [Wed, 23 Dec 2015 20:42:36 +0000 (22:42 +0200)]
doc: Change Google link to generic top level domain