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 5 pull requests #94859

Closed
wants to merge 17 commits into from
Closed

Commits on Mar 10, 2022

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

Commits on Mar 11, 2022

  1. Refactor the second half of parse_tt.

    The current structure makes it hard to tell that there are just four
    distinct code paths, depending on how many items there are in `bb_items`
    and `next_items`. This commit introduces a `match` that clarifies
    things.
    nnethercote committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    09c3e82 View commit details
    Browse the repository at this point in the history
  2. Disallow TokenTree::{MetaVar,MetaVarExpr} in matchers.

    They should only appear in transcribers.
    nnethercote committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    4d4baf7 View commit details
    Browse the repository at this point in the history
  3. Add a useful assertion.

    nnethercote committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    9f0798b View commit details
    Browse the repository at this point in the history
  4. Move eof_items handling entirely within inner_parse_loop.

    Also rename `inner_parse_loop` as `parse_tt_inner`, because it's no
    longer just a loop.
    nnethercote committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    c13ca42 View commit details
    Browse the repository at this point in the history
  5. Make next_items a SmallVec.

    For consistency, and to make the code slightly nicer.
    nnethercote committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    235a87f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    95d13fa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4c17217 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bdc3177 View commit details
    Browse the repository at this point in the history
  9. fix a suggestion message

    TaKO8Ki committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    813f00d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    87fba23 View commit details
    Browse the repository at this point in the history
  11. Update GUI test

    GuillaumeGomez committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    aad4227 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#94769 - GuillaumeGomez:collapsed-by-default…

    …, r=notriddle
    
    Collapse blanket and auto-trait impls by default
    
    Blocked on rust-lang#94740 (the two first commits come from it).
    
    This behaviour was changed in rust-lang#88490 and apparently wasn't caught since then.
    
    You can test it [here](https://rustdoc.crud.net/imperio/collapsed-by-default/test_docs/struct.Foo.html#blanket-implementations).
    
    r? `@notriddle`
    Dylan-DPC authored Mar 11, 2022
    Configuration menu
    Copy the full SHA
    9f2986b View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#94798 - nnethercote:parse_tt-refactor, r=pe…

    …trochenkov
    
    `parse_tt` refactorings
    
    Some readability improvements.
    
    r? `@petrochenkov`
    Dylan-DPC authored Mar 11, 2022
    Configuration menu
    Copy the full SHA
    3b30d7d View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#94827 - RalfJung:offset-from-ub, r=oli-obk

    CTFE/Miri: detect out-of-bounds pointers in offset_from
    
    Also I became uneasy with aggressively doing `try_to_int` here -- this will always succeed on Miri, leading to the wrong codepath being taken. We should rather try to convert them both to pointers, and use the integer path as a fallback, so that's what I implemented now.
    
    Hiding whitespaces helps with the diff.
    
    Fixes rust-lang/miri#1950
    
    r? `@oli-obk`
    Dylan-DPC authored Mar 11, 2022
    Configuration menu
    Copy the full SHA
    8de8975 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#94838 - antonok-edm:float-parse-docs, r=Dyl…

    …an-DPC
    
    Make float parsing docs more comprehensive
    
    I was working on some code with some specialized restrictions on float parsing. I noticed the doc comments for `f32::from_str` and `f64::from_str` were missing several cases of valid inputs that are otherwise difficult to discover without looking at source code.
    
    I'm not sure if the doc comments were initially intended to contain a comprehensive description of valid inputs, but I figured it's useful to include these extra cases for reference.
    Dylan-DPC authored Mar 11, 2022
    Configuration menu
    Copy the full SHA
    fcfbcf0 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#94839 - TaKO8Ki:suggest-using-double-colon-…

    …for-struct-field-type, r=cjgillot
    
    Suggest using double colon when a struct field type include single colon
    
    rust-lang#92685
    Dylan-DPC authored Mar 11, 2022
    Configuration menu
    Copy the full SHA
    4f50683 View commit details
    Browse the repository at this point in the history