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

Merged
merged 28 commits into from
Mar 5, 2024
Merged

Rollup of 10 pull requests #121998

merged 28 commits into from
Mar 5, 2024

Commits on Feb 12, 2024

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

Commits on Feb 28, 2024

  1. Improve assert_matches! documentation

    This new documentation tries to avoid to limit the impact of the
    conceptual pitfall, that the if guard relaxes the constraint, when
    really it tightens it. This is achieved by changing the text and
    examples. The previous documentation also chose a rather weird and
    non-representative example for the if guard, that made it needlessly
    complicated to understand.
    Voultapher committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    e478111 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

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

Commits on Mar 2, 2024

  1. Apply review comments

    Voultapher committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    d6438f5 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. Small enhancement to description of From trait

    - fix small typo
    - avoid repetition of formulations
    jonaspleyer committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    fb2b918 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Josh Stone <cuviper@gmail.com>
    Voultapher and cuviper authored Mar 3, 2024
    Configuration menu
    Copy the full SHA
    c45f0a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Tweak parse_asm_args.

    It doesn't need a `Parser` and a `ParseSess`, because the former
    contains the latter.
    nnethercote committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    aa38c26 View commit details
    Browse the repository at this point in the history
  2. Remove file_path_mapping param from ParseSess::new.

    It's always empty.
    nnethercote committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    3996447 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d4ebe1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4260f7e View commit details
    Browse the repository at this point in the history
  5. Extract an arguments struct for Builder::then_else_break

    Most of this method's arguments are usually or always forwarded as-is to
    recursive invocations.
    
    Wrapping them in a dedicated struct allows us to document each struct field,
    and lets us use struct-update syntax to indicate which arguments are being
    modified when making a recursive call.
    Zalathar committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    4146136 View commit details
    Browse the repository at this point in the history
  6. Don't run test_get_os_named_thread on win7

    This test won't work on windows 7, as the Thread::set_name function is
    not implemented there (win7 does not provide a documented mechanism to
    set thread names).
    roblabla committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    9eb927e View commit details
    Browse the repository at this point in the history
  7. include feedback from workingjubilee

    - Refer to trait directly
    - small typo in encapsulate
    
    Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
    jonaspleyer and workingjubilee authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    e463060 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ede25ad View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    05e68fa View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1eedca8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    748da32 View commit details
    Browse the repository at this point in the history
  12. Rename all ParseSess variables/fields/lifetimes as psess.

    Existing names for values of this type are `sess`, `parse_sess`,
    `parse_session`, and `ps`. `sess` is particularly annoying because
    that's also used for `Session` values, which are often co-located, and
    it can be difficult to know which type a value named `sess` refers to.
    (That annoyance is the main motivation for this change.) `psess` is nice
    and short, which is good for a name used this much.
    
    The commit also renames some `parse_sess_created` values as
    `psess_created`.
    nnethercote committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    80d2bdb View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#120976 - matthiaskrgr:constify_TL_statics, …

    …r=lcnr
    
    constify a couple thread_local statics
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    706fe0b View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#121683 - fortanix:raoul/lvi_fixes, r=cuviper

    Fix LVI tests after frame pointers are enabled by default
    
    rust-lang#121203 enables frame pointers by default. This affects LVI mitigations for the `x86_64-fortanix-unknown-sgx` target. LVI remained mitigated correctly, but the tests were too strict.
    
    ``@nshyrei`` , ``@jethrogb``
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    8886c31 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#121703 - compiler-errors:new, r=lcnr

    Add a way to add constructors for `rustc_type_ir` types
    
    Introduces a module called `rustc_type_ir`, in which we can place traits which are named `Ty`/`Region`/`Const`/etc. which expose constructors for the `rustc_type_ir` types. This means we can construct things `Interner::Ty` with `Ty::new_x(...)`, which is needed to uplift the new trait solver into an interner-agnostic crate.
    
    These traits are placed into a *separate* module because they're only intended to be used in interner-agnostic code, and they should mirror the constructors that are provided by the inherent constructor methods in `rustc_middle`.
    
    Putting this up for vibe-check mostly. I haven't copied over any of the type constructors, except for one to create bound types for use in the canonicalizer.
    
    r? lcnr
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    e7bb224 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#121732 - Voultapher:improve-assert_matches-…

    …documentation, r=cuviper
    
    Improve assert_matches! documentation
    
    This new documentation tries to limit the impact of the conceptual pitfall, that the if guard relaxes the constraint, when really it tightens it. This is achieved by changing the text and examples. The previous documentation also chose a rather weird and non-representative example for the if guard, that made it needlessly complicated to understand.
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    008ab33 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#121928 - Zalathar:then-else-args, r=Nadrieril

    Extract an arguments struct for `Builder::then_else_break`
    
    Most of this method's arguments are usually or always forwarded as-is to recursive invocations.
    
    Wrapping them in a dedicated struct allows us to document each struct field, and lets us use struct-update syntax to indicate which arguments are being modified when making a recursive call.
    
    ---
    
    While trying to understand the lowering of `if` expressions, I found it difficult to keep track of the half-dozen arguments passed through to every call to `then_else_break`. I tried switching over to an arguments struct, and I found that it really helps to make sense of what each argument does, and how each call is modifying the arguments.
    
    I have some further ideas for how to streamline these recursive calls, but I've kept those out of this PR so that it's a pure refactoring with no behavioural changes.
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    58a0f64 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#121939 - jonaspleyer:patch-typo-core-From-d…

    …escr, r=workingjubilee
    
    Small enhancement to description of From trait
    
    - fix small typo
    - avoid repetition of formulations
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    9d81d4e View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#121968 - roblabla:fix-win7, r=jhpratt

    Don't run test_get_os_named_thread on win7
    
    This test won't work on windows 7, as the Thread::set_name function is not implemented there (win7 does not provide a documented mechanism to set thread names).
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    4944ab4 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#121969 - nnethercote:ParseSess-cleanups, r=…

    …wesleywiser
    
    `ParseSess` cleanups
    
    The main change here is to rename all `ParseSess` values as `psess`. Plus a few other small cleanups.
    
    r? `@wesleywiser`
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    13b9712 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#121977 - Lee-Janggun:master, r=WaffleLapkin

    Doc: Fix incorrect reference to integer in Atomic{Ptr,Bool}::as_ptr.
    
    I am assuming "resulting integer" is an error, since we are talking about pointers and booleans here. Seems like it was missed while copy & pasting the docs from the integer versions. I also checked the rest of the docs, and this was the only mention of integers.
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    c83ca5b View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#121994 - wesleywiser:update_musl_version_do…

    …cs, r=ehuss
    
    Update platform-support.md with supported musl version
    
    This just reflects the current status quo, there is no actual change here since the update to musl 1.2.3 occurred in rust-lang#107129 and was approved in rust-lang/compiler-team#572.
    
    I also normalized all mentions of musl libc to "musl" (non-capitalized per the project's site and Wikipedia page).
    
    r? ``@ehuss``
    matthiaskrgr authored Mar 4, 2024
    Configuration menu
    Copy the full SHA
    5e13bc4 View commit details
    Browse the repository at this point in the history