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

Merged
merged 13 commits into from
Mar 10, 2022
Merged

Rollup of 5 pull requests #94802

merged 13 commits into from
Mar 10, 2022

Commits on Feb 22, 2022

  1. Constify slice indexing

    fee1-dead committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    5941fef View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2022

  1. Change rustc_deprecated to use note

    This keeps `reason` around for the time being. This is necessary to
    avoid breakage during the bootstrap process. This change, as a whole,
    brings `#[rustc_deprecated]` more in line with `#[deprecated]`.
    jhpratt committed Mar 4, 2022
    Configuration menu
    Copy the full SHA
    6efc8e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2022

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

Commits on Mar 9, 2022

  1. diagnostics: use rustc_on_unimplemented to recommend [].iter()

    To make this work, the `#[rustc_on_unimplemented]` data needs to be used to
    report method resolution errors, which is most of what this commit does.
    
    Fixes rust-lang#94581
    notriddle committed Mar 9, 2022
    Configuration menu
    Copy the full SHA
    32d7f81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5636655 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    38478ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    814c18a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ac2afa0 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2022

  1. Rollup merge of rust-lang#92150 - compiler-errors:better_usize_to_wid…

    …e_ptr_cast, r=petrochenkov
    
    Improve suggestion when casting usize to (possibly) wide pointer
    
    I thought rust-lang#92125 was a wonderful idea, so I went ahead and took a stab at it. Not sure if my approach is the best going forward, but I'm happy with the improvement in the error message.
    
    Iwill definitely address any changes if people are more opinionated with the wordings or want more features.
    
    Also, do I need to add a new error code?
    
    (Fixes rust-lang#92125)
    matthiaskrgr authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    7473750 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#94635 - jhpratt:merge-deprecated-attrs, r=d…

    …avidtwco
    
    Merge `#[deprecated]` and `#[rustc_deprecated]`
    
    The first commit makes "reason" an alias for "note" in `#[rustc_deprecated]`, while still prohibiting it in `#[deprecated]`.
    
    The second commit changes "suggestion" to not just be a feature of `#[rustc_deprecated]`. This is placed behind the new `deprecated_suggestion` feature. This needs a tracking issue; let me know if this PR will be approved and I can create one.
    
    The third commit is what permits `#[deprecated]` to be used when `#![feature(staged_api)]` is enabled. This isn't yet used in stdlib (only tests), as it would require duplicating all deprecation attributes until a bootstrap occurs. I intend to submit a follow-up PR that replaces all uses and removes the remaining `#[rustc_deprecated]` code after the next bootstrap.
    
    `@rustbot` label +T-libs-api +C-feature-request +A-attributes +S-waiting-on-review
    matthiaskrgr authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    313a668 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#94657 - fee1-dead:const_slice_index, r=oli-obk

    Constify `Index{,Mut}` for `[T]`, `str`, and `[T; N]`
    
    Several panic functions were rewired (via `const_eval_select`) to simpler implementations that do not require formatting for compile-time usage.
    
    r? ```@oli-obk```
    matthiaskrgr authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    fe034cb View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#94746 - notriddle:notriddle/method-rustc-on…

    …-unimplemented, r=davidtwco
    
    diagnostics: use rustc_on_unimplemented to recommend `[].iter()`
    
    To make this work, the `#[rustc_on_unimplemented]` data needs to be used to
    report method resolution errors, which is most of what this commit does.
    
    Fixes rust-lang#94581
    matthiaskrgr authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    e7281d0 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#94788 - estebank:removal-suggestion, r=petr…

    …ochenkov
    
    Account for suggestions for complete removal of lines
    
    Fix  rust-lang#94192.
    matthiaskrgr authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    6bbaca7 View commit details
    Browse the repository at this point in the history