-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rollup of 7 pull requests #133375
Commits on Oct 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cbe428d - Browse repository at this point
Copy the full SHA cbe428dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d075dc - Browse repository at this point
Copy the full SHA 6d075dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b62ee10 - Browse repository at this point
Copy the full SHA b62ee10View commit details
Commits on Nov 2, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 204b228 - Browse repository at this point
Copy the full SHA 204b228View commit details
Commits on Nov 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8522140 - Browse repository at this point
Copy the full SHA 8522140View commit details
Commits on Nov 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d318878 - Browse repository at this point
Copy the full SHA d318878View commit details
Commits on Nov 21, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5d30436 - Browse repository at this point
Copy the full SHA 5d30436View commit details
Commits on Nov 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f98d9dd - Browse repository at this point
Copy the full SHA f98d9ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for c85a742 - Browse repository at this point
Copy the full SHA c85a742View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30c7df6 - Browse repository at this point
Copy the full SHA 30c7df6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4627db2 - Browse repository at this point
Copy the full SHA 4627db2View commit details
Commits on Nov 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d294e47 - Browse repository at this point
Copy the full SHA d294e47View commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for b1dff99 - Browse repository at this point
Copy the full SHA b1dff99View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 546aebf - Browse repository at this point
Copy the full SHA 546aebfView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 42e25b4 - Browse repository at this point
Copy the full SHA 42e25b4View commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for ea9a3b2 - Browse repository at this point
Copy the full SHA ea9a3b2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7e42db5 - Browse repository at this point
Copy the full SHA 7e42db5View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a6ac39b - Browse repository at this point
Copy the full SHA a6ac39bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 54a28f6 - Browse repository at this point
Copy the full SHA 54a28f6View commit details