-
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 #92465
Rollup of 7 pull requests #92465
Conversation
This reduces visual distractions when reading method signatures.
Run at 01:17 UTC instead of 17:01
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Co-authored-by: David Tolnay <dtolnay@gmail.com>
Signed-off-by: Xuanwo <github@xuanwo.io>
This will allow them to be ignored by codegen backends that don't support inline asm.
This allows executing it like cargo clif build if you add it to your PATH. It also fixes infinite recursion on Windows when invoking it as Windows includes the current directory in PATH by default. Fixes rust-lang#971
I rarely use the dev profile anyway.
It appears `find_max_slow` comes from the BinaryHeap docs, where the try_reserve example is a slow implementation of find_max. It has no relevance to this code in OsString though.
A validity companion to changes from rust-lang#90373.
Extend check for UnsafeCell in consts to cover unions A validity companion to changes from rust-lang#90373. `@rust-lang/wg-const-eval`
… r=Mark-Simulacrum config.rs: Add support for a per-target default_linker option. * src/bootstrap/config.rs (Target) <default_linker>: New field. (TomlTarget): Likewise. * src/bootstrap/compile.rs (rustc_cargo_env): Prefer a target-specified default_linker over a global one if available. * config.toml.example: Adjust doc.
rustdoc: use smaller number of colors to distinguish items This reduces visual distractions when reading method signatures. As discussed in rust-lang#59845 (comment), this categorizes items into one of six colors (down from thirteen): - method, function (ochre `#AD7C37`) - trait, trait alias (dark slate blue `#6E4FC9`) - enum, struct, type alias, union, primitive (maroon `#AD378A`) - static, module, keyword, associated type, foreign type (steel blue `#3873AD`) - macro (green `rust-lang#68000`) - generic params, self, Self (unmarked black `#000000`) I slightly tweaked the actual color values so they'd have the same lightness (previously the trait color stood out much more than the others). And I made the color for links in general consistently use steel blue (previously there was a slightly different color for "search-failed"). The ayu and dark themes have been updated according to the same logic. I haven't changed any of the color values in those themes, just their assignment to types. Demo: https://rustdoc.crud.net/jsha/fewer-colors/std/string/struct.String.html https://rustdoc.crud.net/jsha/fewer-colors/std/vec/struct.Vec.html https://rustdoc.crud.net/jsha/fewer-colors/std/io/trait.Read.html https://rustdoc.crud.net/jsha/fewer-colors/std/iter/trait.Iterator.html
Add try_reserve and try_reserve_exact for OsString Add `try_reserve` and `try_reserve_exact` for OsString. Part of rust-lang#91789 I will squash the commits after PR is ready to merge. Signed-off-by: Xuanwo <github@xuanwo.io>
Add a couple needs-asm-support headers to tests This will allow them to be ignored by codegen backends that don't support inline asm.
…jorn3 Sync rustc_codegen_cranelift The main highlight this sync is enforcing rustfmt and lack of warnings on cg_clif's CI. I will open a separate PR to remove the cg_clif exceptions for them from this repo. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
…r=jsha Fix mobile toggles position Before: ![Screenshot from 2021-12-29 18-53-33](https://user-images.githubusercontent.com/3050060/147764842-082f6fa2-b631-4c47-ba34-ced76fe8494f.png) After: ![Screenshot from 2021-12-29 18-52-48](https://user-images.githubusercontent.com/3050060/147764853-13046330-2442-4fad-b26a-84c167711b54.png) r? `@jsha`
@bors r+ rollup=never p=7 |
📌 Commit 2da54c7 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4d2e0fd): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Successful merges:
Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup