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 11 pull requests #127665

Merged
merged 29 commits into from
Jul 13, 2024
Merged

Rollup of 11 pull requests #127665

merged 29 commits into from
Jul 13, 2024

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    31851d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a05cb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c3673f View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Fix import suggestion ice

    chenyukang committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    fe5581d View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    87856c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3ef94e View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    03bee1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42653c0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2c8bbee View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    843f5dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd135e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cef8a04 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6cdbe6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f768db6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    87c7a42 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fe76650 View commit details
    Browse the repository at this point in the history
  8. Rename the internal const_strlen to just strlen

    Since the libs and lang teams completed an FCP to allow for const
    `strlen` ([1]), currently implemented with `const_eval_select`, there is
    no longer any reason to avoid this specific function or use it only in
    const.
    
    Rename it to reflect this status change.
    
    [1]: rust-lang#113219 (comment)
    tgross35 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2772f89 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1fd0311 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#126502 - cuviper:dump-mir-exclude-alloc-byt…

    …es, r=estebank
    
    Ignore allocation bytes in some mir-opt tests
    
    This adds `rustc -Zdump-mir-exclude-alloc-bytes` to skip writing allocation bytes in MIR dumps, and applies it to tests that were failing on s390x due to its big-endian byte order.
    
    Fixes rust-lang#126261
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5d56572 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#126922 - asquared31415:asm_binary_label, r=…

    …estebank
    
    add lint for inline asm labels that look like binary
    
    fixes rust-lang#94426
    
    Due to a bug/feature in LLVM, labels composed of only the digits `0` and `1` can sometimes be confused with binary literals, even if a binary literal would not be valid in that position.
    
    This PR adds detection for such labels and also as a drive-by change, adds a note to cases such as `asm!(include_str!("file"))` that the label that it found came from an expansion of a macro, it wasn't found in the source code.
    
    I expect this PR to upset some people that were using labels `0:` or `1:` without issue because they never hit the case where LLVM got it wrong, but adding a heuristic to the lint to prevent this is not feasible - it would involve writing a whole assembly parser for every target that we have assembly support for.
    
    [zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202024-06-20/near/445870628)
    
    r? ``@estebank``
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    fc0136e View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#127209 - sayantn:xop, r=Amanieu

    Added the `xop` target-feature and the `xop_target_feature` feature gate
    
    This is an effort towards rust-lang#127208. This adds the `xop` target feature gated by `xop_target_feature`.
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a6a7129 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#127310 - chenyukang:yukang-fix-suggest-impo…

    …rt-ice, r=estebank
    
    Fix import suggestion ice
    
    Fixes rust-lang#127302
    
    rust-lang#127302 only crash in edition 2015
    rust-lang#120074 can only reproduced in edition 2021
    so I added revisions in test file.
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    afb2fbf View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#127338 - Oneirical:ready-your-arbatests, r=…

    …jieyouxu
    
    Migrate `extra-filename-with-temp-outputs` and `issue-85019-moved-src-dir` `run-make` tests to rmake
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    Please try:
    
    try-job: armhf-gnu
    // try-job: test-various // already tried
    try-job: x86_64-msvc
    try-job: aarch64-apple
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    6cdef05 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#127381 - Oneirical:testalt-consciousness, r…

    …=jieyouxu
    
    Migrate `issue-83045`, `rustc-macro-dep-files` and `env-dep-info` `run-make` tests to rmake
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    Please try on musl.
    
    try-job: dist-x86_64-musl
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    38c314e View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#127535 - spastorino:unsafe_code-unsafe_exte…

    …rn_blocks, r=oli-obk
    
    Fire unsafe_code lint on unsafe extern blocks
    
    Fixes rust-lang#126738
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2e0591b View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#127619 - compiler-errors:precise-capturing-…

    …better-sugg, r=oli-obk
    
    Suggest using precise capturing for hidden type that captures region
    
    Adjusts the "add `+ '_`" suggestion for opaques to instead suggest adding or reusing the `+ use<>` in the opaque.
    
    r? oli-obk or please re-roll if you're busy!
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    20cf4eb View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#127631 - compiler-errors:yeet-fully-norm, r…

    …=lcnr
    
    Remove `fully_normalize`
    
    Yeet this function and replace it w/ some `ObligationCtxt` instead. It wasn't called very often anyways.
    
    r? lcnr
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    4bfc106 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#127632 - compiler-errors:precise-capturing-…

    …rustdoc, r=fmease
    
    Implement `precise_capturing` support for rustdoc
    
    Implements rustdoc (+json) support for local (i.e. non-cross-crate-inlined) RPITs with `use<...>` precise capturing syntax.
    
    Tests kinda suck. They're really hard to write 😰
    
    r? `@fmease` or re-roll if you're too busy!
    also cc `@aDotInTheVoid` for the json side
    
    Tracking:
    * rust-lang#127228 (comment) (not fully fixed for cross-crate-inlined opaques)
    * rust-lang#123432
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c0d9499 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#127660 - tgross35:const_strlen-rename, r=dt…

    …olnay
    
    Rename the internal `const_strlen` to just `strlen`
    
    Since the libs and lang teams completed an FCP to allow for const `strlen` ([1]), currently implemented with `const_eval_select`, there is no longer any reason to avoid this specific function or use it only in const.
    
    Rename it to reflect this status change.
    
    [1]: rust-lang#113219 (comment)
    workingjubilee authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    8f8734c View commit details
    Browse the repository at this point in the history