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

Merged
merged 25 commits into from
Oct 24, 2024
Merged

Rollup of 10 pull requests #132094

merged 25 commits into from
Oct 24, 2024

Commits on Oct 2, 2024

  1. Fix target_vendor in QNX Neutrino targets

    The `x86_64-pc-nto-qnx710` and `i586-pc-nto-qnx700` targets have `pc` in
    their target triple names, but the vendor was set to the default
    `"unknown"`.
    madsmtm committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    7a3a98d View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. clean up *dyn casts (with principals)

    - remove a redundant check, because we always emit the "better diagnostic" now
    - clean up the comments a bit
    Lukas Markeffsky committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    b89751b View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2024

  1. Configuration menu
    Copy the full SHA
    ab4222a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98c4d96 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2024

  1. Configuration menu
    Copy the full SHA
    d1bf77e View commit details
    Browse the repository at this point in the history
  2. elaborate why dropping principal in *dyn casts is non-trivial

    Lukas Markeffsky committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    46cc5e9 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Rename Receiver -> LegacyReceiver

    As part of the "arbitrary self types v2" project, we are going to
    replace the current `Receiver` trait with a new mechanism based on a
    new, different `Receiver` trait.
    
    This PR renames the old trait to get it out the way. Naming is hard.
    Options considered included:
    * HardCodedReceiver (because it should only be used for things in the
      standard library, and hence is sort-of hard coded)
    * LegacyReceiver
    * TargetLessReceiver
    * OldReceiver
    
    These are all bad names, but fortunately this will be temporary.
    Assuming the new mechanism proceeds to stabilization as intended, the
    legacy trait will be removed altogether.
    
    Although we expect this trait to be used only in the standard library,
    we suspect it may be in use elsehwere, so we're landing this change
    separately to identify any surprising breakages.
    
    It's known that this trait is used within the Rust for Linux project; a
    patch is in progress to remove their dependency.
    
    This is a part of the arbitrary self types v2 project,
    rust-lang/rfcs#3519
    rust-lang#44874
    
    r? @wesleywiser
    adetaylor committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    8f85b90 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    0304809 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e3091d View commit details
    Browse the repository at this point in the history
  3. fix a couple clippy:complexitys

     double_parens
     filter_map_identity
     needless_question_mark
     redundant_guards
    matthiaskrgr committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    dab76ec View commit details
    Browse the repository at this point in the history
  4. fix some manual_map

    matthiaskrgr committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    464f405 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d84d659 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    4e1b3ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1920c66 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4217b87 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#130225 - adetaylor:rename-old-receiver, r=w…

    …esleywiser
    
    Rename Receiver -> LegacyReceiver
    
    As part of the "arbitrary self types v2" project, we are going to replace the current `Receiver` trait with a new mechanism based on a new, different `Receiver` trait.
    
    This PR renames the old trait to get it out the way. Naming is hard. Options considered included:
    * HardCodedReceiver (because it should only be used for things in the standard library, and hence is sort-of hard coded)
    * LegacyReceiver
    * TargetLessReceiver
    * OldReceiver
    
    These are all bad names, but fortunately this will be temporary. Assuming the new mechanism proceeds to stabilization as intended, the legacy trait will be removed altogether.
    
    Although we expect this trait to be used only in the standard library, we suspect it may be in use elsehwere, so we're landing this change separately to identify any surprising breakages.
    
    It's known that this trait is used within the Rust for Linux project; a patch is in progress to remove their dependency.
    
    This is a part of the arbitrary self types v2 project,
    rust-lang/rfcs#3519
    rust-lang#44874
    
    r? `@wesleywiser`
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    9c73bcf View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#131169 - madsmtm:target-info-nto-vendor, r=…

    …wesleywiser
    
    Fix `target_vendor` in QNX Neutrino targets
    
    The `x86_64-pc-nto-qnx710` and `i586-pc-nto-qnx700` targets have `pc` in their target triple names, but the vendor was set to the default `"unknown"`.
    
    CC target maintainers `@flba-eb,` `@gh-tr,` `@jonathanpallant` and `@japaric`
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    40d7872 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    77f2c57 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#131756 - compiler-errors:deeply-normalize-t…

    …ype-err, r=lcnr
    
    Deeply normalize `TypeTrace` when reporting type error in new solver
    
    Normalize the values that come from the `TypeTrace` for various type mismatches.
    
    Side-note: We can't normalize the `TypeError` itself bc it may come from instantiated binders, so it may reference values from within the probe...
    
    r? lcnr
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ad43be3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#131898 - lukas-code:ptr-cast-cleanup, r=com…

    …piler-errors
    
    minor `*dyn` cast cleanup
    
    Small follow-up to rust-lang#130234 to remove a redundant check and clean up comments. No functional changes.
    
    Also, explain why casts cannot drop the principal even though coercions can, and add a test because apparently we didn't have one already.
    
    r? `@WaffleLapkin` or `@compiler-errors`
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    4c0bab3 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#131909 - clubby789:enum-overflow-cast, r=co…

    …mpiler-errors
    
    Prevent overflowing enum cast from ICEing
    
    Fixes rust-lang#131902
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    4b02d64 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#131930 - clubby789:revision-cfg-collide, r=…

    …jieyouxu
    
    Don't allow test revisions that conflict with built in cfgs
    
    Fixes rust-lang#128964
    
    Sorry `@heysujal` I started working on this about 1 minute before your comment by complete coincidence 😅
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f7f411d View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#131956 - Zalathar:llvm-counters, r=compiler…

    …-errors,Swatinem
    
    coverage: Pass coverage mappings to LLVM as separate structs
    
    Instead of trying to cram *N* different kinds of coverage mapping data into a single list for FFI, pass *N* different lists of simpler structs.
    
    This avoids the need to fill unused fields with dummy values, and avoids the need to tag structs with their underlying kind. It also lets us call the dedicated LLVM constructors for each different mapping type, instead of having to go through the complex general-purpose constructor.
    
    Even though this adds multiple new structs to the FFI surface area, the resulting C++ code is simpler and shorter.
    
    ---
    
    I've structured this mostly as a single atomic patch, rather than a series of incremental changes, because that avoids the need to make fiddly fixes to code that is about to be deleted anyway.
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    8f354fc View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#132076 - RalfJung:feature-hashing, r=nnethe…

    …rcote,Mark-Simulacrum
    
    HashStable for rustc_feature::Features: stop hashing compile-time constant
    
    It seems like back in rust-lang@542bc75 this was added as "hash the boolean value of each lang feature", but then in rust-lang@1487bd6 this got split into first hashing a sequence of `bool`s (representing all the features) and then hashing all the feature names... but the list of feature names is a compile-time constant, so it seems entirely unnecessary to hash them?
    
    Cc `@Mark-Simulacrum` who wrote the second of the commits mentioned above.
    Cc `@nnethercote`
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    006a142 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#132088 - compiler-errors:extern-static, r=j…

    …ieyouxu
    
    Print safety correctly in extern static items
    
    Fixes rust-lang#132080
    
    r? spastorino or anyone really
    Zalathar authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7e2bbc3 View commit details
    Browse the repository at this point in the history