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 7 pull requests #111380

Merged
merged 33 commits into from
May 9, 2023
Merged

Rollup of 7 pull requests #111380

merged 33 commits into from
May 9, 2023

Commits on Apr 22, 2023

  1. Add GNU Property Note

    Charisee committed Apr 22, 2023
    Configuration menu
    Copy the full SHA
    cb4f815 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Configuration menu
    Copy the full SHA
    fd8aa5e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9624d2b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57c6a31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    336a656 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    87a1b38 View commit details
    Browse the repository at this point in the history
  6. implement review comment

    Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
    Ezrashaw and estebank committed May 5, 2023
    Configuration menu
    Copy the full SHA
    d2608df View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3e64e98 View commit details
    Browse the repository at this point in the history
  8. Disallow (min) specialization imps with no items

    Such implementations are usually mistakes and are not used in the
    compiler or standard library (after this commit) so forbid them with
    `min_specialization`.
    matthewjasper committed May 5, 2023
    Configuration menu
    Copy the full SHA
    bd928a0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fafe9e7 View commit details
    Browse the repository at this point in the history
  10. Add GNU Property Note

    Charisee committed May 5, 2023
    Configuration menu
    Copy the full SHA
    68a5bb4 View commit details
    Browse the repository at this point in the history
  11. rewriting match on endianness

    Charisee committed May 5, 2023
    Configuration menu
    Copy the full SHA
    1fc0442 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    59ecbd2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5eb29c7 View commit details
    Browse the repository at this point in the history
  14. Add feature gate

    est31 committed May 5, 2023
    Configuration menu
    Copy the full SHA
    83b4df4 View commit details
    Browse the repository at this point in the history
  15. rewriting match on endianness

    Charisee committed May 5, 2023
    Configuration menu
    Copy the full SHA
    37f3e2f View commit details
    Browse the repository at this point in the history
  16. Report nicer lifetime errors for specialization

    Add an obligation cause for these error so that the error points to the
    implementations that caused the error.
    matthewjasper committed May 5, 2023
    Configuration menu
    Copy the full SHA
    f46eabb View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. Configuration menu
    Copy the full SHA
    0bb43c6 View commit details
    Browse the repository at this point in the history
  2. cleanup

    chenyukang committed May 8, 2023
    Configuration menu
    Copy the full SHA
    20e6e6a View commit details
    Browse the repository at this point in the history
  3. fix ice in suggesting

    chenyukang committed May 8, 2023
    Configuration menu
    Copy the full SHA
    a7fc32c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a9051d8 View commit details
    Browse the repository at this point in the history
  5. Rename some suggestion/note functions

    We really shouldn't be naming functions `fn check_*` unless they're
    doing *typechecking*. It's especially misleading when we're doing this
    inside of HIR typeck.
    compiler-errors committed May 8, 2023
    Configuration menu
    Copy the full SHA
    a283f58 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4731a25 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5e94b5f View commit details
    Browse the repository at this point in the history
  8. Update books

    rustbot committed May 8, 2023
    Configuration menu
    Copy the full SHA
    bf7e07f View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. Configuration menu
    Copy the full SHA
    4d219d0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#110304 - cchiw:master, r=davidtwco

    Add GNU Property Note
    
    Fix rust-lang#103001
    
    Generates the missing property note:
    ```
    Displaying notes found in: .note.gnu.property
      Owner                Data size 	Description
      GNU                  0x00000010	NT_GNU_PROPERTY_TYPE_0	      Properties: x86 feature: IBT
    ```
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    02a85bd View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#110504 - compiler-errors:tweak-borrow-sugg,…

    … r=cjgillot
    
    Tweak borrow suggestion span
    
    Avoids a `span_to_snippet` call when we don't need to surround the expression in parentheses. The fact that the suggestion was using the whole span of the expression rather than just appending a `&` was prevented me from using `// run-rustfix` in another PR (rust-lang#110432 (comment)).
    
    Also some drive-by renames of functions that have been annoying me for a bit.
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    2ecc722 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#110583 - Ezrashaw:tweak-make-mut-spans, r=e…

    …stebank
    
    tweak "make mut" spans when assigning to locals
    
    Work towards fixing rust-lang#106857
    
    This PR just cleans up a lot of spans which is helpful before properly fixing the issues. Best reviewed commit-by-commit.
    
    r? `@estebank`
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    ff30b8c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#110694 - est31:builtin, r=petrochenkov

    Implement builtin # syntax and use it for offset_of!(...)
    
    Add `builtin #` syntax to the parser, as well as a generic infrastructure to support both item and expression position builtin syntaxes. The PR also uses this infrastructure for the implementation of the `offset_of!` macro, added by rust-lang#106934.
    
    cc `@petrochenkov` `@DrMeepster`
    
    cc rust-lang#110680 `builtin #` tracking issue
    cc rust-lang#106655 `offset_of!` tracking issue
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    dbd090c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#111120 - chenyukang:yukang-suggest-let, r=N…

    …ilstrieb
    
    Suggest let for possible binding with ty
    
    Origin from rust-lang#109128 (comment)
    
    r? `@Nilstrieb`
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    8c51701 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#111252 - matthewjasper:min-spec-improvement…

    …s, r=compiler-errors
    
    Min specialization improvements
    
    - Don't allow specialization impls with no items, such implementations are probably not correct and only occur as mistakes in the compiler and standard library
    - Fix a missing normalization call
    - Adds spans for lifetime errors from overly general specializations
    
    Closes rust-lang#79457
    Closes rust-lang#109815
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    f748bb1 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#111361 - rustbot:docs-update, r=ehuss

    Update books
    
    ## rust-lang/edition-guide
    
    1 commits in 6038be9d37d7251c966b486154af621d1794d7af..f63e578b92ff43e8cc38fcaa257b660f45c8a8c2
    2023-04-26 18:40:19 UTC to 2023-04-26 18:40:19 UTC
    
    - Fix grammar (rust-lang/edition-guide#281)
    
    ## rust-embedded/book
    
    2 commits in 897fcf566f16bf87bf37199bdddec1801fd00532..d9eb4c3f75435b008881062ffa77bf0d1527b37d
    2023-05-08 10:06:29 UTC to 2023-05-08 07:19:03 UTC
    
    - Update Interoperability section (rust-embedded/book#351)
    - Update c-with-rust.md (rust-embedded/book#352)
    
    ## rust-lang/reference
    
    3 commits in 1f8dc727e94ae4ef92adf70df979521a1ea1143e..28dc0f3576b55f5e57c5d6e65cd68ba3161e9fd5
    2023-05-06 20:25:36 UTC to 2023-05-05 01:51:00 UTC
    
    - Add an entry for macro_rules in the "Weak keywords" lexer block (rust-lang/reference#1356)
    - Document f16c target feature (rust-lang/reference#1337)
    - Fix example for non-x86 targets (rust-lang/reference#1334)
    
    ## rust-lang/rust-by-example
    
    4 commits in 31961fe22521a779070a44a8f30a2b00a20b6212..8ee9528b72b927cff8fd32346db8bbd1198816f0
    2023-05-01 21:18:34 UTC to 2023-04-25 11:19:41 UTC
    
    - add: zero padding example (rust-lang/rust-by-example#1706)
    - Update reenter_question_mark.md (rust-lang/rust-by-example#1705)
    - Clarify array out-of-bounds behavior. (rust-lang/rust-by-example#1703)
    - Update README.md (rust-lang/rust-by-example#1704)
    
    ## rust-lang/rustc-dev-guide
    
    2 commits in 2a5eb92197e9cf8fe91164dcbf4f9b88c0d7e73d..28dbeaf5c44bc7f5111ad412e99f2d7c5cec6c90
    2023-05-02 02:20:21 UTC to 2023-04-26 19:09:10 UTC
    
    - Add unset-exec-env compiletest header. (rust-lang/rustc-dev-guide#1682)
    - extend the sixth trait system requirement (rust-lang/rustc-dev-guide#1671)
    Dylan-DPC authored May 9, 2023
    Configuration menu
    Copy the full SHA
    9d913eb View commit details
    Browse the repository at this point in the history