-
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 11 pull requests #91485
Rollup of 11 pull requests #91485
Commits on Oct 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7430b22 - Browse repository at this point
Copy the full SHA 7430b22View commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f99e358 - Browse repository at this point
Copy the full SHA f99e358View commit details
Commits on Nov 9, 2021
-
Link tracking issues in Configurations.md (rust-lang#4096)
# Conflicts: # Configurations.md
Configuration menu - View commit details
-
Copy full SHA for e6d1bf5 - Browse repository at this point
Copy the full SHA e6d1bf5View commit details
Commits on Nov 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 34b7566 - Browse repository at this point
Copy the full SHA 34b7566View commit details
Commits on Nov 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for eee8f04 - Browse repository at this point
Copy the full SHA eee8f04View commit details
Commits on Nov 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0023abf - Browse repository at this point
Copy the full SHA 0023abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c442cc - Browse repository at this point
Copy the full SHA 2c442ccView commit details
Commits on Nov 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 196e676 - Browse repository at this point
Copy the full SHA 196e676View commit details -
Add a few missing tracking issues in Configurations.md (rust-lang#5084)
* Add a few missing tracking issues in Configurations.md * fix: tracking issue for imports_granularity stabilization Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 826eba8 - Browse repository at this point
Copy the full SHA 826eba8View commit details
Commits on Nov 23, 2021
-
fix: do not wrap reference-style doc links
Prevents wrap_comments from incorrectly wrapping reference-style doc links.
Configuration menu - View commit details
-
Copy full SHA for 4389a4c - Browse repository at this point
Copy the full SHA 4389a4cView commit details
Commits on Nov 24, 2021
-
Preload the most commonly used fonts.
Don't preload italic font faces because they aren't used on all pages, and when they are used, they are used sparingly so it's okay if they are slower to load.
Configuration menu - View commit details
-
Copy full SHA for 4198fac - Browse repository at this point
Copy the full SHA 4198facView commit details -
Change how the fn params span is calculated
Use the available Generics span field to avoid issues with `T: Fn()` bounds. This is necessary to land rust-lang#85346.
Configuration menu - View commit details
-
Copy full SHA for f99469d - Browse repository at this point
Copy the full SHA f99469dView commit details
Commits on Nov 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 243cec7 - Browse repository at this point
Copy the full SHA 243cec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0da3a0f - Browse repository at this point
Copy the full SHA 0da3a0fView commit details
Commits on Nov 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ea042b9 - Browse repository at this point
Copy the full SHA ea042b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67fd9ec - Browse repository at this point
Copy the full SHA 67fd9ecView commit details -
Conditionally compile tests based on CFG_RELEASE_CHANNEL env var
Adds the ``nightly_only_test`` and ``stable_only_test`` attribute macros that prevent or allow certain tests to compile on nightly and stable respectively. This is achieved through conditionally outputting the tests TokenStream. If CFG_RELEASE_CHANNEL is not set, it's assumed that we're running in a nightly environment. To mark a test as nightly only: #[nightly_only_test] #[test] fn only_run_on_nightly() { ... } To mark a test a stable only: #[stable_only_test] #[test] fn only_run_on_stable() { ... }
Configuration menu - View commit details
-
Copy full SHA for a21f1b6 - Browse repository at this point
Copy the full SHA a21f1b6View commit details
Commits on Nov 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0fc846f - Browse repository at this point
Copy the full SHA 0fc846fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f28683 - Browse repository at this point
Copy the full SHA 1f28683View commit details
Commits on Nov 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 41e2a53 - Browse repository at this point
Copy the full SHA 41e2a53View commit details
Commits on Dec 2, 2021
-
Determine when new comment lines are needed for itemized blocks
Fixes 5088 Previously, rustfmt would add a new comment line anytime it reformatted an itemized block within a comment when ``wrap_comments=true``. This would lead to rustfmt adding empty comments with trailing whitespace. Now, new comment lines are only added if the original comment spanned multiple lines, if the comment needs to be wrapped, or if the comment originally started with an empty comment line.
Configuration menu - View commit details
-
Copy full SHA for ec46ffd - Browse repository at this point
Copy the full SHA ec46ffdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a14525 - Browse repository at this point
Copy the full SHA 7a14525View commit details -
Implement write() method for Box<MaybeUninit<T>>
This adds method similar to `MaybeUninit::write` main difference being it returns owned `Box`. This can be used to elide copy from stack safely, however it's not currently tested that the optimization actually occurs. Analogous methods are not provided for `Rc` and `Arc` as those need to handle the possibility of sharing. Some version of them may be added in the future. This was discussed in rust-lang#63291 which this change extends.
Configuration menu - View commit details
-
Copy full SHA for 41e21aa - Browse repository at this point
Copy the full SHA 41e21aaView commit details -
Only shown relevant type params in E0283 label
When we point at a binding to suggest giving it a type, erase all the type for ADTs that have been resolved, leaving only the ones that could not be inferred. For small shallow types this is not a problem, but for big nested types with lots of params, this can otherwise cause a lot of unnecessary visual output.
Configuration menu - View commit details
-
Copy full SHA for 6544097 - Browse repository at this point
Copy the full SHA 6544097View commit details -
Refer to uninferred
const
params by their name, instead of{ _: _ }
When the value of a const param isn't inferred, replace it with the param name from the definition.
Configuration menu - View commit details
-
Copy full SHA for 5d8b835 - Browse repository at this point
Copy the full SHA 5d8b835View commit details -
Configuration menu - View commit details
-
Copy full SHA for b97e078 - Browse repository at this point
Copy the full SHA b97e078View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00f15c5 - Browse repository at this point
Copy the full SHA 00f15c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b988151 - Browse repository at this point
Copy the full SHA b988151View commit details -
suppress warning about set_errno being unused on DragonFly
Other targets allow this function to be unused, DragonFly just misses out due to providing a specialization.
Configuration menu - View commit details
-
Copy full SHA for 0fdb109 - Browse repository at this point
Copy the full SHA 0fdb109View commit details -
Configuration menu - View commit details
-
Copy full SHA for a11994e - Browse repository at this point
Copy the full SHA a11994eView commit details
Commits on Dec 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e305322 - Browse repository at this point
Copy the full SHA e305322View commit details -
Merge pull request rust-lang#5121 from calebcartwright/subtree-sync-2…
…021-12-02 subtree sync
Configuration menu - View commit details
-
Copy full SHA for 8da8371 - Browse repository at this point
Copy the full SHA 8da8371View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6ade7c - Browse repository at this point
Copy the full SHA f6ade7cView commit details -
Rollup merge of rust-lang#88906 - Kixunil:box-maybe-uninit-write, r=d…
…tolnay Implement write() method for Box<MaybeUninit<T>> This adds method similar to `MaybeUninit::write` main difference being it returns owned `Box`. This can be used to elide copy from stack safely, however it's not currently tested that the optimization actually occurs. Analogous methods are not provided for `Rc` and `Arc` as those need to handle the possibility of sharing. Some version of them may be added in the future. This was discussed in rust-lang#63291 which this change extends.
Configuration menu - View commit details
-
Copy full SHA for 0a4caa2 - Browse repository at this point
Copy the full SHA 0a4caa2View commit details -
Rollup merge of rust-lang#90269 - woppopo:const_option_expect, r=yaahc
Make `Option::expect` unstably const Tracking issue: rust-lang#67441
Configuration menu - View commit details
-
Copy full SHA for 9d92340 - Browse repository at this point
Copy the full SHA 9d92340View commit details -
Rollup merge of rust-lang#90709 - estebank:erase-known-type-params, r…
…=nagisa Only shown relevant type params in E0283 label When we point at a binding to suggest giving it a type, erase all the type for ADTs that have been resolved, leaving only the ones that could not be inferred. For small shallow types this is not a problem, but for big nested types with lots of params, this can otherwise cause a lot of unnecessary visual output.
Configuration menu - View commit details
-
Copy full SHA for 021e18c - Browse repository at this point
Copy the full SHA 021e18cView commit details -
Rollup merge of rust-lang#90854 - sanxiyn:unsized-and-uninhabited, r=…
…estebank Type can be unsized and uninhabited Fix rust-lang#88150.
Configuration menu - View commit details
-
Copy full SHA for 34fd8d6 - Browse repository at this point
Copy the full SHA 34fd8d6View commit details -
Rollup merge of rust-lang#91170 - jsha:preload-fonts, r=GuillaumeGomez
rustdoc: preload fonts Follow-up from rust-lang#82315. I noticed that font loading was so slow that even when loading from local disk, we get a flash of unstyled text (FOUT) followed by a reflow when the fonts load. With this change, we reliably get the appropriate fonts in the first render pass when loading locally, and we get it some of the time when loading from a website. This only preloads woff2 versions. According to https://caniuse.com/?search=preload and https://caniuse.com/?search=woff2, all browsers that support preload also support woff2, so this is fine; we will never load two copies of a font. Don't preload italic font faces because they aren't used on all pages. Demo: https://rustdoc.crud.net/jsha/preload-fonts/std/string/struct.String.html
Configuration menu - View commit details
-
Copy full SHA for 538beef - Browse repository at this point
Copy the full SHA 538beefView commit details -
Rollup merge of rust-lang#91273 - Badel2:ice-index-str, r=estebank
Fix ICE rust-lang#91268 by checking that the snippet ends with a `)` Fix rust-lang#91268 Previously it was assumed that the last character of `snippet` will be a `)`, so using `snippet.len() - 1` as an index should be safe. However as we see in the test, it is possible to enter that branch without a closing `)`, and it will trigger the panic if the last character happens to be multibyte. The fix is to ensure that the snippet ends with `)`, and skip the suggestion otherwise.
Configuration menu - View commit details
-
Copy full SHA for 7af2859 - Browse repository at this point
Copy the full SHA 7af2859View commit details -
Rollup merge of rust-lang#91381 - Amanieu:android_libdl, r=petrochenkov
Android: -ldl must appear after -lgcc when linking rust-lang#90846 accidentally broke Android builds because it causes the standard library to no longer use `dlsym` on Android. This results in `libdl` being ignored by the linker since no symbols are needed from it. However, we later import `libgcc` for unwinding which *does* depend on `libdl` for `dl_iterate_phdr`. Since linkers don't revisit previous libraries when resolving symbols, this causes a linker error due to an undefined reference to `dl_iterate_phdr`. This is resolved by adding a second `-ldl` after `-lgcc` in the linker command-line.
Configuration menu - View commit details
-
Copy full SHA for c441004 - Browse repository at this point
Copy the full SHA c441004View commit details -
Rollup merge of rust-lang#91453 - ChrisDenton:doc-win-tls-dtors, r=dt…
…olnay Document Windows TLS drop behaviour The way Windows TLS destructors are run has some "interesting" properties. They should be documented. Fixes rust-lang#74875
Configuration menu - View commit details
-
Copy full SHA for d1e09f9 - Browse repository at this point
Copy the full SHA d1e09f9View commit details -
Rollup merge of rust-lang#91462 - b-naber:use-try-normalize-erasing-r…
…egions, r=jackh726 Use try_normalize_erasing_regions in needs_drop Fixes rust-lang#81199 r? `@jackh726`
Configuration menu - View commit details
-
Copy full SHA for 26b278c - Browse repository at this point
Copy the full SHA 26b278cView commit details -
Rollup merge of rust-lang#91474 - rtzoeller:dfly_set_errno, r=cuviper
suppress warning about set_errno being unused on DragonFly Other targets allow this function to be unused, DragonFly just misses out due to providing a specialization. This fixes a build error for DragonFly.
Configuration menu - View commit details
-
Copy full SHA for d1ce18c - Browse repository at this point
Copy the full SHA d1ce18cView commit details -
Rollup merge of rust-lang#91483 - calebcartwright:sync-rustfmt-subtre…
…e, r=calebcartwright Sync rustfmt subtree
Configuration menu - View commit details
-
Copy full SHA for d1096fd - Browse repository at this point
Copy the full SHA d1096fdView commit details