-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 #89402
Rollup of 10 pull requests #89402
Commits on Sep 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f1c8acc - Browse repository at this point
Copy the full SHA f1c8accView commit details
Commits on Sep 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 16c0a84 - Browse repository at this point
Copy the full SHA 16c0a84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05460d0 - Browse repository at this point
Copy the full SHA 05460d0View commit details
Commits on Sep 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b8deb93 - Browse repository at this point
Copy the full SHA b8deb93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 072d107 - Browse repository at this point
Copy the full SHA 072d107View commit details
Commits on Sep 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0f9c349 - Browse repository at this point
Copy the full SHA 0f9c349View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cc3297 - Browse repository at this point
Copy the full SHA 4cc3297View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d4048b - Browse repository at this point
Copy the full SHA 5d4048bView commit details
Commits on Sep 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for dea3ee1 - Browse repository at this point
Copy the full SHA dea3ee1View commit details -
Suggest similarly named assoc items in trait impls
Previously, the compiler didn't suggest similarly named associated items unlike we do in many situations. This patch adds such diagnostics for associated functions, types and constants.
Configuration menu - View commit details
-
Copy full SHA for cef736f - Browse repository at this point
Copy the full SHA cef736fView commit details
Commits on Sep 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cb8e83c - Browse repository at this point
Copy the full SHA cb8e83cView commit details -
Clean up unneeded explicit pointer cast
The reference automatically coerces to a pointer. Writing an explicit cast here is slightly misleading because that's most commonly used when a pointer needs to be converted from one pointer type to another, e.g. `*const c_void` to `*const sigaction` or vice versa.
Configuration menu - View commit details
-
Copy full SHA for e3e5ae9 - Browse repository at this point
Copy the full SHA e3e5ae9View commit details -
fix(lint): don't suggest refutable patterns to "fix" irrefutable bind
In function arguments and let bindings, do not suggest changing `C` to `Foo::C` unless `C` is the only variant of `Foo`, because it won't work. The general warning is still kept, because code like this is confusing. Fixes rust-lang#88730
Configuration menu - View commit details
-
Copy full SHA for 6e973f0 - Browse repository at this point
Copy the full SHA 6e973f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35f74c2 - Browse repository at this point
Copy the full SHA 35f74c2View commit details -
CTFE: extra assertions for Aggregate rvalues; remove unnecessarily ea…
…ger special case
Configuration menu - View commit details
-
Copy full SHA for 268bb46 - Browse repository at this point
Copy the full SHA 268bb46View commit details
Commits on Sep 30, 2021
-
bootstrap: Update comment in config.library.toml.
Downloading LLVM from CI works for all platforms now.
Configuration menu - View commit details
-
Copy full SHA for 1cf905f - Browse repository at this point
Copy the full SHA 1cf905fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 098d862 - Browse repository at this point
Copy the full SHA 098d862View commit details -
Rollup merge of rust-lang#88782 - asquared31415:issue-79559, r=cjgillot
Fix ICE when `start` lang item has wrong generics In my previous pr rust-lang#87875 I missed the requirements on the `start` lang item due to its relative difficulty to test and opting for more conservative estimates. This fixes that by updating the requirement to be exactly one generic type. The `start` lang item should have exactly one generic type for the return type of the `main` fn ptr passed to it. I believe having zero would previously *sometimes* compile (often with the use of `fn() -> ()` as the fn ptr but it was likely UB to call if the return type of `main` was not `()` as far as I know) however it also sometimes would not for various errors including ICEs and LLVM errors depending on exact situations. Having more than 1 generic has always failed with an ICE because only the one generic type is expected and provided. Fixes rust-lang#79559, fixes rust-lang#73584, fixes rust-lang#83117 (all duplicates) Relevant to rust-lang#9307 r? ``@cjgillot``
Configuration menu - View commit details
-
Copy full SHA for e7fe12c - Browse repository at this point
Copy the full SHA e7fe12cView commit details -
Rollup merge of rust-lang#88820 - hlopko:add_pie_relocation_model, r=…
…petrochenkov Add `pie` as another `relocation-model` value MCP: rust-lang/compiler-team#461
Configuration menu - View commit details
-
Copy full SHA for c65a1ea - Browse repository at this point
Copy the full SHA c65a1eaView commit details -
Rollup merge of rust-lang#88828 - FabianWolff:issue-88585, r=dtolnay
Use `libc::sigaction()` instead of `sys::signal()` to prevent a deadlock Fixes rust-lang#88585. POSIX [specifies](https://man7.org/linux/man-pages/man3/fork.3p.html) that after forking, > to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. Rust's standard library does not currently adhere to this, as evidenced by rust-lang#88585. The child process calls [`sys::signal()`](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/android.rs#L76), which on Android calls [`libc::dlsym()`](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/weak.rs#L101), which is [**not**](https://man7.org/linux/man-pages/man7/signal-safety.7.html) async-signal-safe, and in fact causes a deadlock in the example in rust-lang#88585. I think the easiest solution here would be to just call `libc::sigaction()` instead, which [is](https://man7.org/linux/man-pages/man7/signal-safety.7.html) async-signal-safe, provides the functionality we need, and is apparently available on all Android versions because it is also used e.g. [here](https://github.com/rust-lang/rust/blob/7bf0736e130e2203c58654f7353dbf9575e49d5c/library/std/src/sys/unix/stack_overflow.rs#L112-L114).
Configuration menu - View commit details
-
Copy full SHA for 57897da - Browse repository at this point
Copy the full SHA 57897daView commit details -
Rollup merge of rust-lang#89202 - estebank:infer-call-type, r=oli-obk
Resolve infered types when complaining about unexpected call type ``` error[E0618]: expected function, found `{integer}` --> $DIR/call-block.rs:2:13 | LL | let _ = {42}(); | ^^^^-- | | | call expression requires function ``` instead of ``` error[E0618]: expected function, found `_` --> $DIR/call-block.rs:2:13 | LL | let _ = {42}(); | ^^^^-- | | | call expression requires function ```
Configuration menu - View commit details
-
Copy full SHA for ff7b1c2 - Browse repository at this point
Copy the full SHA ff7b1c2View commit details -
Rollup merge of rust-lang#89248 - hkmatsumoto:suggest-similarly-named…
…-assoc-items, r=estebank Suggest similarly named associated items in trait impls Fix rust-lang#85942 Previously, the compiler didn't suggest similarly named associated items unlike we do in many situations. This patch adds such diagnostics for associated functions, types, and constants.
Configuration menu - View commit details
-
Copy full SHA for 36bea20 - Browse repository at this point
Copy the full SHA 36bea20View commit details -
Rollup merge of rust-lang#89303 - guswynn:std_suspend, r=dtolnay
Add `#[must_not_suspend]` to some types in std I am not sure what else should have it? `Ref`?
Configuration menu - View commit details
-
Copy full SHA for 3806cc0 - Browse repository at this point
Copy the full SHA 3806cc0View commit details -
Rollup merge of rust-lang#89306 - devnexen:haiku_ncpus, r=nagisa
thread: implements available_concurrency on haiku
Configuration menu - View commit details
-
Copy full SHA for 549bdb6 - Browse repository at this point
Copy the full SHA 549bdb6View commit details -
Rollup merge of rust-lang#89314 - notriddle:notriddle/lint-fix-enum-v…
…ariant-match, r=davidtwco fix(lint): don't suggest refutable patterns to "fix" irrefutable bind In function arguments and let bindings, do not suggest changing `C` to `Foo::C` unless `C` is the only variant of `Foo`, because it won't work. The general warning is still kept, because code like this is confusing. Fixes rust-lang#88730 p.s. `src/test/ui/lint/lint-uppercase-variables.rs` already tests the one-variant case.
Configuration menu - View commit details
-
Copy full SHA for a489c29 - Browse repository at this point
Copy the full SHA a489c29View commit details -
Rollup merge of rust-lang#89370 - RalfJung:ctfe-aggregate-rvalue, r=o…
…li-obk CTFE: tweak aggregate rvalue handling I have not looked at this code in ages... I think Miri does not even hit it, since (most?) aggregate rvalues are lowered somewhere in the MIR pipeline, but CTFE does hit it. So this adds some extra sanity assertions, and removes a ZST special case -- ZST should only be special cased fairly late (when the actual memory access happens); e.g. `!` is a ZST and we still want `copy_op` to be called for it since it will perform validation (and raise UB, since `!` is never valid).
Configuration menu - View commit details
-
Copy full SHA for a71f822 - Browse repository at this point
Copy the full SHA a71f822View commit details -
Rollup merge of rust-lang#89392 - BGR360:master, r=jyn514
bootstrap: Update comment in config.library.toml. Downloading LLVM from CI works for all platforms now. All other templates in this directory already have the proper comment. Seems this one was neglected.
Configuration menu - View commit details
-
Copy full SHA for 38aa5f5 - Browse repository at this point
Copy the full SHA 38aa5f5View commit details