Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 28 pull requests #55320

Closed
wants to merge 82 commits into from
Closed

Rollup of 28 pull requests #55320

wants to merge 82 commits into from

Commits on Sep 3, 2018

  1. Flesh out struct keyword docs

    The whole keyword docs thing is pretty new in Rust's history and needs
    some work before it's a shining gem. Here's hoping I can provide that.
    
    I basically shoved in a bunch of the most important information from the
    reference and the book, along with leaving links to both at the end. I
    don't think keyword docs need to have complete detail, just all the
    broad strokes, so if someone's confused about a usage of a keyword they
    can look at the std documentation for that keyword.
    iirelu committed Sep 3, 2018
    Configuration menu
    Copy the full SHA
    047aac5 View commit details
    Browse the repository at this point in the history
  2. Add docs for as keyword

    It's pretty basic and could do with more details, but it's a good
    starter until someone else improves it.
    iirelu committed Sep 3, 2018
    Configuration menu
    Copy the full SHA
    1142bbd View commit details
    Browse the repository at this point in the history
  3. Add keyword docs on const

    Turns out writing docs on keywords that are used in multiple different
    places in entirely different contexts gets a little harder. I put a
    footnote on `*const` syntax just to make sure you can find it if need
    be, but it might need more detail.
    iirelu committed Sep 3, 2018
    Configuration menu
    Copy the full SHA
    c1bd8a9 View commit details
    Browse the repository at this point in the history
  4. Fix a few small things, re-word others

    Mostly addressing notes on ambiguous syntax and spurious newlines.
    iirelu committed Sep 3, 2018
    Configuration menu
    Copy the full SHA
    6cbcfa2 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2018

  1. Add docs for crate keyword

    I think it might be used in some other things, but I'm not fluent enough
    at sifting through the rust compiler's source code to find every use of
    a specific keyword.
    
    This leaves the question of how to document the `extern` keyword, what
    with how much overlap it has with `crate`, but that's used with ABI
    stuff so that should be fine.
    iirelu committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    f8d6261 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2018

  1. Add keyword docs on enum

    iirelu committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    f15a1ec View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2018

  1. Add docs on extern keyword

    iirelu committed Sep 9, 2018
    Configuration menu
    Copy the full SHA
    f91ad44 View commit details
    Browse the repository at this point in the history
  2. Expand fn keyword docs

    iirelu committed Sep 9, 2018
    Configuration menu
    Copy the full SHA
    a5c4a38 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2018

  1. Document for keyword

    iirelu committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    f7a6638 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2018

  1. Document if keyword.

    iirelu committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    5d05ae7 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2018

  1. Configuration menu
    Copy the full SHA
    5393b27 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2018

  1. Document impl keyword

    This commit also splits out linky-line-thingies into two lines, which
    judging from the source code for tidy, should be enough to make it shut
    up and accept me for who I am, dammit.
    iirelu committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    738e58d View commit details
    Browse the repository at this point in the history
  2. Rework let keyword docs

    It didn't strictly need to be reworked and I'm not sure my version is
    better, but oh well, I'm doing it for consistency.
    iirelu committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    165690b View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2018

  1. Add keyword docs for loop.

    iirelu committed Sep 24, 2018
    Configuration menu
    Copy the full SHA
    76a353b View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2018

  1. Removed dead links to unwritten keyword docs

    Most of these will eventually be filled, but right now travis-ci enjoys
    complaining about the fact that there's links that lead nowhere, so
    they're gone. Hopefully someone remembers to re-add them later.
    iirelu committed Sep 26, 2018
    Configuration menu
    Copy the full SHA
    50f631c View commit details
    Browse the repository at this point in the history
  2. Incorporate criticisms into keyword docs

    Thanks to @Centril for these.
    iirelu committed Sep 26, 2018
    Configuration menu
    Copy the full SHA
    577dbc8 View commit details
    Browse the repository at this point in the history
  3. Remove the last broken link.

    Dangit. I really thought I got them all.
    iirelu committed Sep 26, 2018
    Configuration menu
    Copy the full SHA
    619dfeb View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2018

  1. rustc: Tweak filenames encoded into metadata

    This commit is a fix for rust-lang#54408 where on nightly right now whenever
    generics are inlined the path name listed for the inlined function's
    debuginfo is a relative path to the cwd, which surely doesn't exist!
    Previously on beta/stable the debuginfo mentioned an absolute path which
    still didn't exist, but more predictably didn't exist.
    
    The change between stable/nightly is that nightly is now compiled with
    `--remap-path-prefix` to give a deterministic prefix to all
    rustc-generated paths in debuginfo. By using `--remap-path-prefix` the
    previous logic would recognize that the cwd was remapped, causing the
    original relative path name of the standard library to get emitted. If
    `--remap-path-prefix` *wasn't* passed in then the logic would create an
    absolute path name and then create a new source file entry.
    
    The fix in this commit is to apply the "recreate the source file entry
    with an absolute path" logic a bit more aggresively. If the source
    file's name was remapped then we don't touch it, but otherwise we always
    take the working dir (which may have been remapped) and then join it to
    the file to ensure that we process all relative file names as well.
    
    The end result is that the standard library should have an absolute path
    for all file names in debuginfo (using our `--remap-path-prefix`
    argument) as it does on stable after this patch.
    
    Closes rust-lang#54408
    alexcrichton committed Sep 27, 2018
    Configuration menu
    Copy the full SHA
    63c471e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2018

  1. Configuration menu
    Copy the full SHA
    e961d39 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2018

  1. update tcp stream documentation

    Charles Hathaway committed Oct 10, 2018
    Configuration menu
    Copy the full SHA
    c514b62 View commit details
    Browse the repository at this point in the history
  2. Accept Option<Box<$t:ty>> in macro argument

    Given the following code, compile successfuly:
    
    ```
    macro_rules! test {
        (
            fn fun() -> Option<Box<$t:ty>>;
        ) => {
            fn fun(x: $t) -> Option<Box<$t>>
            { Some(Box::new(x)) }
        }
    }
    
    test! {
        fn fun() -> Option<Box<i32>>;
    }
    ```
    estebank committed Oct 10, 2018
    Configuration menu
    Copy the full SHA
    c77a0cf View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2018

  1. Small changes to fix documentation auto compile issues

    Charles Hathaway committed Oct 11, 2018
    Configuration menu
    Copy the full SHA
    4530b8c View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2018

  1. Configuration menu
    Copy the full SHA
    f8550a4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a70ef6a View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2018

  1. in which unused-parens suggestions heed what the user actually wrote

    Aaron Hill pointed out that unnecessary parens around a macro call
    (paradigmatically, `format!`) yielded a suggestion of hideous
    macro-expanded code. (The slightly unusual choice of using the
    pretty-printer to compose suggestions was quite recently commented on
    in the commit message for 1081bbb ("abolish ICE when pretty-printing
    async block"), but without any grounds to condemn it as a 𝘣𝘢𝘥
    choice. Hill's report provides the grounds.) `span_to_snippet` is
    fallable as far as the type system is concerned (because, who knows,
    macros or something), so the pretty-printing can live on in the
    oft-neglected `else` branch.
    
    Resolves rust-lang#55109.
    zackmdavis committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    475be10 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2018

  1. Configuration menu
    Copy the full SHA
    655f9d8 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2018

  1. submodules: update clippy from 5afdf8b to b1d0343

    Changes:
    ````
    new_ret_no_self: add sample from rust-lang#3313 to Known Problems section.
    Support multiline comments and hopefully fix panic
    Check for comments in collapsible ifs
    Resolve ICE in needless range loop lint
    RIIR update_lints: Update changelog links
    Rename if_let_redundant_pattern_matching to redundant_pattern_matching
    Add lint for redundant pattern matching for explicit return boolean
    Fix issue rust-lang#3322: reword help message for len_zero
    Simplify manual_memcpy suggestion in some cases
    Fix dogfood
    Update known problems for unnecessary_fold
    RIIR update_lints: Replace lint count in README.md
    Rename `active_lints` to `usable_lints`
    Add comment on WalkDir vs. fs::read_dir
    sort_by -> sort_by_key
    Some more documentation for clippy_dev
    Use `WalkDir` to also gather from subdirectories
    Avoid linting `boxed_local` on trait implementations.
    Website: Make lint categories linkable
    Restore clippy_dummy's placeholder name
    Swap order of methods in `needless_range_loop` suggestion in some cases
    Revert "Exclude pattern guards from unnecessary_fold lint"
    Exclude pattern guards from unnecessary_fold lint
    ````
    matthiaskrgr committed Oct 21, 2018
    Configuration menu
    Copy the full SHA
    9378705 View commit details
    Browse the repository at this point in the history
  2. Clarified code example

    The example was not as clear as it could be because it was making an assumption about the structure of the data in order to multiply the number of collection elements by the item size. This change demonstrates the idea more straightforwardly, without the calculation.
    peterjoel authored Oct 21, 2018
    Configuration menu
    Copy the full SHA
    0f6e274 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9f70096 View commit details
    Browse the repository at this point in the history
  4. only issue "variant of the expected type" suggestion for enums

    Felix S. Klock II pointed out that this suggestion (introduced in
    pull-request rust-lang#43178 / eac7410) was being issued for one-field-struct
    expected types (in which case it is misleading and outright wrong),
    even though it was only intended for one-field enum-variants (most
    notably, `Some`). Particularly tender-hearted code-historians may be
    inclined to show mercy towards the author of rust-lang#43178 on the grounds
    that it's somewhat confusing that struct field definitions are given
    in a type called `ty::VariantDef`.
    
    Add a conditional to adhere to the original intent. (It would be
    possible to generalize to structs, but not obviously net desirable.)
    This adds a level of indentation, so the diff here is going to be
    easier to read in ignore-whitespace mode (`-w`).
    
    Resolves rust-lang#55250.
    zackmdavis committed Oct 21, 2018
    Configuration menu
    Copy the full SHA
    b0d3d3b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c675111 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2018

  1. Configuration menu
    Copy the full SHA
    412ad9b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f0a352 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5b84550 View commit details
    Browse the repository at this point in the history
  4. Reproduce the underlying issue

    nll (and thus the algorithm for actual promotion) don't know about some casts anymore
    oli-obk committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    0ba1262 View commit details
    Browse the repository at this point in the history
  5. Unimplement ExactSizeIterator

    If root is not START_BLOCK, `basic_blocks().len() - visited` does not represent
    their exact size.
    sinkuu committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    80a6b73 View commit details
    Browse the repository at this point in the history
  6. Add a cheap mode for compute_missing_ctors.

    `compute_missing_ctors` is called a lot. It produces a vector, which can
    be reasonably large (e.g. 100+ elements), but the vector is almost
    always only checked for emptiness.
    
    This commit changes `compute_missing_ctors` so it can be called in a
    cheap way that just indicates if the vector would be empty. If
    necessary, the function can subsequently be called in an expensive way
    to compute the full vector.
    
    This change reduces instruction counts for several benchmarks up to 2%.
    nnethercote committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    b5336c0 View commit details
    Browse the repository at this point in the history
  7. Suggest appropriate syntax on missing lifetime specifier in return type

    Suggest using `'static` when a lifetime is missing in the return type
    with a structured suggestion instead of a note.
    estebank committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    e1e52eb View commit details
    Browse the repository at this point in the history
  8. review comments

    estebank committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    d0bd69a View commit details
    Browse the repository at this point in the history
  9. [review comments] modify test and clean up code

    Co-Authored-By: estebank <[email protected]>
    oli-obk and estebank committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    dd91c8f View commit details
    Browse the repository at this point in the history
  10. Fix Rustdoc ICE when checking blanket impls

    Fixes rust-lang#55001, rust-lang#54744
    
    Previously, SelectionContext would unconditionally cache the selection
    result for an obligation. This worked fine for most users of
    SelectionContext, but it caused an issue when used by Rustdoc's blanket
    impl finder.
    
    The issue occured when SelectionContext chose a ParamCandidate which
    contained inference variables. Since inference variables can change
    between calls to select(), it's not safe to cache the selection result -
    the chosen candidate might not be applicable for future results, leading
    to an ICE when we try to run confirmation.
    
    This commit prevents SelectionContext from caching any ParamCandidate
    that contains inference variables. This should always be completely
    safe, as trait selection should never depend on a particular result
    being cached.
    
    I've also added some extra debug!() statements, which I found helpful in
    tracking down this bug.
    Aaron1011 committed Oct 22, 2018
    Configuration menu
    Copy the full SHA
    4f2624c View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2018

  1. Remove redundant clone

    sinkuu committed Oct 23, 2018
    Configuration menu
    Copy the full SHA
    fda3326 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d960a5 View commit details
    Browse the repository at this point in the history
  3. Do some copy editing on the release notes

    I was reading through the release notes to find something and noticed
    some small grammatical and consistency issues.
    carols10cents committed Oct 23, 2018
    Configuration menu
    Copy the full SHA
    8d6ee8f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4972bea View commit details
    Browse the repository at this point in the history
  5. Update stdsimd submodule

    Fixes a SSE2 bug.
    kazcw committed Oct 23, 2018
    Configuration menu
    Copy the full SHA
    3d9231c View commit details
    Browse the repository at this point in the history
  6. Hopefully fix compile error

    This was added in the fortnight this PR spent stale. I'm hoping this
    one-liner fixes it.
    iirelu committed Oct 23, 2018
    Configuration menu
    Copy the full SHA
    320ec81 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3539132 View commit details
    Browse the repository at this point in the history
  8. Set RUST_BACKTRACE=0 for rustdoc-ui/failed-doctest-output.rs

    This UI test is sensitive to backtrace output, so it should make sure
    that backtraces are not enabled by the environment.
    cuviper committed Oct 23, 2018
    Configuration menu
    Copy the full SHA
    f2443a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2018

  1. Update compiler-builtins submodule

    This commit updates our `compiler-builtins` submodule which brings in at
    least a few improvements for intrinsics on wasm32
    alexcrichton committed Oct 24, 2018
    Configuration menu
    Copy the full SHA
    398a264 View commit details
    Browse the repository at this point in the history
  2. This is a regression test for rust-lang#54478.

    I confirmed that it fails on:
    rustdoc 1.30.0-beta.12 (96a2298 2018-10-04)
    and passes on:
    rustdoc 1.31.0-nightly (f99911a 2018-10-23)
    pnkfelix committed Oct 24, 2018
    Configuration menu
    Copy the full SHA
    be2075c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#53507 - phungleson:fix-impl-from-for-waker,…

    … r=cramertj
    
    Add doc for impl From for Waker
    
    As part of issue rust-lang#51430 (cc @skade).
    
    The impl is very simple, so not sure if we need to go into any details.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    f5bc109 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#54626 - alexcrichton:dwarf-generics, r=mich…

    …aelwoerister
    
    rustc: Tweak filenames encoded into metadata
    
    This commit is a fix for rust-lang#54408 where on nightly right now whenever
    generics are inlined the path name listed for the inlined function's
    debuginfo is a relative path to the cwd, which surely doesn't exist!
    Previously on beta/stable the debuginfo mentioned an absolute path which
    still didn't exist, but more predictably didn't exist.
    
    The change between stable/nightly is that nightly is now compiled with
    `--remap-path-prefix` to give a deterministic prefix to all
    rustc-generated paths in debuginfo. By using `--remap-path-prefix` the
    previous logic would recognize that the cwd was remapped, causing the
    original relative path name of the standard library to get emitted. If
    `--remap-path-prefix` *wasn't* passed in then the logic would create an
    absolute path name and then create a new source file entry.
    
    The fix in this commit is to apply the "recreate the source file entry
    with an absolute path" logic a bit more aggresively. If the source
    file's name was remapped then we don't touch it, but otherwise we always
    take the working dir (which may have been remapped) and then join it to
    the file to ensure that we process all relative file names as well.
    
    The end result is that the standard library should have an absolute path
    for all file names in debuginfo (using our `--remap-path-prefix`
    argument) as it does on stable after this patch.
    
    Closes rust-lang#54408
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    28bde7f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#54965 - chathaway-codes:update-tcp-stream-d…

    …ocs, r=GuillaumeGomez
    
    update tcp stream documentation
    
    A small styling issue that seemed inconsistent here when compared to other places (such as https://doc.rust-lang.org/beta/std/net/struct.TcpListener.html).
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    60c3626 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#54977 - estebank:macro-arg-parse, r=pnkfelix

    Accept `Option<Box<$t:ty>>` in macro argument
    
    Given the following code, compile successfuly:
    
    ```
    macro_rules! test {
        (
            fn fun() -> Option<Box<$t:ty>>;
        ) => {
            fn fun(x: $t) -> Option<Box<$t>>
            { Some(Box::new(x)) }
        }
    }
    
    test! {
        fn fun() -> Option<Box<i32>>;
    }
    ```
    
    Fix rust-lang#25274.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    f3858f8 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#55138 - zackmdavis:the_paren_trap, r=pnkfelix

    in which unused-parens suggestions heed what the user actually wrote
    
    Aaron Hill pointed out that unnecessary parens around a macro call (paradigmatically, `format!`) yielded a suggestion of hideous macro-expanded code. `span_to_snippet` is fallable as far as the type system is concerned, so the pretty-printing can live on in the oft-neglected `else` branch.
    
    Resolves rust-lang#55109.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    6ffbde2 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#55167 - nnethercote:is_missing_ctors_empty,…

    … r=varkor
    
    Add a "cheap" mode for `compute_missing_ctors`.
    
    `compute_missing_ctors` produces a vector. It is called a lot, but the
    vector is almost always only checked for emptiness.
    
    This commit introduces a specialized variant of `compute_missing_ctors`
    (called `is_missing_ctors_empty`) that determines if the resulting set
    would be empty, and changes the callsite so that `compute_missing_ctors`
    is only called in the rare cases where it is needed. The code
    duplication is unfortunate but I can't see a better way to do it.
    
    This change reduces instruction counts for several benchmarks up to 2%.
    
    r? @varkor
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    f2d335b View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#55173 - estebank:suggest-static, r=oli-obk

    Suggest appropriate syntax on missing lifetime specifier in return type
    
    Suggest using `'static` when a lifetime is missing in the return type
    with a structured suggestion instead of a note.
    
    Fix rust-lang#55170.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    942a162 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#55225 - bjorn3:rustc_link, r=cramertj

    Move cg_llvm::back::linker to cg_utils
    
    This allows it to be reused by alternative codegen backends.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    848c2b7 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#55245 - matthiaskrgr:clippy, r=nikomatsakis

    submodules: update clippy from 5afdf8b to b1d0343
    
    Just a routine update.
    
    Changes:
    ````
    new_ret_no_self: add sample from rust-lang#3313 to Known Problems section.
    Support multiline comments and hopefully fix panic
    Check for comments in collapsible ifs
    Resolve ICE in needless range loop lint
    RIIR update_lints: Update changelog links
    Rename if_let_redundant_pattern_matching to redundant_pattern_matching
    Add lint for redundant pattern matching for explicit return boolean
    Fix issue rust-lang#3322: reword help message for len_zero
    Simplify manual_memcpy suggestion in some cases
    Fix dogfood
    Update known problems for unnecessary_fold
    RIIR update_lints: Replace lint count in README.md
    Rename `active_lints` to `usable_lints`
    Add comment on WalkDir vs. fs::read_dir
    sort_by -> sort_by_key
    Some more documentation for clippy_dev
    Use `WalkDir` to also gather from subdirectories
    Avoid linting `boxed_local` on trait implementations.
    Website: Make lint categories linkable
    Restore clippy_dummy's placeholder name
    Swap order of methods in `needless_range_loop` suggestion in some cases
    Revert "Exclude pattern guards from unnecessary_fold lint"
    Exclude pattern guards from unnecessary_fold lint
    ````
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    2eff59f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#55247 - peterjoel:peterjoel-prim-char-doc-e…

    …xample, r=joshtriplett
    
    Clarified code example in char primitive doc
    
    The example was not as clear as it could be because it was making an assumption about the structure of the data in order to multiply the number of elements in the slice by the item size. This change demonstrates the idea more straightforwardly, without needing a calculation, by just comparing the size of the slices.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    7f06f15 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#55251 - NieDzejkob:master, r=TimNN

    Fix a typo in the documentation of RangeInclusive
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    10e99ff View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#55253 - zackmdavis:some_suggestion, r=pnkfelix

    only issue "variant of the expected type" suggestion for enums
    
    This suggestion (introduced in pull-request rust-lang#43178 / eac7410) was being issued for one-field-struct expected types (in which case it is misleading and outright wrong), even though it was only intended for one-field enum-variants (most notably, `Some`).
    
    Add a conditional to adhere to the original intent. (It would be possible to generalize to structs, but not obviously net desirable.) This adds a level of indentation, so the diff here is going to be
    easier to read in [ignore-whitespace mode](rust-lang@b0d3d3b9?w=1).
    
    Resolves rust-lang#55250.
    
    r? @pnkfelix
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    c562357 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#55254 - rust-lang:clean-two-dots, r=Guillau…

    …meGomez
    
    Correct trailing ellipsis in name_from_pat
    
    r? @GuillaumeGomez
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    5b22503 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#55257 - mjbshaw:static, r=oli-obk

    Allow extern statics with an extern type
    
    Fixes rust-lang#55239
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    3e6d322 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#55258 - Aaron1011:fix/rustdoc-blanket, r=Gu…

    …illaumeGomez
    
    Fix Rustdoc ICE when checking blanket impls
    
    Fixes rust-lang#55001, rust-lang#54744
    
    Previously, SelectionContext would unconditionally cache the selection
    result for an obligation. This worked fine for most users of
    SelectionContext, but it caused an issue when used by Rustdoc's blanket
    impl finder.
    
    The issue occured when SelectionContext chose a ParamCandidate which
    contained inference variables. Since inference variables can change
    between calls to select(), it's not safe to cache the selection result -
    the chosen candidate might not be applicable for future results, leading
    to an ICE when we try to run confirmation.
    
    This commit prevents SelectionContext from caching any ParamCandidate
    that contains inference variables. This should always be completely
    safe, as trait selection should never depend on a particular result
    being cached.
    
    I've also added some extra debug!() statements, which I found helpful in
    tracking down this bug.
    kennytm authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    c8ead34 View commit details
    Browse the repository at this point in the history
  18. Typo

    oli-obk authored Oct 24, 2018
    Configuration menu
    Copy the full SHA
    c2463af View commit details
    Browse the repository at this point in the history
  19. Documents From implementations for Stdio

    Add a basic summary and an example to From `ChildStdin`, `ChildStdout`,
    `ChildStderr`, `File` implementations.
    octronics committed Oct 24, 2018
    Configuration menu
    Copy the full SHA
    0b82e03 View commit details
    Browse the repository at this point in the history
  20. Fix doc for new copysign functions

    Thanks to @LukasKalbertodt for catching this. Addresses a comment
    raised in rust-lang#55169 after it was merged.
    raphlinus committed Oct 24, 2018
    Configuration menu
    Copy the full SHA
    538f65e View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2018

  1. Rollup merge of rust-lang#55269 - matthiaskrgr:typos_oct, r=zackmdavis

    fix typos in various places
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    aa85e3e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#55271 - sinkuu:traversal_iter, r=matthewjasper

    Unimplement ExactSizeIterator for MIR traversing iterators
    
    If `root` is not `START_BLOCK`, `basic_blocks().len() - visited` does not represent their exact size.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    b2071e7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#55282 - sinkuu:redundant_clone, r=estebank

    Remove redundant clone
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    71b94aa View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#55285 - integer32llc:release-notes-improvem…

    …ents, r=Aaronepower
    
    Do some copy editing on the release notes
    
    I was reading through the release notes to find something and noticed
    some small grammatical and consistency issues.
    
    I'm happy to revert any of these changes if folks disagree with them!
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    a7e4adf View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#55291 - kazcw:master, r=nikomatsakis

    Update stdsimd submodule
    
    Fixes a SSE2 bug. (rust-lang#55249)
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    163ffa0 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#55303 - alexcrichton:update-libm, r=kennytm

    Update compiler-builtins submodule
    
    This commit updates our `compiler-builtins` submodule which brings in at
    least a few improvements for intrinsics on wasm32
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    4e3cb07 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#53931 - iirelu:keyword-docs, r=steveklabnik

    Gradually expanding libstd's keyword documentation
    
    I'm working on adding new keywords to the documentation and refreshing the incomplete older ones, and I'm hoping that I can eventually add all the standalone-usable keywords after a bunch of incremental work. It would be cool to see the keywords section of std's docs be a definitive reference as to what each keyword means when you see it, and that's what I'm aiming towards with this work.
    
    I'm far from a Rust expert so there will inevitably be things to fix in this, also I'm not sure if this should be a bunch of quickly-merged PRs or one gradually-updated PR that gets merged once it's done.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    2fe4308 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#55200 - octronics:gh51430, r=kennytm

    Documents `From` implementations for `Stdio`
    
    This PR solves part of rust-lang#51430 by adding a basic summary and an example to each `impl From` inside `process` module (`ChildStdin`, `ChildStdout`, `ChildStderr`, `File`).
    
    It does not document if the conversions allocate memory and how expensive they are.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    5221790 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#55296 - cuviper:rustdoc-ui-backtrace, r=nik…

    …omatsakis
    
    Set RUST_BACKTRACE=0 for rustdoc-ui/failed-doctest-output.rs
    
    This UI test is sensitive to backtrace output, so it should make sure
    that backtraces are not enabled by the environment.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    3b2ea2b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#55306 - pnkfelix:issue-54478-regression-tes…

    …t-jemalloc-ctl, r=nikomatsakis
    
    Regression test for rust-lang#54478.
    
    This is a regression test for rust-lang#54478.
    
    I confirmed that it fails on:
    rustdoc 1.30.0-beta.12 (96a2298 2018-10-04)
    and passes on:
    rustdoc 1.31.0-nightly (f99911a 2018-10-23)
    
    Fix rust-lang#54478
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    d307d8a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#55328 - raphlinus:copysign_typo, r=joshtrip…

    …lett
    
    Fix doc for new copysign functions
    
    Thanks to \@LukasKalbertodt for catching this. Addresses a comment raised in rust-lang#55169 after it was merged.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    8419761 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#54921 - GuillaumeGomez:line-numbers, r=Quie…

    …tMisdreavus
    
    Add line numbers option to rustdoc
    
    Fixes rust-lang#22878.
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    7d1165c View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#55262 - oli-obk:dangling_alloc_id_ice, r=Ra…

    …lfJung
    
    Change the ICE from rust-lang#55223 to a hard error
    kennytm committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    bff4637 View commit details
    Browse the repository at this point in the history