-
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 #103398
Rollup of 7 pull requests #103398
Commits on Oct 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 64e7fd9 - Browse repository at this point
Copy the full SHA 64e7fd9View commit details
Commits on Oct 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2cc4a0a - Browse repository at this point
Copy the full SHA 2cc4a0aView commit details
Commits on Oct 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f81cd87 - Browse repository at this point
Copy the full SHA f81cd87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f44d62 - Browse repository at this point
Copy the full SHA 4f44d62View commit details
Commits on Oct 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9b67910 - Browse repository at this point
Copy the full SHA 9b67910View commit details -
Argument type for mutable with_metadata_of (rust-lang#75091)
The method takes two pointer arguments: one `self` supplying the pointer value, and a second pointer supplying the metadata. The new parameter type more clearly reflects the actual requirements. The provenance of the metadata parameter is disregarded completely. Using a mutable pointer in the call site can be coerced to a const pointer while the reverse is not true. An example of the current use: ```rust // Manually taking an unsized object from a `ManuallyDrop` into another allocation. let val: &core::mem::ManuallyDrop<T> = …; let ptr = val as *const _ as *mut T; let ptr = uninit.as_ptr().with_metadata_of(ptr); ``` This could then instead be simplified to: ```rust // Manually taking an unsized object from a `ManuallyDrop` into another allocation. let val: &core::mem::ManuallyDrop<T> = …; let ptr = uninit.as_ptr().with_metadata_of(&**val); ```
Andreas Molzer committedOct 21, 2022 Configuration menu - View commit details
-
Copy full SHA for 71c39de - Browse repository at this point
Copy the full SHA 71c39deView commit details -
Reduce mutability in std-use of with_metadata_of
Andreas Molzer committedOct 21, 2022 Configuration menu - View commit details
-
Copy full SHA for e3606b2 - Browse repository at this point
Copy the full SHA e3606b2View commit details -
Reduce false positives in msys2 detection
This checks that: * the handle is a pipe * the pipe's file name starts with "msys-" or "cygwin-" rather than looking in the full path.
Configuration menu - View commit details
-
Copy full SHA for d7b0bcb - Browse repository at this point
Copy the full SHA d7b0bcbView commit details
Commits on Oct 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3d7b1f0 - Browse repository at this point
Copy the full SHA 3d7b1f0View commit details -
Rollup merge of rust-lang#102602 - WaffleLapkin:linty_action, r=estebank
Slightly tweak comments wrt `lint_overflowing_range_endpoint` From the review: rust-lang#101986 (comment) It _seemed_ that the lint was not emitted when the `if` check failed, but _actually_ this happens already in a special case and the lint is emitted outside of this function, if this function doesn't. I've cleared up the code/comments a bit, so it's more obvious :) r? ```@estebank```
Configuration menu - View commit details
-
Copy full SHA for 16c3b64 - Browse repository at this point
Copy the full SHA 16c3b64View commit details -
Rollup merge of rust-lang#103190 - fmease:rustdoc-render-bounds-of-cr…
…oss-crate-gat-params, r=GuillaumeGomez rustdoc: render bounds of cross-crate GAT params Follow-up to rust-lang#102439. Render the trait bounds of type parameters of cross-crate (generic) associated types. `````@rustbot````` label T-rustdoc A-cross-crate-reexports r? `````@GuillaumeGomez`````
Configuration menu - View commit details
-
Copy full SHA for 988153c - Browse repository at this point
Copy the full SHA 988153cView commit details -
Rollup merge of rust-lang#103224 - compiler-errors:semi-after-closure…
…-in-macro, r=fee1-dead Allow semicolon after closure within parentheses in macros rust-lang#88546 added some parsing logic that if we're parsing a closure, and we're within parentheses, and a semicolon follows, then we must be parsing something erroneous like: `f(|| a; b)`, so it replaces the closure body with an error expression. However, it's valid to parse those tokens if we're within a macro, as in rust-lang#103222. This is a bit unsatisfying fix. Is there a more robust way of checking that we're within a macro? I would also be open to removing this "_It is likely that the closure body is a block but where the braces have been removed_" check altogether at the expense of more verbose errors, since it seems very suspicious in the first place... Fixes rust-lang#103222.
Configuration menu - View commit details
-
Copy full SHA for ada5011 - Browse repository at this point
Copy the full SHA ada5011View commit details -
Rollup merge of rust-lang#103280 - finnbear:impl_string_leak_2, r=jos…
…htriplett (rust-lang#102929) Implement `String::leak` (attempt 2) Implementation of `String::leak` (rust-lang#102929) ACP: rust-lang/libs-team#109 Supersedes rust-lang#102941 (see previous reviews there) ```@rustbot``` label +T-libs-api -T-libs
Configuration menu - View commit details
-
Copy full SHA for 141478b - Browse repository at this point
Copy the full SHA 141478bView commit details -
Rollup merge of rust-lang#103329 - saethlin:nonnull-precondition, r=t…
…homcc Add a forgotten check for NonNull::new_unchecked's precondition Looks like I forgot this function a while ago in rust-lang#92686 r? ```@thomcc```
Configuration menu - View commit details
-
Copy full SHA for 3f49f95 - Browse repository at this point
Copy the full SHA 3f49f95View commit details -
Rollup merge of rust-lang#103346 - HeroicKatora:metadata_of_const_poi…
…nter_argument, r=dtolnay Adjust argument type for mutable with_metadata_of (rust-lang#75091) The method takes two pointer arguments: one `self` supplying the pointer value, and a second pointer supplying the metadata. The new parameter type more clearly reflects the actual requirements. The provenance of the metadata parameter is disregarded completely. Using a mutable pointer in the call site can be coerced to a const pointer while the reverse is not true. In some cases, the current parameter type can thus lead to a very slightly confusing additional cast. [Example](HeroicKatora/static-alloc@cad9377). ```rust // Manually taking an unsized object from a `ManuallyDrop` into another allocation. let val: &core::mem::ManuallyDrop<T> = …; let ptr = val as *const _ as *mut T; let ptr = uninit.as_ptr().with_metadata_of(ptr); ``` This could then instead be simplified to: ```rust // Manually taking an unsized object from a `ManuallyDrop` into another allocation. let val: &core::mem::ManuallyDrop<T> = …; let ptr = uninit.as_ptr().with_metadata_of(&**val); ``` Tracking issue: rust-lang#75091 ``@dtolnay`` you're reviewed rust-lang#95249, would you mind chiming in?
Configuration menu - View commit details
-
Copy full SHA for b22559f - Browse repository at this point
Copy the full SHA b22559fView commit details -
Rollup merge of rust-lang#103360 - ChrisDenton:isterm-filetype, r=thomcc
Reduce false positives in msys2 detection Currently msys2 will be detected by getting the file path and looking to see if it contains the substrings "msys-" and "-ptr" (or "cygwin-" and "-pty"). This risks false positives, especially with filesystem files and if `GetFileInformationByHandleEx` returns a [full path](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntqueryinformationfile#remarks). This PR adds a check to see if the handle is a pipe before doing the substring search. Additionally, for "msys2-" or "cygwin-" it only checks if the file name starts with the substring rather than looking at the whole path.
Configuration menu - View commit details
-
Copy full SHA for b453694 - Browse repository at this point
Copy the full SHA b453694View commit details