]> git.lizzy.rs Git - rust.git/log
rust.git
8 years ago[MIR trans] Translate statics
Simonas Kazlauskas [Tue, 10 Nov 2015 21:22:57 +0000 (23:22 +0200)]
[MIR trans] Translate statics

Fixes #29578

8 years agoAuto merge of #29705 - Ryman:mismatched_typaram_counts, r=alexcrichton
bors [Tue, 10 Nov 2015 15:48:00 +0000 (15:48 +0000)]
Auto merge of #29705 - Ryman:mismatched_typaram_counts, r=alexcrichton

…type-params for methods

8 years agoAuto merge of #29697 - dotdash:mir_trans_switchint, r=nikomatsakis
bors [Tue, 10 Nov 2015 13:17:15 +0000 (13:17 +0000)]
Auto merge of #29697 - dotdash:mir_trans_switchint, r=nikomatsakis

8 years agoAuto merge of #29699 - tamird:valgrind-supp, r=alexcrichton
bors [Tue, 10 Nov 2015 11:34:13 +0000 (11:34 +0000)]
Auto merge of #29699 - tamird:valgrind-supp, r=alexcrichton

Quite a bit of cruft in the valgrind suppressions. I started from a clean slate and found a few unique failures; this commit also moves the tests "fixed" by these suppressions into run-pass-valgrind.

8 years agoAuto merge of #29647 - goyox86:goyox86/rustfmting-librustc_frontII, r=nrc
bors [Tue, 10 Nov 2015 08:38:52 +0000 (08:38 +0000)]
Auto merge of #29647 - goyox86:goyox86/rustfmting-librustc_frontII, r=nrc

Hi Rustaceans!

This is the second take  on running latest rustfmt on librustc_front!

This is the same in https://github.com/rust-lang/rust/pull/29075 but cleaned. All fixups have been applied.

//cc @nrc

8 years agoAuto merge of #29546 - alexcrichton:new-libc, r=brson
bors [Tue, 10 Nov 2015 06:56:30 +0000 (06:56 +0000)]
Auto merge of #29546 - alexcrichton:new-libc, r=brson

This commit replaces the in-tree liblibc with the [external clone](https://github.com/rust-lang-nursery/libc) which has no evolved beyond the in-tree version in light of its [recent redesign](https://github.com/rust-lang/rfcs/pull/1291).

The primary changes here are:

* `src/liblibc/lib.rs` was deleted
* `src/liblibc` is now a submodule pointing at the external repository
* `src/libstd/sys/unix/{c.rs,sync.rs}` were both deleted having all bindings folded into the external liblibc.
* Many ad-hoc `extern` blocks in the standard library were removed in favor of bindings now being in the external liblibc.
* Many functions/types were added to `src/libstd/sys/windows/c.rs`, and the scattered definitions throughout the standard library were consolidated here.

At the API level this commit is **not a breaking change**, although it is only very lightly tested on the *BSD variants and is probably going to break almost all of their builds! Follow-up commits to liblibc should in theory be all that's necessary to get the build working on the *BSDs again.

8 years agostd: Migrate to the new libc
Alex Crichton [Tue, 3 Nov 2015 00:23:22 +0000 (16:23 -0800)]
std: Migrate to the new libc

* Delete `sys::unix::{c, sync}` as these are now all folded into libc itself
* Update all references to use `libc` as a result.
* Update all references to the new flat namespace.
* Moves all windows bindings into sys::c

8 years agolibc: Replace liblibc with crates.io libc
Alex Crichton [Tue, 3 Nov 2015 00:22:49 +0000 (16:22 -0800)]
libc: Replace liblibc with crates.io libc

8 years agoRustfmting librustc_front (again).
Jose Narvaez [Thu, 5 Nov 2015 21:17:59 +0000 (21:17 +0000)]
Rustfmting librustc_front (again).

8 years ago[MIR trans] Add support for SwitchInt
Björn Steinbrink [Sun, 8 Nov 2015 18:11:11 +0000 (19:11 +0100)]
[MIR trans] Add support for SwitchInt

8 years agoAuto merge of #29713 - apasel422:executable, r=dotdash
bors [Mon, 9 Nov 2015 15:04:24 +0000 (15:04 +0000)]
Auto merge of #29713 - apasel422:executable, r=dotdash

8 years agoRemove executable permission from .rs files
Andrew Paseltiner [Mon, 9 Nov 2015 14:28:51 +0000 (09:28 -0500)]
Remove executable permission from .rs files

8 years agoAuto merge of #29695 - dtrebbien:remove-mention-of-struct_variant-feature, r=sanxiyn
bors [Mon, 9 Nov 2015 11:14:26 +0000 (11:14 +0000)]
Auto merge of #29695 - dtrebbien:remove-mention-of-struct_variant-feature, r=sanxiyn

The struct_variant feature was accepted and is no longer feature gated.
See #19122, #19124

§6.1.6 Enumerations shows an example of a struct-like enum variant.

8 years agoAuto merge of #29682 - Ryman:dead_spam, r=sanxiyn
bors [Mon, 9 Nov 2015 08:28:35 +0000 (08:28 +0000)]
Auto merge of #29682 - Ryman:dead_spam, r=sanxiyn

This standardises the current behavior to match `enum` variants, hopefully leading to less warning spam for users!

For example the code below will have 2 warnings (for `Foo` and `Bar`) rather than 7:
```rust
enum Foo {
    A,
    B { a: String, b: isize },
    C
}

struct Bar {
    a: i32,
    b: String,
    c: ()
}

fn main() {
    println!("Hi")
}
```
http://is.gd/zAztKW

8 years agolibrustc_typeck: give more information when supplied wrong number of type-params...
Kevin Butler [Mon, 9 Nov 2015 00:11:56 +0000 (00:11 +0000)]
librustc_typeck: give more information when supplied wrong number of type-params for methods

8 years agoAuto merge of #29684 - stepancheg:size-hint, r=Gankro
bors [Sun, 8 Nov 2015 22:01:44 +0000 (22:01 +0000)]
Auto merge of #29684 - stepancheg:size-hint, r=Gankro

* `size_hint()` cannot be relied upon to perform memory unsafe operations

Same applies to `len()` function of `ExactSizeIterator` trait.

8 years agoAuto merge of #29686 - jrburke:docs-error-handling-search-case, r=BurntSushi
bors [Sun, 8 Nov 2015 20:20:16 +0000 (20:20 +0000)]
Auto merge of #29686 - jrburke:docs-error-handling-search-case, r=BurntSushi

In src/doc/trpl/error-handling.md, in this section:

It mentions three steps, to "convert this to proper error handling", the last one being:

3. Handle the error in main.

However, it is not shown. This pull request adds a code example showing how `main`'s call to `search` should use case analysis. I am still very much new to learning Rust, so this may not be idiomatic. Happy to make changes with guidance.

8 years agoAuto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth
bors [Sun, 8 Nov 2015 18:37:18 +0000 (18:37 +0000)]
Auto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth

8 years agovalgrind: update suppressions and move interesting tests
Tamir Duberstein [Mon, 2 Nov 2015 04:40:10 +0000 (23:40 -0500)]
valgrind: update suppressions and move interesting tests

8 years agoprint the unexpected character
Tamir Duberstein [Mon, 2 Nov 2015 16:19:27 +0000 (11:19 -0500)]
print the unexpected character

8 years agoExplain that size_hint cannot be trusted
Stepan Koltsov [Sun, 8 Nov 2015 02:30:21 +0000 (05:30 +0300)]
Explain that size_hint cannot be trusted

Same applies to `len()` function of `ExactSizeIterator` trait.

8 years agodoc: error-handling.md: main case analysis for search
jrburke [Sun, 8 Nov 2015 05:36:57 +0000 (21:36 -0800)]
doc: error-handling.md: main case analysis for search

8 years agoreference: Remove struct_variant from Compiler Features
Daniel Trebbien [Sun, 8 Nov 2015 16:27:40 +0000 (11:27 -0500)]
reference: Remove struct_variant from Compiler Features

The struct_variant feature was accepted and is no longer feature gated.
See #19122, #19124

§6.1.6 Enumerations shows an example of a struct-like enum variant.

8 years agoAuto merge of #29692 - jwworth:pull-request/fix-typo, r=apasel422
bors [Sun, 8 Nov 2015 15:56:03 +0000 (15:56 +0000)]
Auto merge of #29692 - jwworth:pull-request/fix-typo, r=apasel422

Fixes the double word 'be'.

8 years agoFix double word 'be'
Jake Worth [Sun, 8 Nov 2015 15:39:01 +0000 (09:39 -0600)]
Fix double word 'be'

8 years agoSpell out the fallback of `std::env::home_dir` on POSIX
Tobias Bucher [Sun, 8 Nov 2015 15:34:16 +0000 (15:34 +0000)]
Spell out the fallback of `std::env::home_dir` on POSIX

8 years agojemalloc: pass `--enable-valgrind` when valgrind is enabled
Tamir Duberstein [Mon, 2 Nov 2015 15:39:46 +0000 (10:39 -0500)]
jemalloc: pass `--enable-valgrind` when valgrind is enabled

8 years agojemalloc: quarantine is fixed
Tamir Duberstein [Mon, 2 Nov 2015 12:56:09 +0000 (07:56 -0500)]
jemalloc: quarantine is fixed

8 years agowhitespace
Tamir Duberstein [Mon, 2 Nov 2015 12:56:22 +0000 (07:56 -0500)]
whitespace

8 years agoAuto merge of #29683 - apasel422:typos, r=steveklabnik
bors [Sun, 8 Nov 2015 05:31:21 +0000 (05:31 +0000)]
Auto merge of #29683 - apasel422:typos, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #29681 - vadimcn:fix-dist, r=alexcrichton
bors [Sun, 8 Nov 2015 02:34:24 +0000 (02:34 +0000)]
Auto merge of #29681 - vadimcn:fix-dist, r=alexcrichton

Resolves  #29672.   This happened because rust runtime startup objects, rsbegin.o and rsend.o, were not included in the target libraries package for -windows-gnu.

r? @alexcrichton

8 years agoRemove duplicate words from docs
Andrew Paseltiner [Sun, 8 Nov 2015 02:28:13 +0000 (21:28 -0500)]
Remove duplicate words from docs

8 years agolibrustc: dont warn for inside of items when the parent is dead
Kevin Butler [Sat, 7 Nov 2015 22:07:13 +0000 (22:07 +0000)]
librustc: dont warn for inside of items when the parent is dead

8 years agoMake sure rsbegin.o and rsend.o get packaged with target lib artifacts.
Vadim Chugunov [Sun, 8 Nov 2015 01:44:44 +0000 (17:44 -0800)]
Make sure rsbegin.o and rsend.o get packaged with target lib artifacts.
Also, unified libc startup objects finding logic with that of the `-musl` target, since conceptually they were doing the same thing.

8 years agoAuto merge of #29674 - inrustwetrust:flag_alignment, r=alexcrichton
bors [Sat, 7 Nov 2015 23:45:14 +0000 (23:45 +0000)]
Auto merge of #29674 - inrustwetrust:flag_alignment, r=alexcrichton

The `enable-nonzeroing-move-hints` flag name was too long and caused misalignment of the help text.
Now calculating the needed padding dynamically from the available flags instead.

8 years agoAuto merge of #29678 - jwworth:pull-request/fix-typo, r=apasel422
bors [Sat, 7 Nov 2015 18:49:42 +0000 (18:49 +0000)]
Auto merge of #29678 - jwworth:pull-request/fix-typo, r=apasel422

Fixes the typo 'is is'.

8 years agoFix typo
Jake Worth [Sat, 7 Nov 2015 18:27:58 +0000 (12:27 -0600)]
Fix typo

8 years agoAuto merge of #29671 - ollie27:patch-1, r=bluss
bors [Sat, 7 Nov 2015 13:31:10 +0000 (13:31 +0000)]
Auto merge of #29671 - ollie27:patch-1, r=bluss

8 years agoFixed text alignment for output of "rustc -Z help"
inrustwetrust [Sat, 7 Nov 2015 13:00:55 +0000 (14:00 +0100)]
Fixed text alignment for output of "rustc -Z help"

8 years agoUpdate list of array implementations in src/libstd/primitive_docs.rs
Oliver Middleton [Sat, 7 Nov 2015 12:01:11 +0000 (12:01 +0000)]
Update list of array implementations in src/libstd/primitive_docs.rs

8 years agoAuto merge of #29662 - rust-lang:brson-patch-2, r=steveklabnik
bors [Sat, 7 Nov 2015 06:18:39 +0000 (06:18 +0000)]
Auto merge of #29662 - rust-lang:brson-patch-2, r=steveklabnik

r? @steveklabnik

8 years agoDirect security bugs to the security policy.
Brian Anderson [Fri, 6 Nov 2015 22:05:19 +0000 (14:05 -0800)]
Direct security bugs to the security policy.

8 years agoAuto merge of #29666 - Manishearth:rollup, r=Manishearth
bors [Sat, 7 Nov 2015 02:26:45 +0000 (02:26 +0000)]
Auto merge of #29666 - Manishearth:rollup, r=Manishearth

- Successful merges: #29617, #29622, #29656, #29659, #29660
- Failed merges:

8 years agoRollup merge of #29660 - steveklabnik:gh28461, r=brson
Manish Goregaokar [Sat, 7 Nov 2015 01:14:46 +0000 (06:44 +0530)]
Rollup merge of #29660 - steveklabnik:gh28461, r=brson

Fixes #28461

8 years agoRollup merge of #29659 - angelsl:crt-rebase, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:46 +0000 (06:44 +0530)]
Rollup merge of #29659 - angelsl:crt-rebase, r=alexcrichton

cc: @vadimcn @vhbit

r? @alexcrichton

8 years agoRollup merge of #29656 - arcnmx:static-extern, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29656 - arcnmx:static-extern, r=alexcrichton

This is currently done for functions but not public static symbols.

8 years agoRollup merge of #29622 - steveklabnik:gh29621, r=bstrie
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29622 - steveklabnik:gh29621, r=bstrie

Now that thread::sleep is a real thing, let's use it

Fixes #29621

r? @bstrie

8 years agoRollup merge of #29617 - steveklabnik:gh29591, r=alexcrichton
Manish Goregaokar [Sat, 7 Nov 2015 01:14:45 +0000 (06:44 +0530)]
Rollup merge of #29617 - steveklabnik:gh29591, r=alexcrichton

Fixes #29591

8 years agoAuto merge of #29551 - arcnmx:target-family, r=alexcrichton
bors [Sat, 7 Nov 2015 00:42:10 +0000 (00:42 +0000)]
Auto merge of #29551 - arcnmx:target-family, r=alexcrichton

Allow the changing of `target_family` through flexible configuration. The whole computing world isn't just a binary of *nix and Windows! Makes porting `libstd` and co to new platforms a lot less painful.

8 years agoAuto merge of #29462 - alexcrichton:refactor-process-ret, r=aturon
bors [Fri, 6 Nov 2015 22:57:37 +0000 (22:57 +0000)]
Auto merge of #29462 - alexcrichton:refactor-process-ret, r=aturon

* Store the native representation directly in the `ExitStatus` structure instead
  of a "parsed version" (mostly for Unix).
* On Windows, be more robust against processes exiting with the status of 259.
  Unfortunately this exit code corresponds to `STILL_ACTIVE`, causing libstd to
  think the process was still alive, causing an infinite loop. Instead the loop
  is removed altogether and `WaitForSingleObject` is used to wait for the
  process to exit.

8 years agostd: Refactor process exit code handling slightly
Alex Crichton [Thu, 29 Oct 2015 20:45:56 +0000 (13:45 -0700)]
std: Refactor process exit code handling slightly

* Store the native representation directly in the `ExitStatus` structure instead
  of a "parsed version" (mostly for Unix).
* On Windows, be more robust against processes exiting with the status of 259.
  Unfortunately this exit code corresponds to `STILL_ACTIVE`, causing libstd to
  think the process was still alive, causing an infinite loop. Instead the loop
  is removed altogether and `WaitForSingleObject` is used to wait for the
  process to exit.

8 years agoAuto merge of #29582 - oli-obk:token_tree, r=sfackler
bors [Fri, 6 Nov 2015 21:11:06 +0000 (21:11 +0000)]
Auto merge of #29582 - oli-obk:token_tree, r=sfackler

8 years agosleep_ms -> sleep
Steve Klabnik [Thu, 5 Nov 2015 16:29:36 +0000 (17:29 +0100)]
sleep_ms -> sleep

Now that thread::sleep is a real thing, let's use it

Fixes #29621

8 years agoAdd multi-line string literals to TRPL
Steve Klabnik [Thu, 5 Nov 2015 14:58:08 +0000 (15:58 +0100)]
Add multi-line string literals to TRPL

Fixes #29591

8 years agoMake a note about "gigabyte"
Steve Klabnik [Fri, 6 Nov 2015 16:42:53 +0000 (17:42 +0100)]
Make a note about "gigabyte"

Fixes #28461

8 years agoAuto merge of #29657 - defuz:patch-2, r=steveklabnik
bors [Fri, 6 Nov 2015 16:42:03 +0000 (16:42 +0000)]
Auto merge of #29657 - defuz:patch-2, r=steveklabnik

r? @steveklabnik

8 years agoUpdate compiler-rt
angelsl [Fri, 6 Nov 2015 16:26:44 +0000 (00:26 +0800)]
Update compiler-rt

8 years agoAuto merge of #29643 - petrochenkov:stability5, r=alexcrichton
bors [Fri, 6 Nov 2015 14:57:41 +0000 (14:57 +0000)]
Auto merge of #29643 - petrochenkov:stability5, r=alexcrichton

Also remove `stable` stability annotations from inherent impls

(There will be a warning for useless stability annotations soon.)

r? @Gankro

8 years agoremove `Tt` prefix from TokenType variants
Oliver Schneider [Fri, 6 Nov 2015 13:52:02 +0000 (14:52 +0100)]
remove `Tt` prefix from TokenType variants

[breaking change]

8 years agoAuto merge of #29620 - petrochenkov:reachable2, r=alexcrichton
bors [Fri, 6 Nov 2015 13:13:08 +0000 (13:13 +0000)]
Auto merge of #29620 - petrochenkov:reachable2, r=alexcrichton

Handle them in `middle::reachable` instead (no optimizations so far, just drop all trait impl items into the reachable set, as before). Addresses the concerns from https://github.com/rust-lang/rust/pull/29291#discussion_r43672413
\+ In `middle::reachable` don't treat impls of `Drop` specially, they are subsumed by the general impl treatment.
\+ Add some tests checking reachability of trait methods written in UFCS form
\+ Minor refactoring in the second commit

r? @alexcrichton

8 years agoOpps, fix incorrect call
Ivan Ivaschenko [Fri, 6 Nov 2015 11:52:17 +0000 (13:52 +0200)]
Opps, fix incorrect call

8 years agoRename me in AUTHORS.txt
Ivan Ivaschenko [Fri, 6 Nov 2015 11:48:24 +0000 (13:48 +0200)]
Rename me in AUTHORS.txt

8 years agoRemoving the hack from error handling chapter, which is does not make sense anymore.
Ivan Ivaschenko [Fri, 6 Nov 2015 11:44:42 +0000 (13:44 +0200)]
Removing the hack from error handling chapter, which is does not make sense anymore.

8 years agoAuto merge of #29615 - steveklabnik:lol_strings, r=alexcrichton
bors [Fri, 6 Nov 2015 11:28:07 +0000 (11:28 +0000)]
Auto merge of #29615 - steveklabnik:lol_strings, r=alexcrichton

&format!("...") is the same as "" if we're not doing any interpolation,
and doesn't allocate an intermediate String.

8 years agoPreserve public static items across LTO
arcnmx [Fri, 6 Nov 2015 09:51:03 +0000 (04:51 -0500)]
Preserve public static items across LTO

8 years agoAuto merge of #29604 - bstrie:de_ms, r=alexcrichton
bors [Fri, 6 Nov 2015 09:42:17 +0000 (09:42 +0000)]
Auto merge of #29604 - bstrie:de_ms, r=alexcrichton

8 years agoAuto merge of #29600 - Ryman:rustdoc_better_testnames, r=alexcrichton
bors [Fri, 6 Nov 2015 07:58:27 +0000 (07:58 +0000)]
Auto merge of #29600 - Ryman:rustdoc_better_testnames, r=alexcrichton

Old doctest names
```bash
test sync::atomic::load_0 ... ok
test sync::atomic::load_0 ... ok
test sync::atomic::load_0 ... ok
test sync::atomic::load_0 ... ok
```

New doctest names
```bash
test sync::atomic::AtomicBool::load_0 ... ok
test sync::atomic::AtomicIsize::load_0 ... ok
test sync::atomic::AtomicPtr<T>::load_0 ... ok
test sync::atomic::AtomicUsize::load_0 ... ok
```

8 years agoAuto merge of #29588 - nikomatsakis:mir-switch, r=aatch
bors [Fri, 6 Nov 2015 06:13:59 +0000 (06:13 +0000)]
Auto merge of #29588 - nikomatsakis:mir-switch, r=aatch

Introduce a `SwitchInt` and restructure pattern matching to collect integers and characters into one master switch. This is aimed at #29227, but is not a complete fix. Whereas before we generated an if-else-if chain and, at least on my machine, just failed to compile, we now spend ~9sec compiling `rustc_abuse`. AFAICT this is basically just due to a need for more micro-optimization of the matching process: perf shows a fair amount of time just spent iterating over the candidate list. Still, it seemed worth opening a PR with this step alone, since it's a big step forward.

8 years agoAuto merge of #29491 - alexcrichton:avoid-stdio-tls, r=brson
bors [Fri, 6 Nov 2015 04:29:11 +0000 (04:29 +0000)]
Auto merge of #29491 - alexcrichton:avoid-stdio-tls, r=brson

Currently if a print happens while a thread is being torn down it may cause a
panic if the LOCAL_STDOUT TLS slot has been destroyed by that point. This adds a
guard to check and prints to the process stdout if that's the case (as we do for
if the slot is already borrowed).

Closes #29488

8 years agoAuto merge of #29653 - alexcrichton:fix-distcheck-again-zomg, r=brson
bors [Fri, 6 Nov 2015 02:41:20 +0000 (02:41 +0000)]
Auto merge of #29653 - alexcrichton:fix-distcheck-again-zomg, r=brson

The recent change of libdir on windows was accidentally not propagated to
`make dist` and related commands. This commit touches that up!

Closes #29640

8 years agoAuto merge of #29305 - alexcrichton:bad-getenv, r=brson
bors [Fri, 6 Nov 2015 00:56:08 +0000 (00:56 +0000)]
Auto merge of #29305 - alexcrichton:bad-getenv, r=brson

As discovered in #29298, `env::set_var("", "")` will panic, but it turns out
that it *also* deadlocks on Unix systems. This happens because if a panic
happens while holding the environment lock, we then go try to read
RUST_BACKTRACE, grabbing the environment lock, causing a deadlock.

Specifically, the changes made here are:

* The environment lock is pushed into `std::sys` instead of `std::env`. This
  also only puts it in the Unix implementation, not Windows where the functions
  are already threadsafe.
* The `std::sys` implementation now returns `io::Result` so panics are
  explicitly at the `std::env` level.

8 years agomk: Account for libdir change on windows
Alex Crichton [Fri, 6 Nov 2015 00:06:25 +0000 (16:06 -0800)]
mk: Account for libdir change on windows

The recent change of libdir on windows was accidentally not propagated to
`make dist` and related commands. This commit touches that up!

Closes #29640

8 years agolibrustdoc: improve testnames for doctests
Kevin Butler [Wed, 4 Nov 2015 23:41:33 +0000 (23:41 +0000)]
librustdoc: improve testnames for doctests

8 years agoAuto merge of #29648 - steveklabnik:rollup, r=steveklabnik
bors [Thu, 5 Nov 2015 21:51:29 +0000 (21:51 +0000)]
Auto merge of #29648 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29609, #29611, #29613, #29614, #29619, #29624, #29630
- Failed merges:

8 years agoRollup merge of #29630 - apasel422:marker, r=steveklabnik
Steve Klabnik [Thu, 5 Nov 2015 21:28:50 +0000 (22:28 +0100)]
Rollup merge of #29630 - apasel422:marker, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #29624 - rilut:patch-1, r=steveklabnik
Steve Klabnik [Thu, 5 Nov 2015 21:28:49 +0000 (22:28 +0100)]
Rollup merge of #29624 - rilut:patch-1, r=steveklabnik

Thanks.
r? @steveklabnik

8 years agoRollup merge of #29619 - steveklabnik:gh28824, r=alexcrichton
Steve Klabnik [Thu, 5 Nov 2015 21:28:49 +0000 (22:28 +0100)]
Rollup merge of #29619 - steveklabnik:gh28824, r=alexcrichton

Fixes #28824

8 years agoRollup merge of #29614 - bluss:vec-drop-comment, r=Gankro
Steve Klabnik [Thu, 5 Nov 2015 21:28:49 +0000 (22:28 +0100)]
Rollup merge of #29614 - bluss:vec-drop-comment, r=Gankro

vec: Remove old comment in Vec::drop

This comment was leftover from an earlier revision of a PR, something
that never was merged. There is no ZST special casing in Vec::drop.

8 years agoRollup merge of #29613 - steveklabnik:29506, r=alexcrichton
Steve Klabnik [Thu, 5 Nov 2015 21:28:49 +0000 (22:28 +0100)]
Rollup merge of #29613 - steveklabnik:29506, r=alexcrichton

in favor of just expect()

Fixes #29506

8 years agoRollup merge of #29611 - steveklabnik:gh25918, r=alexcrichton
Steve Klabnik [Thu, 5 Nov 2015 21:28:49 +0000 (22:28 +0100)]
Rollup merge of #29611 - steveklabnik:gh25918, r=alexcrichton

Originally, this was my 30 minute introduction, and we eventually made
it the opener to the book. But as #25918 has shown, the example I use
here has some issues. The good news is that Rust makes heap allocation
syntatically expensive, but the bad news is that that means showing
equivalent programs from Rust and other languages is difficult. After
thinking about it, I'm not sure this section is pulling its weight, and
since it has problems, I'd rather just pull it than try to re-write it
right now. I think the book is fine without it.

FIxes #25918

8 years agoRollup merge of #29609 - ivan:rustdoc-ctrl-s, r=steveklabnik
Steve Klabnik [Thu, 5 Nov 2015 21:28:48 +0000 (22:28 +0100)]
Rollup merge of #29609 - ivan:rustdoc-ctrl-s, r=steveklabnik

Rustdoc pages with a search box inadvertently override `ctrl-s` in addition to the intended `s` and `S` keys.  You can test this in at least Firefox and Chrome (tested: Windows): press `ctrl-s` on http://doc.rust-lang.org/std/.  The search box is focused when instead the browser's save feature should be activated.  This PR fixes `ctrl-s` and possibly other browser shortcuts.

8 years agoRemove stability annotations from trait impl items
Vadim Petrochenkov [Thu, 5 Nov 2015 21:13:46 +0000 (00:13 +0300)]
Remove stability annotations from trait impl items

Remove `stable` stability annotations from inherent impls

8 years agoAuto merge of #29583 - dotdash:mir_small_agg, r=nikomatsakis
bors [Thu, 5 Nov 2015 20:06:13 +0000 (20:06 +0000)]
Auto merge of #29583 - dotdash:mir_small_agg, r=nikomatsakis

Fix handling of small aggregate function arguments and assignments of temporaries to lvalues.

8 years agoTidy `core::marker` doc summaries
Andrew Paseltiner [Thu, 5 Nov 2015 18:29:46 +0000 (13:29 -0500)]
Tidy `core::marker` doc summaries

8 years agoAuto merge of #29565 - sfackler:issue-29540, r=huonw
bors [Thu, 5 Nov 2015 18:15:26 +0000 (18:15 +0000)]
Auto merge of #29565 - sfackler:issue-29540, r=huonw

Closes #29540

r? @huonw

8 years agodoc(lib.rs): fix #L79 with inline link syntax
Rizky Luthfianto [Thu, 5 Nov 2015 17:15:32 +0000 (00:15 +0700)]
doc(lib.rs): fix #L79 with inline link syntax

8 years agoConvert TODO into FIXME
Niko Matsakis [Thu, 5 Nov 2015 16:54:24 +0000 (11:54 -0500)]
Convert TODO into FIXME

8 years agoAuto merge of #29593 - ben0x539:reflect-doc-comment, r=steveklabnik
bors [Thu, 5 Nov 2015 16:29:07 +0000 (16:29 +0000)]
Auto merge of #29593 - ben0x539:reflect-doc-comment, r=steveklabnik

Rustdoc takes the first paragraph as a summary, so having a huge
paragraph that ends with introducing an example looked somewhat wrong on
the module page.

8 years agoBeef up macro designator docs
Steve Klabnik [Thu, 5 Nov 2015 15:46:56 +0000 (16:46 +0100)]
Beef up macro designator docs

Fixes #28824

8 years ago`EmbargoVisitor::reexports` isn't needed
Vadim Petrochenkov [Thu, 5 Nov 2015 15:42:48 +0000 (18:42 +0300)]
`EmbargoVisitor::reexports` isn't needed

8 years agoFix handling of fat pointer function arguments
Björn Steinbrink [Thu, 5 Nov 2015 15:18:45 +0000 (16:18 +0100)]
Fix handling of fat pointer function arguments

The store for the "extra" data went to the wrong destination.

8 years agorustc_privacy: Do not export items needed solely for the reachability analysis
Vadim Petrochenkov [Thu, 5 Nov 2015 15:17:33 +0000 (18:17 +0300)]
rustc_privacy: Do not export items needed solely for the reachability analysis

Process them in middle::reachable instead
Add tests for reachability of trait methods written in UFCS form

8 years agoremove excess string allocation
Steve Klabnik [Thu, 5 Nov 2015 14:30:32 +0000 (15:30 +0100)]
remove excess string allocation

&format!("...") is the same as "" if we're not doing any interpolation,
and doesn't allocate an intermediate String.

8 years agovec: Remove old comment in Vec::drop
Ulrik Sverdrup [Thu, 5 Nov 2015 13:37:45 +0000 (14:37 +0100)]
vec: Remove old comment in Vec::drop

This comment was leftover from an earlier revision of a PR, something
that never was merged. There is no ZST special casing in Vec::drop.

8 years agoRemove .ok().expect()
Steve Klabnik [Thu, 5 Nov 2015 13:40:50 +0000 (14:40 +0100)]
Remove .ok().expect()

in favor of just expect()

Fixes #29506

8 years agoRemove short intro from README
Steve Klabnik [Thu, 5 Nov 2015 13:04:39 +0000 (14:04 +0100)]
Remove short intro from README

Originally, this was my 30 minute introduction, and we eventually made
it the opener to the book. But as #25918 has shown, the example I use
here has some issues. The good news is that Rust makes heap allocation
syntatically expensive, but the bad news is that that means showing
equivalent programs from Rust and other languages is difficult. After
thinking about it, I'm not sure this section is pulling its weight, and
since it has problems, I'd rather just pull it than try to re-write it
right now. I think the book is fine without it.

FIxes #25918

8 years agoAuto merge of #29610 - steveklabnik:rollup, r=steveklabnik
bors [Thu, 5 Nov 2015 12:49:44 +0000 (12:49 +0000)]
Auto merge of #29610 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #29416, #29537, #29538, #29539, #29567, #29568, #29571, #29579
- Failed merges:

8 years agodocs for Reflect: blank line after first sentence
Benjamin Herr [Wed, 4 Nov 2015 22:37:27 +0000 (23:37 +0100)]
docs for Reflect: blank line after first sentence

Rustdoc takes the first paragraph as a summary, so having a huge
paragraph that ends with introducing an example looked somewhat wrong on
the module page.

8 years agoRollup merge of #29579 - steveklabnik:gh27322, r=apasel422
Steve Klabnik [Thu, 5 Nov 2015 11:43:03 +0000 (12:43 +0100)]
Rollup merge of #29579 - steveklabnik:gh27322, r=apasel422

Fixes #27322

8 years agoRollup merge of #29571 - steveklabnik:gh29322, r=apasel422
Steve Klabnik [Thu, 5 Nov 2015 11:43:03 +0000 (12:43 +0100)]
Rollup merge of #29571 - steveklabnik:gh29322, r=apasel422

Fixes #29322