-
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 4 pull requests #90325
Rollup of 4 pull requests #90325
Commits on Oct 22, 2021
-
Add beginner friendly lifetime elision hint to E0623
Suggest adding a new lifetime parameter when two elided lifetimes should match up but don't Issue rust-lang#90170
Configuration menu - View commit details
-
Copy full SHA for e792ee0 - Browse repository at this point
Copy the full SHA e792ee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8ebdbe - Browse repository at this point
Copy the full SHA a8ebdbeView commit details
Commits on Oct 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e7b8e73 - Browse repository at this point
Copy the full SHA e7b8e73View commit details
Commits on Oct 25, 2021
-
Improve lifetime elision hint error
This also changes the tests introduced by the previous commits because of another rustc issue (rust-lang#90258)
Configuration menu - View commit details
-
Copy full SHA for 2f4d780 - Browse repository at this point
Copy the full SHA 2f4d780View commit details -
Fix documentation header sizes
And add a rustdoc-gui test confirming various header sizes.
Configuration menu - View commit details
-
Copy full SHA for 89276ff - Browse repository at this point
Copy the full SHA 89276ffView commit details
Commits on Oct 26, 2021
-
rustdoc: use ttf based font for cjk glyphs
Shinwoo Park committedOct 26, 2021 Configuration menu - View commit details
-
Copy full SHA for 9e00501 - Browse repository at this point
Copy the full SHA 9e00501View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5cbb9b - Browse repository at this point
Copy the full SHA f5cbb9bView commit details -
Remove unnecessary check for registers
`is_clobber()` already checks if `reg` is a register and the both values should be the same.
Configuration menu - View commit details
-
Copy full SHA for 630df7c - Browse repository at this point
Copy the full SHA 630df7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd309e4 - Browse repository at this point
Copy the full SHA bd309e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12647ea - Browse repository at this point
Copy the full SHA 12647eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ec1aa - Browse repository at this point
Copy the full SHA 76ec1aaView commit details -
Rollup merge of rust-lang#89937 - JohnTitor:fix-89875, r=Amanieu
Properly check `target_features` not to trigger an assertion Fixes rust-lang#89875 I think it should be a condition instead of an assertion to check if it's a register as it's possible that `reg` is a register class. Also, this isn't related to the issue directly, but `is_target_supported` doesn't check `target_features` attributes. Is there any way to check it on rustc_codegen_llvm? r? `@Amanieu`
Configuration menu - View commit details
-
Copy full SHA for 6db3e8e - Browse repository at this point
Copy the full SHA 6db3e8eView commit details -
Rollup merge of rust-lang#90179 - Nilstrieb:lifetime-elision-mismatch…
…-hint, r=estebank Add beginner friendly lifetime elision hint to E0623 Address rust-lang#90170 Suggest adding a new lifetime parameter when two elided lifetimes should match up but don't. Example: ``` error[E0623]: lifetime mismatch --> $DIR/issue-90170-elision-mismatch.rs:2:35 | LL | fn foo(slice_a: &mut [u8], slice_b: &mut [u8]) { | --------- --------- these two types are declared with different lifetimes... LL | core::mem::swap(&mut slice_a, &mut slice_b); | ^^^^^^^^^^^^ ...but data from `slice_b` flows into `slice_a` here | = note: Each elided lifetime in input position becomes a distinct lifetime. help: Explicitly declare a lifetime and assign it to both | LL | fn foo<'a>(slice_a: &'a mut [u8], slice_b: &'a mut [u8]) { | ++++ ++ ++ ``` for ```rust fn foo(slice_a: &mut [u8], slice_b: &mut [u8]) { core::mem::swap(&mut slice_a, &mut slice_b); } ```
Configuration menu - View commit details
-
Copy full SHA for 8f599ab - Browse repository at this point
Copy the full SHA 8f599abView commit details -
Rollup merge of rust-lang#90186 - jsha:fix-header-sizes, r=GuillaumeG…
…omez Fix documentation header sizes And add a rustdoc-gui test confirming various header sizes. Split off from rust-lang#90156. This fixes a regression in rust-lang#89506 where the heading level of titles within Markdown was too high (h2) for docblocks under structs, unions, and enum impls. r? `@camelid` Demo: https://jacob.hoffman-andrews.com/rust/fix-header-sizes/std/string/struct.String.html#impl-Add%3C%26%27_%20str%3E Stable: https://doc.rust-lang.org/stable/std/string/struct.String.html#impl-Add%3C%26%27_%20str%3E Beta: https://doc.rust-lang.org/beta/std/string/struct.String.html#impl-Add%3C%26%27_%20str%3E
Configuration menu - View commit details
-
Copy full SHA for 90b3a84 - Browse repository at this point
Copy the full SHA 90b3a84View commit details -
Rollup merge of rust-lang#90232 - konan8205:master, r=GuillaumeGomez
rustdoc: Use TTF based font instead of OTF for CJK glyphs to improve readability Due to Windows' implementation of font rendering, OpenType fonts can be distorted. So the existing font, Noto Sans KR, is not very readable on Windows. This PR improves readability of Korean glyphs on Windows. ## Before ![원1](https://user-images.githubusercontent.com/11029378/138592394-16b15787-532d-4421-a5eb-ed85675290fa.png) ## After ![원2](https://user-images.githubusercontent.com/11029378/138592409-f3a440ee-f0fc-40e4-9561-42c479439c9f.png) The fonts included in this PR are licensed under the SIL Open Font License and generated with these commands: ```sh pyftsubset NanumBarunGothic.ttf \ --unicodes=U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF \ --output-file=NanumBarunGothic.ttf.woff --flavor=woff ``` ```sh pyftsubset NanumBarunGothic.ttf \ --unicodes=U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF \ --output-file=NanumBarunGothic.ttf.woff2 --flavor=woff2 ``` r? `@GuillaumeGomez`
Configuration menu - View commit details
-
Copy full SHA for 5367f0b - Browse repository at this point
Copy the full SHA 5367f0bView commit details