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 14 pull requests #49620

Closed
wants to merge 38 commits into from
Closed

Rollup of 14 pull requests #49620

wants to merge 38 commits into from

Commits on Mar 26, 2018

  1. Configuration menu
    Copy the full SHA
    c08902b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecaf1f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    101e17d View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2018

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

Commits on Mar 31, 2018

  1. Add test for rustdoc ignore test

    This will check for regression on issue rust-lang#32556
    Phlosioneer committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    fa1d125 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48e3c96 View commit details
    Browse the repository at this point in the history
  3. Add #[must_use] to a few standard library methods

    Chosen to start a precedent of using it on ones that are potentially-expensive and where using it for side effects is particularly discouraged.
    
    Discuss :)
    scottmcm committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    fb7deda View commit details
    Browse the repository at this point in the history
  4. Remove whitespace

    Phlosioneer committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    42bc071 View commit details
    Browse the repository at this point in the history
  5. Add ignore reason

    Phlosioneer committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    cb30975 View commit details
    Browse the repository at this point in the history
  6. Shorten deprecation note

    varkor committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    44ad8fd View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2018

  1. avoid IdxSets containing garbage above the universe length

    This makes sure that all bits in each IdxSet between the universe length
    and the end of the word are all zero instead of being in an indeterminate state.
    
    This fixes a crash with RUST_LOG=rustc_mir, and is probably a good idea
    anyway.
    arielb1 committed Apr 1, 2018
    Configuration menu
    Copy the full SHA
    8f9ec1c View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2018

  1. Configuration menu
    Copy the full SHA
    8531086 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c54a272 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec71453 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f9cc030 View commit details
    Browse the repository at this point in the history
  5. Fix typo

    rolfvandekrol committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    a2a0f21 View commit details
    Browse the repository at this point in the history
  6. Replace as_ref with &

    varkor committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    b2ed9dd View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2018

  1. Configuration menu
    Copy the full SHA
    58217ed View commit details
    Browse the repository at this point in the history
  2. Fix "since" version for getpid feature.

    It was stabilized right before the beta branch was cut for 1.26.0.
    
    See rust-lang#49523 (comment)
    tmccombs committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    9ab5788 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5c4265 View commit details
    Browse the repository at this point in the history
  4. tweak fmt::Arguments docs

    Remove an outdated claim about passing something or other to a function. Also swap the variable names in the example.
    durka committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    93a3e93 View commit details
    Browse the repository at this point in the history
  5. tweak format_args! docs

    Swap the variable names in the example.
    durka committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    333b0a0 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#49179 - varkor:future-deprecation, r=QuietM…

    …isdreavus,GuillaumeGomez
    
    Handle future deprecation annotations
    
    This adds special handling to the `since` parameter of the `deprecated` attribute: in particular, if the `since` version exceeds the version of the compiler, the deprecation notice will not be printed; but a note is added to the documentation stating that the item will be deprecated in a later version.
    
    (I've used `since` for this, rather than adding a new attribute, because it's more seamless and, I feel, intuitive. Plus it involves less code churn.)
    
    ![image](https://user-images.githubusercontent.com/3943692/37611317-ef5cdf16-2b99-11e8-8251-e35e8f7b0137.png)
    ![image](https://user-images.githubusercontent.com/3943692/37611323-f748c2d0-2b99-11e8-966b-11408c73d416.png)
    
    This is a prerequisite for doing things renaming methods in the standard library (e.g. rust-lang#30459). Resolves rust-lang#30785.
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    5f50da5 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#49512 - GuillaumeGomez:intra-links-fields, …

    …r=QuietMisdreavus
    
    Add support for variant and types fields for intra links
    
    Part of rust-lang#43466.
    
    r? @QuietMisdreavus
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    8f21773 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#49516 - GuillaumeGomez:add-union-field-miss…

    …ing-anchor, r=QuietMisdreavus
    
    Add missing anchor for union type fields
    
    r? @QuietMisdreavus
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    7018dd8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#49532 - Phlosioneer:32556-rustdoc-regressio…

    …n-test, r=GuillaumeGomez
    
    Add test for rustdoc ignore test
    
    This will check for regression on issue rust-lang#32556
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    22a9e7b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#49533 - scottmcm:more-must-use, r=nikomatsakis

    Add #[must_use] to a few standard library methods
    
    Chosen to start a precedent of using it on ones that are potentially-expensive and where using it for side effects is particularly discouraged.
    
    Discuss :)
    
    ```rust
    warning: unused return value of `std::iter::Iterator::collect` which must be used: if you really need to exhaust the iterator, consider `.for_each(drop)` instead
      --> $DIR/fn_must_use_stdlib.rs:19:5
       |
    LL |     "1 2 3".split_whitespace().collect::<Vec<_>>();
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    warning: unused return value of `std::borrow::ToOwned::to_owned` which must be used: cloning is often expensive and is not expected to have side effects
      --> $DIR/fn_must_use_stdlib.rs:21:5
       |
    LL |     "hello".to_owned();
       |     ^^^^^^^^^^^^^^^^^^^
    
    warning: unused return value of `std::clone::Clone::clone` which must be used: cloning is often expensive and is not expected to have side effects
      --> $DIR/fn_must_use_stdlib.rs:23:5
       |
    LL |     String::from("world").clone();
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ```
    
    cc rust-lang#48926
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    6a52d57 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#49570 - arielb1:bounded-universe, r=nikomat…

    …sakis
    
    avoid IdxSets containing garbage above the universe length
    
    This makes sure that all bits in each IdxSet between the universe length
    and the end of the word are all zero instead of being in an indeterminate state.
    
    This fixes a crash with RUST_LOG=rustc_mir, and is probably a good idea
    anyway.
    
    r? @nikomatsakis - I think you are responsible for this code area now?
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    74ed5ac View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#49594 - mbrubeck:docs, r=steveklabnik

    Add some performance guidance to std::fs and std::io docs
    
    Adds more documentation about performance to various "read" functions in `fs` and `io`, and to `BufReader`/`BufWriter`, with the goal of helping developers choose the best option for a given task.
    
    r? @steveklabnik
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    20238ef View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#49599 - rolfvandekrol:feature/no_ru, r=frew…

    …sxcv
    
    Fix typo
    
    In `libstd/io/buffered.rs` one example was marked as `no_ru` instead of `no_run`. I assume this is a typo.
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    bad5fdf View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#49603 - GuillaumeGomez:fix-intra-link-trait…

    …-provided-method, r=QuietMisdreavus
    
    Fix url for intra link provided method
    
    Fixes rust-lang#49582.
    
    r? @QuietMisdreavus
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    ec8cde6 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#49609 - abonander:attr-macro-stmt-expr, r=p…

    …etrochenkov
    
    run-pass/attr-stmt-expr: expand test cases
    
    Follow-up to rust-lang#49124 (comment)
    
    r? @petrochenkov
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    933c9f5 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#49612 - tmccombs:stabilize-getpid, r=kennytm

    Fix "since" version for getpid feature.
    
    It was stabilized right before the beta branch was cut for 1.26.0.
    
    See rust-lang#49523 (comment)
    
    This will need to be backported to beta (1.26.0)
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    480f3bf View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#49618 - pftbest:fix_warning, r=SimonSapin

    Fix build error when compiling libcore for 16bit targets
    
    Fixes rust-lang#49617
    
    cc @SimonSapin
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    572fabd View commit details
    Browse the repository at this point in the history
  18. update mdbook

    This includes search for all books, a long-requested feature!
    steveklabnik committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    3d9b3e3 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#49619 - durka:patch-46, r=steveklabnik

    tweak core::fmt docs
    
    Remove an outdated (pre-1.0!) claim about passing something or other to a function. Also swap the variable names in the example.
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    feb7e4a View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#49623 - steveklabnik:update-mdbook, r=Guill…

    …aumeGomez
    
    update mdbook
    
    This includes search for all books, a long-requested feature!
    kennytm committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    fa5d2e2 View commit details
    Browse the repository at this point in the history