-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 11 pull requests #88854
Rollup of 11 pull requests #88854
Commits on Aug 10, 2021
-
Reword description of automatic impls of
Unsize
.The existing documentation felt a little unhelpfully concise, so this change tries to improve it by using longer sentences, each of which specifies which kinds of types it applies to as early as possible. In particular, the third item starts with “Structs ...” instead of saying “Foo is a struct” later. Also, the previous list items “Only the last field has a type involving `T`” and “`T` is not part of the type of any other fields” are, as far as I see, redundant with each other, so I removed the latter.
Configuration menu - View commit details
-
Copy full SHA for 07988bb - Browse repository at this point
Copy the full SHA 07988bbView commit details
Commits on Aug 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2884a74 - Browse repository at this point
Copy the full SHA 2884a74View commit details
Commits on Aug 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4d6bfde - Browse repository at this point
Copy the full SHA 4d6bfdeView commit details
Commits on Aug 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for bbe3be9 - Browse repository at this point
Copy the full SHA bbe3be9View commit details
Commits on Sep 5, 2021
-
Change more x64 size checks to not apply to x32.
Commit 95e096d changed a bunch of size checks already, but more have been added, so this fixes the new ones the same way: the various size checks that are conditional on target_arch = "x86_64" were not intended to apply to x86_64-unknown-linux-gnux32, so add target_pointer_width = "64" to the conditions.
Configuration menu - View commit details
-
Copy full SHA for cd75af2 - Browse repository at this point
Copy the full SHA cd75af2View commit details -
Don't build the library and standard library before documenting them
Rustdoc doesn't require the build artifacts to generate the docs, and especially in the case of rustc, it greatly increases the time needed to run the build.
Configuration menu - View commit details
-
Copy full SHA for 04db063 - Browse repository at this point
Copy the full SHA 04db063View commit details
Commits on Sep 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e2d01ed - Browse repository at this point
Copy the full SHA e2d01edView commit details
Commits on Sep 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2987f4b - Browse repository at this point
Copy the full SHA 2987f4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b29138 - Browse repository at this point
Copy the full SHA 9b29138View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4483c2b - Browse repository at this point
Copy the full SHA 4483c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47b16f4 - Browse repository at this point
Copy the full SHA 47b16f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c170dcf - Browse repository at this point
Copy the full SHA c170dcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e8644 - Browse repository at this point
Copy the full SHA 08e8644View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc63e9a - Browse repository at this point
Copy the full SHA fc63e9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cbcb09 - Browse repository at this point
Copy the full SHA 4cbcb09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f57f8b - Browse repository at this point
Copy the full SHA 1f57f8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15101c8 - Browse repository at this point
Copy the full SHA 15101c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 406d2ab - Browse repository at this point
Copy the full SHA 406d2abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79be080 - Browse repository at this point
Copy the full SHA 79be080View commit details -
Configuration menu - View commit details
-
Copy full SHA for 955e2b2 - Browse repository at this point
Copy the full SHA 955e2b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c7954d - Browse repository at this point
Copy the full SHA 8c7954dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3212734 - Browse repository at this point
Copy the full SHA 3212734View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd2915e - Browse repository at this point
Copy the full SHA cd2915eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd9bb30 - Browse repository at this point
Copy the full SHA fd9bb30View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc02b51 - Browse repository at this point
Copy the full SHA dc02b51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8295e4a - Browse repository at this point
Copy the full SHA 8295e4aView commit details
Commits on Sep 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 64354a9 - Browse repository at this point
Copy the full SHA 64354a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88d5aa6 - Browse repository at this point
Copy the full SHA 88d5aa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9a56cd - Browse repository at this point
Copy the full SHA c9a56cdView commit details -
rustc: Remove local variable IDs from
Export
sLocal variables can never be exported.
Configuration menu - View commit details
-
Copy full SHA for 294510e - Browse repository at this point
Copy the full SHA 294510eView commit details
Commits on Sep 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c1e9608 - Browse repository at this point
Copy the full SHA c1e9608View commit details -
Rollup merge of rust-lang#87904 - kpreid:unsize, r=jyn514
Reword description of automatic impls of `Unsize`. The existing documentation felt a little unhelpfully concise, so this change tries to improve it by using longer sentences, each of which specifies which kinds of types it applies to as early as possible. In particular, the third item starts with “Structs ...” instead of saying “Foo is a struct” later. Also, the previous list items “Only the last field has a type involving `T`” and “`T` is not part of the type of any other fields” are, as far as I see, redundant with each other, so I removed the latter. I have no particular knowledge of `Unsize`; I have attempted to leave the meaning entirely unchanged but may have missed a nuance. Markdown preview of the edited documentation: > All implementations of `Unsize` are provided automatically by the compiler. > Those implementations are: > > - Arrays `[T; N]` implement `Unsize<[T]>`. > - Types implementing a trait `Trait` also implement `Unsize<dyn Trait>`. > - Structs `Foo<..., T, ...>` implement `Unsize<Foo<..., U, ...>>` if all of these conditions > are met: > - `T: Unsize<U>`. > - Only the last field of `Foo` has a type involving `T`. > - `Bar<T>: Unsize<Bar<U>>`, where `Bar<T>` stands for the actual type of that last field.
Configuration menu - View commit details
-
Copy full SHA for fd389b5 - Browse repository at this point
Copy the full SHA fd389b5View commit details -
Rollup merge of rust-lang#88147 - FabianWolff:issue-88097, r=jackh726
Fix non-capturing closure return type coercion Fixes rust-lang#88097. For the example given there: ```rust fn peculiar() -> impl Fn(u8) -> u8 { return |x| x + 1 } ``` which incorrectly reports an error, I noticed something weird in the debug log: ``` DEBUG rustc_typeck::check::coercion coercion::try_find_coercion_lub([[email protected]:2:12: 2:21], [[email protected]:2:12: 2:21], exprs=1 exprs) ``` Apparently, `try_find_coercion_lub()` thinks that the LUB for two closure types always has to be a function pointer (which explains the `expected closure, found fn pointer` error in rust-lang#88097). There is one corner case where that isn't true, though — namely, when the two closure types are equal, in which case the trivial LUB is the type itself. This PR fixes this by inserting an explicit check for type equality in `try_find_coercion_lub()`.
Configuration menu - View commit details
-
Copy full SHA for 1cf99f5 - Browse repository at this point
Copy the full SHA 1cf99f5View commit details -
Rollup merge of rust-lang#88209 - Amanieu:asm_in_underscore, r=nagisa
Improve error message when _ is used for in/inout asm operands As suggested by ``@Commeownist`` in rust-lang#72016 (comment).
Configuration menu - View commit details
-
Copy full SHA for 24fed97 - Browse repository at this point
Copy the full SHA 24fed97View commit details -
Rollup merge of rust-lang#88619 - GuillaumeGomez:simplify-std-os-reex…
…ports, r=Amanieu Remove `cfg(doc)` from std::os module reexports to fix rustdoc linking issues Fixes rust-lang#88304. I tested it based on rust-lang#88292. Not sure if it's the best approach, but at least it makes thing a bit simpler. cc ``@jyn514``
Configuration menu - View commit details
-
Copy full SHA for f064ad7 - Browse repository at this point
Copy the full SHA f064ad7View commit details -
Rollup merge of rust-lang#88668 - hvdijk:x32, r=joshtriplett
Change more x64 size checks to not apply to x32. Commit 95e096d changed a bunch of size checks already, but more have been added, so this fixes the new ones the same way: the various size checks that are conditional on target_arch = "x86_64" were not intended to apply to x86_64-unknown-linux-gnux32, so add target_pointer_width = "64" to the conditions.
Configuration menu - View commit details
-
Copy full SHA for a21eaa4 - Browse repository at this point
Copy the full SHA a21eaa4View commit details -
Rollup merge of rust-lang#88675 - jyn514:faster-doc, r=Mark-Simulacrum
Don't build the compiler and standard library before documenting them Rustdoc doesn't require the build artifacts to generate the docs, and especially in the case of rustc, it greatly increases the time needed to run the build. r? ``@Mark-Simulacrum`` cc ``@steffahn``
Configuration menu - View commit details
-
Copy full SHA for 0235d0b - Browse repository at this point
Copy the full SHA 0235d0bView commit details -
Rollup merge of rust-lang#88677 - petrochenkov:exportid, r=davidtwco
rustc: Remove local variable IDs from `Export`s Local variables can never be exported.
Configuration menu - View commit details
-
Copy full SHA for 78b5acc - Browse repository at this point
Copy the full SHA 78b5accView commit details -
Rollup merge of rust-lang#88709 - BoxyUwU:thir-abstract-const, r=lcnr
generic_const_exprs: use thir for abstract consts instead of mir not sure if this is handling some of the weirder `thir::ExprKind` correctly in `recurse_build` (it probably isnt) r? ``@lcnr``
Configuration menu - View commit details
-
Copy full SHA for abb31d6 - Browse repository at this point
Copy the full SHA abb31d6View commit details -
Rollup merge of rust-lang#88779 - estebank:unused-delims, r=davidtwco
Use more accurate spans for "unused delimiter" lint
Configuration menu - View commit details
-
Copy full SHA for 9f98345 - Browse repository at this point
Copy the full SHA 9f98345View commit details -
Rollup merge of rust-lang#88830 - GuillaumeGomez:help-e0463, r=estebank
Add help for E0463 Fixes rust-lang#87871. r? ``@estebank``
Configuration menu - View commit details
-
Copy full SHA for 9c7edef - Browse repository at this point
Copy the full SHA 9c7edefView commit details -
Rollup merge of rust-lang#88849 - matthiaskrgr:clony_on_copy, r=petro…
…chenkov don't clone types that are Copy (clippy::clone_on_copy)
Configuration menu - View commit details
-
Copy full SHA for 35b66f8 - Browse repository at this point
Copy the full SHA 35b66f8View commit details