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 6 pull requests #96398

Closed

Commits on Feb 19, 2022

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

Commits on Apr 18, 2022

  1. Remove unused macro rules

    est31 committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    3c1e166 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2022

  1. Better handle too many # recovery in raw str

    Point at all the unnecessary trailing `#`.
    Better handle interaction with outer attributes when `;` is missing.
    
    Fix rust-lang#95030.
    estebank committed Apr 24, 2022
    Configuration menu
    Copy the full SHA
    3587406 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dff7f25 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Configuration menu
    Copy the full SHA
    5165295 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5594db0 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#90312 - r00ster91:search, r=Dylan-DPC

    Fix some confusing wording and improve slice-search-related docs
    
    This adds more links between `contains` and `binary_search` because I do think they have some relevant connections. If your (big) slice happens to be sorted and you know it, surely you should be using `[3; 100].binary_search(&5).is_ok()` over `[3; 100].contains(&5)`?
    This also fixes the confusing "searches this sorted X" wording which just sounds really weird because it doesn't know whether it's actually sorted. It should be but it may not be. The new wording should make it clearer that you will probably want to sort it and in the same sentence it also mentions the related function `contains`.
    Similarly, this mentions `binary_search` on `contains`' docs.
    This also fixes some other minor stuff and inconsistencies.
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    7a372e0 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#96149 - est31:remove_unused_macro_matchers,…

    … r=petrochenkov
    
    Remove unused macro rules
    
    Removes rules of internal macros that weren't triggered.
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    fcc18ff View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#96355 - estebank:issue-95030, r=compiler-er…

    …rors
    
    Better handle too many `#` recovery in raw str
    
    Point at all the unnecessary trailing `#`.
    Better handle interaction with outer attributes when `;` is missing.
    
    Fix rust-lang#95030.
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    9fe2d8a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#96372 - compiler-errors:field-method-sugges…

    …t, r=oli-obk
    
    Suggest calling method on nested field when struct is missing method
    
    Similar to the suggestion to change `x.field` to `x.nested.field`, implement a similar suggestion for when `x.method()` should be replaced with `x.nested.method()`.
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    aff1933 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#96379 - PrestonFrom:issue_96335, r=compiler…

    …-errors
    
    delay bug when adjusting `NeverToAny` twice during diagnostic code
    
    Addresses Issue 96335 (rust-lang#96335) by using `delay_span_bug` instead of an assert and returning an error type from `check_expr_meets_expectation_or_error`.
    
    Fixes rust-lang#96335
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    0a869c3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#96384 - lcnr:extern-types-similar, r=compil…

    …er-errors
    
    do not consider two extern types to be similar
    compiler-errors committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    0f11c81 View commit details
    Browse the repository at this point in the history