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

Closed
wants to merge 19 commits into from

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    cbe428d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d075dc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b62ee10 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Allow disabling ASan instrumentation for globals

    AddressSanitizer adds instrumentation to global variables unless the
    [`no_sanitize_address`](https://llvm.org/docs/LangRef.html#global-attributes)
    attribute is set on them.
    
    This commit extends the existing `#[no_sanitize(address)]` attribute to
    set this; previously it only had the desired effect on functions.
    BertalanD committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    204b228 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

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

Commits on Nov 20, 2024

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

Commits on Nov 21, 2024

  1. Re-delay a resolve bug

    For the code pattern reported in
    <rust-lang#133272>,
    
    ```rs
    impl Foo {
       fn fun() {
            let S { ref Self } = todo!();
       }
    }
    ```
    
    <rust-lang#121208> converted this to a
    `span_bug` from a `span_delayed_bug` because this specific self-ctor
    code pattern lacked test coverage. It turns out this can be hit but we
    just lacked test coverage, so change it back to a `span_delayed_bug` and
    add a target tested case.
    jieyouxu committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    5d30436 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. Configuration menu
    Copy the full SHA
    f98d9dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c85a742 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30c7df6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4627db2 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2024

  1. Configuration menu
    Copy the full SHA
    d294e47 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#127483 - BertalanD:no_sanitize-global-var, …

    …r=rcvalle
    
    Allow disabling ASan instrumentation for globals
    
    AddressSanitizer adds instrumentation to global variables unless the [`no_sanitize_address`](https://llvm.org/docs/LangRef.html#global-attributes) attribute is set on them.
    
    This commit extends the existing `#[no_sanitize(address)]` attribute to set this; previously it only had the desired effect on functions.
    
    (cc rust-lang#39699)
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    b1dff99 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…

    …olnay
    
    use `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)` as a `TMPDIR` fallback on Darwin
    
    Rebased version of rust-lang#100824, FCP has completed there. Motivation from rust-lang#100824 (comment):
    
    > This is a behavioral change in an edge case on Darwin platforms (macOS, iOS, ...).
    >
    > Specifically, this changes it so that iff `TMPDIR` is unset in the environment, then we use `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)` to query the user temporary directory (previously we just returned `"/tmp"`). If this fails (probably possible in a sandboxed program), only then do we fallback to `"/tmp"` (as before).
    >
    > The motivations here are two-fold:
    >
    > 1. This is better for security, and is in line with the [platform security recommendations](https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/RaceConditions.html#//apple_ref/doc/uid/TP40002585-SW10), as it is unavailable to other users (although it is the same value as seen by all other processes run by the same user).
    > 2. This is a more consistent fallback for when `getenv("TMPDIR")` is unavailable, as `$TMPDIR` is usually initialized to the `DARWIN_USER_TEMP_DIR`.
    >
    > It seems quite unlikely that anybody will break because of this, and I think it falls under the carve-out we have for platform specific behavior: https://doc.rust-lang.org/nightly/std/io/index.html#platform-specific-behavior.
    
    Closes rust-lang#99608.
    Closes rust-lang#100824.
    
    `@rustbot` label O-apple T-libs-api
    
    r? Dylan-DPC
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    546aebf View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#132949 - clubby789:macro-rules-attr-derive,…

    … r=fmease
    
    Add specific diagnostic for using macro_rules macro as attribute/derive
    
    Fixes rust-lang#132928
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    42e25b4 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#133247 - GuillaumeGomez:reduce-integer-disp…

    …lay-impl, r=workingjubilee
    
    Reduce integer `Display` implementation size
    
    I was thinking about rust-lang#128204 and how we could reduce the size of the code and just realized that we didn't need the `_fmt` method to be implemented on signed integers, which in turns allow to simplify greatly the macro call.
    
    r? `@workingjubilee`
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    ea9a3b2 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#133286 - jieyouxu:bug-ourselves, r=compiler…

    …-errors
    
    Re-delay a resolve `bug` related to `Self`-ctor in patterns
    
    For the code pattern reported in <rust-lang#133272>,
    
    ```rs
    impl Foo {
       fn fun() {
            let S { ref Self } = todo!();
       }
    }
    ```
    
    <rust-lang#121208> converted this to a `span_bug` from a `span_delayed_bug` because this specific self-ctor code pattern lacked test coverage. It turns out this can be hit but we just lacked test coverage, so change it back to a `span_delayed_bug` and add a targeted test case.
    
    Follow-up to rust-lang#121208, cc `@nnethercote` (very good exercise to expose our test coverage gaps).
    Fixes rust-lang#133272.
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    7e42db5 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#133332 - bjoernager:const-array-as-mut-slic…

    …e, r=jhpratt
    
    Mark `<[T; N]>::as_mut_slice` with the `const` specifier.
    
    Tracking issue: rust-lang#133333
    
    `<[T; N]>::as_mut_slice` can have the `const` specifier without any changes to the function body.
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    a6ac39b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#133366 - compiler-errors:expected-found, r=…

    …dtolnay
    
    Remove unnecessary bool from `ExpectedFound::new`
    
    It's true almost everywhere, and the one place it's not can be replaced w/ an if statement.
    matthiaskrgr authored Nov 23, 2024
    Configuration menu
    Copy the full SHA
    54a28f6 View commit details
    Browse the repository at this point in the history