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 #80999

Closed
wants to merge 31 commits into from
Closed

Commits on Dec 18, 2020

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

Commits on Dec 20, 2020

  1. Add a std::io::read_to_string function

    The equivalent of `std::fs::read_to_string`, but generalized to all
    `Read` impls.
    
    As the documentation on `std::io::read_to_string` says, the advantage of
    this function is that it means you don't have to create a variable first
    and it provides more type safety since you can only get the buffer out
    if there were no errors. If you use `Read::read_to_string`, you have to
    remember to check whether the read succeeded because otherwise your
    buffer will be empty.
    
    It's friendlier to newcomers and better in most cases to use an explicit
    return value instead of an out parameter.
    camelid committed Dec 20, 2020
    Configuration menu
    Copy the full SHA
    1f9a8a1 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2020

  1. Configuration menu
    Copy the full SHA
    4ee6d1b View commit details
    Browse the repository at this point in the history
  2. Add error docs

    camelid committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    588786a View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2021

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

Commits on Jan 12, 2021

  1. Add docs on performance

    camelid committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    7463292 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2021

  1. Use better ICE message when no MIR is available

    The ICE message is somewhat confusing and overly specific - the issue is
    that there's no MIR available.
    
    This should make debugging these ICEs easier since the error tells you
    what's actually wrong, not what it was trying to do when it failed.
    
    cc rust-lang#80952 (comment)
    camelid committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    c3f7429 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e83fec View commit details
    Browse the repository at this point in the history
  3. Update books

    ehuss committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    6bfd987 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d65cb6e View commit details
    Browse the repository at this point in the history
  5. Fixed incorrect doc comment

    ">" is right alignment, not left
    trevarj authored Jan 13, 2021
    Configuration menu
    Copy the full SHA
    697b20f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52adfdd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    64c1b0d View commit details
    Browse the repository at this point in the history
  8. Fix stabilisation version of slice_strip

    See rust-lang#77853 (review)
    
    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    ijackson committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    b59fa3d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c0c607c View commit details
    Browse the repository at this point in the history
  10. Remove the unused context from CreateDebugLocation

    This went unused in commit 88d874d, part of rust-lang#68965.
    cuviper committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    0342fd1 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. Add as_ref and as_mut methods for Bound

    Add as_ref and as_mut method for std::ops::range::Bound, patterned off
    of the methods of the same name on Option.
    glittershark committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    eb72dc5 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#80169 - frewsxcv:frewsxcv-docs-fix, r=jyn514

    Recommend panic::resume_unwind instead of panicking.
    
    Fixes rust-lang#79950.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    15a3bab View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#80217 - camelid:io-read_to_string, r=m-ou-se

    Add a `std::io::read_to_string` function
    
    I recognize that you're usually supposed to open an issue first, but the
    implementation is very small so it's okay if this is closed and it was 'wasted
    work' :)
    
    -----
    
    The equivalent of `std::fs::read_to_string`, but generalized to all
    `Read` impls.
    
    As the documentation on `std::io::read_to_string` says, the advantage of
    this function is that it means you don't have to create a variable first
    and it provides more type safety since you can only get the buffer out
    if there were no errors. If you use `Read::read_to_string`, you have to
    remember to check whether the read succeeded because otherwise your
    buffer will be empty.
    
    It's friendlier to newcomers and better in most cases to use an explicit
    return value instead of an out parameter.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    49bcdfd View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#80444 - glittershark:bound-as-ref, r=dtolnay

    Add as_ref and as_mut methods for Bound
    
    Add as_ref and as_mut method for std::ops::range::Bound, patterned off
    of the methods of the same name on Option.
    
    I'm not quite sure what the process is for introducing new feature gates (this is my first contribution) so I've left these ungated, but happy to do whatever is necessary to gate them.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    9a6f2b0 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#80834 - bugadani:vecdeque, r=oli-obk

    Remove unreachable panics from VecDeque::{front/back}[_mut]
    
    `VecDeque`'s `front`, `front_mut`, `back` and `back_mut` methods are implemented in terms of the index operator, which causes these functions to contain [unreachable panic calls](https://rust.godbolt.org/z/MTnq1o).
    
    This PR reimplements these methods in terms of `get[_mut]` instead.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    4d6f810 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#80944 - LingMan:map_or, r=nagisa

    Use Option::map_or instead of `.map(..).unwrap_or(..)`
    
    ``@rustbot`` modify labels +C-cleanup +T-compiler
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    003431a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#80958 - bstrie:deptbdnums, r=KodrAus

    Deprecate-in-future the constants superceded by RFC 2700
    
    Successor to rust-lang#78335, re-opened after addressing the issues tracked in rust-lang#68490.
    
    This PR makes use of the new ability to explicitly annotate an item as triggering the deprecated-in-future lint (via `rustc_deprecated(since="TBD"`, see rust-lang#78381). We might call this *soft deprecation*; unlike with deprecation, users will *not* receive warnings when compiling code that uses these items *unless* they opt-in via `#[warn(deprecated_in_future)]`. Like deprecation, soft deprecation causes documentation to formally acknowledge that an item is marked for eventual deprecation (at a non-specific point in the future).
    
    With this new ability, we can sidestep all debate about when or on what timeframe something ought to be deprecated; as long as we can agree that something ought to be deprecated, we can receive much of the benefits of deprecation with none of the drawbacks. For these items specifically, the libs team has already agreed that they should be deprecated (see rust-lang#68490 (comment)).
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    639785c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#80966 - KodrAus:deprecate/spin_loop_hint, r…

    …=m-ou-se
    
    Deprecate atomic::spin_loop_hint in favour of hint::spin_loop
    
    For rust-lang#55002
    
    We wanted to leave `atomic::spin_loop_hint` alone when stabilizing `hint::spin_loop` so folks had some time to migrate. This now deprecates `atomic_spin_loop_hint`.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    352b283 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#80969 - camelid:monomorph-ice-msg, r=nagisa

    Use better ICE message when no MIR is available
    
    The ICE message is somewhat confusing and overly specific - the issue is
    that there's no MIR available.
    
    This should make debugging these ICEs easier since the error tells you
    what's actually wrong, not what it was trying to do when it failed.
    
    cc rust-lang#80952 (comment)
    cc ``@jyn514``
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    b4747e8 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#80972 - KodrAus:deprecate/remove_item, r=na…

    …gisa
    
    Remove unstable deprecated Vec::remove_item
    
    Closes rust-lang#40062
    
    The `Vec::remove_item` method was deprecated in `1.46.0` (in August of 2020). This PR now removes that unstable method entirely.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    f83fead View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#80973 - ehuss:update-books, r=ehuss

    Update books
    
    ## nomicon
    
    2 commits in a5a48441d411f61556b57d762b03d6874afe575d..a8584998eacdea7106a1dfafcbf6c1c06fcdf925
    2020-12-06 10:39:41 +0900 to 2021-01-06 12:49:49 -0500
    - Update vector code examples
    - Remove outdated information about `jemalloc`
    
    ## reference
    
    13 commits in b278478b766178491a8b6f67afa4bcd6b64d977a..50af691f838937c300b47812d0507c6d88c14f97
    2020-12-21 18:18:03 -0800 to 2021-01-12 21:19:20 -0800
    - Update grammar for parser unification. (rust-lang/reference#927)
    - Define constraining an implementation (rust-lang/reference#928)
    - Document extra behavior of #[no_mangle] (rust-lang/reference#930)
    - Add a float examle without a `.`. (rust-lang/reference#929)
    - Add more details about const generics. (rust-lang/reference#921)
    - Fix footnotes. (rust-lang/reference#926)
    - Add "Logic errors" as behavior not considered unsafe (rust-lang/reference#919)
    - Update grammar for order of parameters/arguments. (rust-lang/reference#920)
    - Fix formatting in the tuple section (rust-lang/reference#923)
    - document const generics (rust-lang/reference#901)
    - Update mdbook (rust-lang/reference#918)
    - linkage.md: update link to FFI section of the Book. (rust-lang/reference#917)
    - Document array expression with a const. (rust-lang/reference#914)
    
    ## book
    
    8 commits in 5bb44f8b5b0aa105c8b22602e9b18800484afa21..ac57a0ddd23d173b26731ccf939f3ba729753275
    2020-12-18 20:07:31 -0500 to 2021-01-09 14:18:45 -0500
    - Update version of mdbook we're testing with to 0.4.5 (rust-lang/book#2561)
    - Fix grammar in ch13-01-closures.md (rust-lang/book#2534)
    - Merge remote-tracking branch 'origin/pr/2527'
    - Clarify code example ch6.3 (rust-lang/book#2485)
    - Fix link added in rust-lang/book#2495 to be relative and at the bottom
    - Merge remote-tracking branch 'origin/pr/2495'
    - Update output to match the updated poem punctuation
    - Fix rust-lang/book#2539 - Remove fancy apostrophes from poem for Windows
    
    ## rust-by-example
    
    3 commits in 1cce0737d6a7d3ceafb139b4a206861fb1dcb2ab..03e23af01f0b4f83a3a513da280e1ca92587f2ec
    2020-12-21 17:36:29 -0300 to 2021-01-09 10:20:28 -0300
    - Replace for loop with iteration (rust-lang/rust-by-example#1404)
    - Update mdbook (rust-lang/rust-by-example#1402)
    - Add note for match guards to include catch-all (rust-lang/rust-by-example#1401)
    
    ## embedded-book
    
    1 commits in ba34b8a968f9531d38c4dc4411d5568b7c076bfe..ceec19e873be87c6ee5666b030c6bb612f889a96
    2020-11-17 00:20:43 +0000 to 2021-01-03 13:13:10 +0000
    - book.toml: add link to GitHub repo  (rust-embedded/book#276)
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    fd012c2 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#80980 - trevarj:patch-1, r=nagisa

    Fixed incorrect doc comment
    
    ">" is right alignment, not left
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    75c6f6f View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#80981 - bjorn3:bjorn3-patch-1, r=jonas-schi…

    …evink
    
    Fix -Cpasses=list and llvm version print with -vV
    
    cc rust-lang#77975 (comment)
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    70f5725 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#80985 - ijackson:slice-strip-fix, r=jyn514

    Fix stabilisation version of slice_strip
    
    See rust-lang#77853 (review)
    
    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    179673e View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#80990 - cuviper:unused-debug-context, r=nagisa

    llvm: Remove the unused context from CreateDebugLocation
    
    This went unused in commit 88d874d, part of rust-lang#68965.
    JohnTitor authored Jan 14, 2021
    Configuration menu
    Copy the full SHA
    6ae4d31 View commit details
    Browse the repository at this point in the history