Skip to content
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

Merged
merged 41 commits into from
Jan 1, 2022
Merged

Rollup of 7 pull requests #92465

merged 41 commits into from
Jan 1, 2022

Commits on Dec 4, 2021

  1. Use fewer colors in rustdoc UI

    This reduces visual distractions when reading method signatures.
    jsha committed Dec 4, 2021
    Configuration menu
    Copy the full SHA
    2a7ee21 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Configuration menu
    Copy the full SHA
    c8e0f97 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2021

  1. Configuration menu
    Copy the full SHA
    3f517fb View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Configuration menu
    Copy the full SHA
    799e067 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'sync_from_rust'

    bjorn3 committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    eb158de View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2021

  1. Fix schedule time

    Run at 01:17 UTC instead of 17:01
    bjorn3 authored Dec 26, 2021
    Configuration menu
    Copy the full SHA
    7762c7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3323fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad5966e View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2021

  1. Configuration menu
    Copy the full SHA
    9089c30 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2021

  1. Add try_reserve for OsString

    Signed-off-by: Xuanwo <github@xuanwo.io>
    Xuanwo committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    c40ac57 View commit details
    Browse the repository at this point in the history
  2. Fix windows build

    Signed-off-by: Xuanwo <github@xuanwo.io>
    Xuanwo committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    013fbc6 View commit details
    Browse the repository at this point in the history
  3. Implement support in wtf8

    Signed-off-by: Xuanwo <github@xuanwo.io>
    Xuanwo committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    27b92c9 View commit details
    Browse the repository at this point in the history
  4. Add y.bin.dSYM to .gitignore

    bjorn3 committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    0467c6a View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Update library/std/src/ffi/os_str.rs

    Co-authored-by: David Tolnay <dtolnay@gmail.com>
    Xuanwo and dtolnay authored Dec 29, 2021
    Configuration menu
    Copy the full SHA
    9166428 View commit details
    Browse the repository at this point in the history
  2. Address comments

    Signed-off-by: Xuanwo <github@xuanwo.io>
    Xuanwo committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    b07ae1c View commit details
    Browse the repository at this point in the history
  3. 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.
    bjorn3 committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    59bf63b View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2021

  1. Rename cargo executable to cargo-clif

    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
    bjorn3 committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    0dd3d28 View commit details
    Browse the repository at this point in the history
  2. Deny warnings on CI

    bjorn3 committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    7c62357 View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    bjorn3 committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    9bcdb53 View commit details
    Browse the repository at this point in the history
  4. Enforce rustfmt on CI

    bjorn3 committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    40e8846 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4b1a243 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    304a50b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6b4e640 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f6d0e14 View commit details
    Browse the repository at this point in the history
  9. Don't enable optimizations in the dev profile

    I rarely use the dev profile anyway.
    bjorn3 committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    f97670a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c63d8f3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    40b00f4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a8e6d5b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b77830d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7c78ea5 View commit details
    Browse the repository at this point in the history
  15. Fix some copy/paste hysteresis in OsString try_reserve docs

    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.
    dtolnay committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    1f62c24 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d29941e View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2021

  1. Extend check for UnsafeCell in consts to cover unions

    A validity companion to changes from rust-lang#90373.
    tmiasko committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    2eb637a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1fbafd View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#90383 - tmiasko:union-validity, r=RalfJung

    Extend check for UnsafeCell in consts to cover unions
    
    A validity companion to changes from rust-lang#90373.
    
    `@rust-lang/wg-const-eval`
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    ac1060e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91375 - Apteryks:per-target-default-linker,…

    … 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.
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    198fca8 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#91480 - jsha:fewer-colors, r=GuillaumeGomez

    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
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    72e36d4 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#92338 - Xuanwo:try_reserve, r=dtolnay

    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>
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    8322603 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#92405 - bjorn3:more_needs_inline_asm, r=lqd

    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.
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    81f5dbd View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#92435 - bjorn3:sync_cg_clif-2021-12-30, r=b…

    …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
    matthiaskrgr authored Dec 31, 2021
    Configuration menu
    Copy the full SHA
    4e4d258 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2da54c7 View commit details
    Browse the repository at this point in the history