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

Merged
merged 20 commits into from
Apr 16, 2024
Merged

Rollup of 7 pull requests #123991

merged 20 commits into from
Apr 16, 2024

Commits on Apr 4, 2024

  1. Rename ModSep to PathSep

    fmease committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3cbc9e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2024

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

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    99e88e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83d73e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    34bce07 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb6f856 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ba6c166 View commit details
    Browse the repository at this point in the history
  6. nits

    compiler-errors committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    25c0cf0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    05bb3d2 View commit details
    Browse the repository at this point in the history
  8. Rebase fallout

    compiler-errors committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    98890be View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    619e044 View commit details
    Browse the repository at this point in the history
  10. Add test

    compiler-errors committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    9d72808 View commit details
    Browse the repository at this point in the history
  11. Fix clippy

    compiler-errors committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2beb6a4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#123016 - compiler-errors:no-type-var-origin…

    …, r=lcnr
    
    Remove `TypeVariableOriginKind` and `ConstVariableOriginKind`
    
    It's annoying to have to import `TypeVariableOriginKind` just to fill it with `MiscVariable` for almost every use. Every other usage other than `TypeParameterDefinition` wasn't even used -- I can see how it may have been useful once for debugging, but I do quite a lot of typeck debugging and I've never really needed it.
    
    So let's just remove it, and keep around the only useful thing which is the `DefId` of the param for `var_for_def`.
    
    This is based on rust-lang#123006, which removed the special use of `TypeVariableOriginKind::OpaqueInference`, which I'm pretty sure I was the one that added.
    
    r? lcnr or re-roll to types
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    9cc26b5 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#123462 - fmease:rn-mod-sep-to-path-sep, r=n…

    …nethercote
    
    Cleanup: Rename `ModSep` to `PathSep`
    
    `::` is usually referred to as the *path separator* (citation needed).
    
    The existing name `ModSep` for *module separator* is a bit misleading since it in fact separates the segments of arbitrary path segments, not only ones resolving to modules. Let me just give a shout-out to associated items (`T::Assoc`, `<Ty as Trait>::function`) and enum variants (`Option::None`).
    
    Motivation: Reduce friction for new contributors, prevent potential confusion.
    
    cc `@petrochenkov`
    r? nnethercote or compiler
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    c566599 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#123603 - compiler-errors:no-intrinsic, r=es…

    …tebank
    
    Don't even parse an intrinsic unless the feature gate is enabled
    
    Don't return true in `tcx.is_intrinsic` if the function is defined locally and `#![feature(intrinsics)]` is not enabled. This is a slightly more general fix than rust-lang#123526, since rust-lang#123587 shows that we have simplifying assumptions about intrinsics elsewhere in the compiler.
    
    This will make the code ICE again if the user **enables** `#[feature(intrinsics)]`, but I kind of feel like if we want to fix that, we should make the `INTERNAL_FEATURES` lint `Deny` again. Perhaps we could do that on non-nightly compilers. Or we should just stop compilation altogether if they have `#![feature]` enabled on a non-nightly compiler.
    
    As for the UX of *real* cases of hitting these ICEs, I believe pretty strongly that if a compiler/stdlib dev is modifying internal intrinsics (intentionally, like when making a change to rustc) we have no guarantee to make the ICE better looking for them. Honestly, *not* spitting out a stack trace is probably a disservice to the people who hit those ICEs in that case.
    
    r? `@Nilstrieb` `@estebank`
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1ad9fea View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#123926 - compiler-errors:no-ann, r=estebank

    Fix pretty HIR for anon consts in diagnostics
    
    This removes the `NoAnn` printer which skips over nested bodies altogether, which is confusing, and requires users of `{ty|qpath|pat}_to_string` to pass in `&tcx` which now impleemnts `hir_pretty::PpAnn`.
    
    There's one case where this "regresses" by actually printing out the body of the anon const -- we could suppress that, but I don't expect people to actually get anon consts like that unless they're fuzzing, tbh.
    
    r? estebank
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1069ad3 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#123973 - matthiaskrgr:crashs_fix_cmt, r=fmease

    crashes: readme: add reminder to add Fixes #abcde to prs to automatically close issues.
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    f0d235a View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#123984 - rcvalle:rust-triagebot-add-rustc-s…

    …anitizers, r=compiler-errors
    
    sanitizers: Add rustc_sanitizers to triagebot.toml
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    445eb2e View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#123989 - compiler-errors:type-dependent-def…

    …-id, r=oli-obk
    
    Just use `type_dependent_def_id` to figure out what the method is for an expr
    
    The calls to `lookup_method_for_diagnostic` are overkill.
    
    r? oli-obk
    fmease authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    daa2ebc View commit details
    Browse the repository at this point in the history