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 10 pull requests #122735

Merged
merged 26 commits into from
Mar 19, 2024
Merged

Rollup of 10 pull requests #122735

merged 26 commits into from
Mar 19, 2024

Commits on Mar 15, 2024

  1. Don't trigger unused_qualifications on global paths

    # Conflicts:
    #	tests/ui/lint/lint-qualification.stderr
    jieyouxu committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    85bad8d View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2024

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

Commits on Mar 17, 2024

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

Commits on Mar 18, 2024

  1. Add tests

    veera-sivarajan committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    935842b View commit details
    Browse the repository at this point in the history
  2. Fix ICE: global_asm!() Don't Panic When Unable to Evaluate Constant

    A bit of an inelegant fix but given that the error is created only
    after call to `const_eval_poly()` and that the calling function
    cannot propagate the error anywhere else, the error has to be
    explicitly handled inside `mono_item.rs`.
    veera-sivarajan committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    97cc700 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Configuration menu
    Copy the full SHA
    3948210 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect mutable suggestion information for binding in ref pattern.

    For ref pattern in func param, the mutability suggestion has to apply to the binding.
    
    For example: `fn foo(&x: &i32)` -> `fn foo(&(mut x): &i32)`
    
    fixes rust-lang#122415
    surechen committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    19f72df View commit details
    Browse the repository at this point in the history
  3. Ensure stack before parsing dot-or-call

    There are many cases where, due to codegen or a massively unruly codebase,
    a deeply nested call(call(call(call(call(call(call(call(call(f())))))))))
    can happen. This is a spot where it would be good to grow our stack, so that
    we can survive to tell the programmer their code is dubiously written.
    workingjubilee committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    cdeb170 View commit details
    Browse the repository at this point in the history
  4. The AssocOpaqueTy HIR node is not actually needed to differentiate fr…

    …om other hir nodes that were fed
    oli-obk committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    bdb682e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a370ed7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3a09680 View commit details
    Browse the repository at this point in the history
  7. Change only_local to enum type and change the macros to always requir…

    …e a variant of that enum.
    surechen committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    db48dfc View commit details
    Browse the repository at this point in the history
  8. add test for casting pointer to union with unsized tail

    Lukas Markeffsky committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    7b21c1a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9de0921 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4c95d76 View commit details
    Browse the repository at this point in the history
  11. compiletest: Add support for //@ aux-bin: foo.rs

    Which enables ui tests to use auxiliary binaries. See the added
    self-test for an example.
    Enselic committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    3a5eb35 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#122435 - jieyouxu:unused_qualifications_glo…

    …bal_paths, r=petrochenkov
    
    Don't trigger `unused_qualifications` on global paths
    
    Fixes rust-lang#122374.
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    489c2e9 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#122556 - jieyouxu:non-identifier-format-arg…

    …, r=petrochenkov
    
    Extend format arg help for simple tuple index access expression
    
    The help is only applicable for simple field access `a.b` and (with this PR) simple tuple index access expressions `a.0`.
    
    Closes rust-lang#122535.
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    45e005d View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#122634 - Enselic:aux-bin, r=oli-obk

    compiletest: Add support for `//@ aux-bin: foo.rs`
    
    Which enables ui tests to use auxiliary binaries. See the added
    self-test for an example.
    
    This is an enabler for the test in rust-lang#121573.
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    42dec6f View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#122677 - surechen:fix_122415, r=Nadrieril

    Fix incorrect mutable suggestion information for binding in ref pattern.
    
    For ref pattern in func param, the mutability suggestion has to apply to the binding.
    
    For example: `fn foo(&x: &i32)` -> `fn foo(&(mut x): &i32)`
    
    fixes rust-lang#122415
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    17386b8 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#122691 - veera-sivarajan:bugfix-121099, r=A…

    …manieu
    
    Fix ICE: `global_asm!()` Don't Panic When Unable to Evaluate Constant
    
    Fixes rust-lang#121099
    
    A bit of an inelegant fix but given that the error is created only
    after call to `const_eval_poly()` and that the calling function
    cannot propagate the error anywhere else, the error has to be
    explicitly handled inside `mono_item.rs`.
    
    r? `@Amanieu`
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    2ad2492 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#122695 - surechen:make_only_local_explict_a…

    …rgument, r=lcnr
    
    Change only_local to a enum type.
    
    Change only_local to enum type and change the macros to always require a variant of that enum.
    
    r? `@lcnr`
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    ea7ea2d View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#122717 - workingjubilee:handle-call-call-ca…

    …ll-call-calling-me-maybe, r=compiler-errors
    
    Ensure stack before parsing dot-or-call
    
    There are many cases where, due to codegen or a massively unruly codebase, a deeply nested `call(call(call(call(call(call(call(call(call(f())))))))))` can happen. This is a spot where it would be good to grow our stack, so that we can survive to tell the programmer their code is dubiously written.
    
    Closes rust-lang#122715
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    6561890 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#122719 - oli-obk:nested_static_feed_hir, r=…

    …fee1-dead
    
    Ensure nested statics have a HIR node to prevent various queries from ICEing
    
    fixes rust-lang/miri#3389
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    671a2f7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    f773124 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#122724 - lukas-code:unsized-union-cast-ice-…

    …test, r=compiler-errors
    
    add test for casting pointer to union with unsized tail
    
    closes rust-lang#122581
    matthiaskrgr authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    433449a View commit details
    Browse the repository at this point in the history