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 11 pull requests #91485

Closed
wants to merge 44 commits into from

Commits on Oct 25, 2021

  1. Make Option::expect const

    lilasta committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7430b22 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

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

Commits on Nov 9, 2021

  1. Link tracking issues in Configurations.md (rust-lang#4096)

    # Conflicts:
    #	Configurations.md
    Wu Yu Wei authored and calebcartwright committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    e6d1bf5 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2021

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

Commits on Nov 17, 2021

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

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    0023abf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c442cc View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2021

  1. Configuration menu
    Copy the full SHA
    196e676 View commit details
    Browse the repository at this point in the history
  2. 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>
    karyon and calebcartwright committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    826eba8 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. fix: do not wrap reference-style doc links

    Prevents wrap_comments from incorrectly wrapping reference-style doc
    links.
    domodwyer authored and calebcartwright committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    4389a4c View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. 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.
    jsha committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    4198fac View commit details
    Browse the repository at this point in the history
  2. 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.
    estebank committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    f99469d View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. Update README.md

    bluenote10 authored and calebcartwright committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    243cec7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0da3a0f View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2021

  1. Configuration menu
    Copy the full SHA
    ea042b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    67fd9ec View commit details
    Browse the repository at this point in the history
  3. 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() {
            ...
        }
    ytmimi authored and calebcartwright committed Nov 27, 2021
    Configuration menu
    Copy the full SHA
    a21f1b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2021

  1. Configuration menu
    Copy the full SHA
    0fc846f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f28683 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

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

Commits on Dec 2, 2021

  1. 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.
    ytmimi authored and calebcartwright committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    ec46ffd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a14525 View commit details
    Browse the repository at this point in the history
  3. 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.
    Kixunil committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    41e21aa View commit details
    Browse the repository at this point in the history
  4. 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.
    estebank committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    6544097 View commit details
    Browse the repository at this point in the history
  5. 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.
    estebank committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    5d8b835 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b97e078 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    00f15c5 View commit details
    Browse the repository at this point in the history
  8. Fix rebase

    estebank committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    b988151 View commit details
    Browse the repository at this point in the history
  9. 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.
    rtzoeller committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    0fdb109 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a11994e View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Configuration menu
    Copy the full SHA
    e305322 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8da8371 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f6ade7c View commit details
    Browse the repository at this point in the history
  4. 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.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    0a4caa2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#90269 - woppopo:const_option_expect, r=yaahc

    Make `Option::expect` unstably const
    
    Tracking issue: rust-lang#67441
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    9d92340 View commit details
    Browse the repository at this point in the history
  6. 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.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    021e18c View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90854 - sanxiyn:unsized-and-uninhabited, r=…

    …estebank
    
    Type can be unsized and uninhabited
    
    Fix rust-lang#88150.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    34fd8d6 View commit details
    Browse the repository at this point in the history
  8. 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
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    538beef View commit details
    Browse the repository at this point in the history
  9. 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.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    7af2859 View commit details
    Browse the repository at this point in the history
  10. 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.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    c441004 View commit details
    Browse the repository at this point in the history
  11. 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
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    d1e09f9 View commit details
    Browse the repository at this point in the history
  12. 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`
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    26b278c View commit details
    Browse the repository at this point in the history
  13. 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.
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    d1ce18c View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#91483 - calebcartwright:sync-rustfmt-subtre…

    …e, r=calebcartwright
    
    Sync rustfmt subtree
    matthiaskrgr committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    d1096fd View commit details
    Browse the repository at this point in the history