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 5 pull requests #98925

Merged
merged 65 commits into from
Jul 5, 2022
Merged

Rollup of 5 pull requests #98925

merged 65 commits into from
Jul 5, 2022

Commits on Jun 5, 2022

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

Commits on Jun 30, 2022

  1. middle: translation in LintDiagnosticBuilder

    Accept `DiagnosticMessage` in `LintDiagnosticBuilder::build` so that
    lints can be built with translatable diagnostic messages.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7d2eba6 View commit details
    Browse the repository at this point in the history
  2. lint: port array-into-iter diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    0f4c4c5 View commit details
    Browse the repository at this point in the history
  3. lint: port enum intrinsics diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    2a69640 View commit details
    Browse the repository at this point in the history
  4. lint: port expectation diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    a0624eb View commit details
    Browse the repository at this point in the history
  5. lint: port hidden unicode codepoints diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    fd57269 View commit details
    Browse the repository at this point in the history
  6. lint: port default hash types diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    e88916c View commit details
    Browse the repository at this point in the history
  7. lint: port query instability diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    8139542 View commit details
    Browse the repository at this point in the history
  8. lint: port ty diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    0996a7a View commit details
    Browse the repository at this point in the history
  9. lint: port impl LintPass by hand diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    1c3a3e0 View commit details
    Browse the repository at this point in the history
  10. lint: port non-existant doc keyword diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    674ac60 View commit details
    Browse the repository at this point in the history
  11. lint: port translation migration diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    4f35c79 View commit details
    Browse the repository at this point in the history
  12. lint: port CString ptr diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    c29e05e View commit details
    Browse the repository at this point in the history
  13. lint: port non-ascii-idents diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    48e4bf1 View commit details
    Browse the repository at this point in the history
  14. lint: port non-fmt-panic diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7ee4aa7 View commit details
    Browse the repository at this point in the history
  15. lint: port non-standard style diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    096a69d View commit details
    Browse the repository at this point in the history
  16. lint: port no-op method call diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    855f237 View commit details
    Browse the repository at this point in the history
  17. lint: port pass-by-value diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    37588d6 View commit details
    Browse the repository at this point in the history
  18. lint: port redundant semicolons diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    8e83656 View commit details
    Browse the repository at this point in the history
  19. lint: port drop trait/glue diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7ef610c View commit details
    Browse the repository at this point in the history
  20. lint: port overflowing literals diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7a9bef4 View commit details
    Browse the repository at this point in the history
  21. lint: port improper ctypes diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    e5f2e0e View commit details
    Browse the repository at this point in the history
  22. lint: port variant size difference diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    14c3016 View commit details
    Browse the repository at this point in the history
  23. lint: port atomic ordering diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    0602729 View commit details
    Browse the repository at this point in the history
  24. lint: port unused diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    1999a4c View commit details
    Browse the repository at this point in the history
  25. lint: port path statement diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    2829f51 View commit details
    Browse the repository at this point in the history
  26. lint: port unused delimiter diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    fc4f8d9 View commit details
    Browse the repository at this point in the history
  27. lint: port unused import braces diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    e248338 View commit details
    Browse the repository at this point in the history
  28. lint: port unused allocation diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    4f7b10f View commit details
    Browse the repository at this point in the history
  29. lint: port while true diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    588977b View commit details
    Browse the repository at this point in the history
  30. lint: port box pointers diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    d433c9a View commit details
    Browse the repository at this point in the history
  31. lint: port non-shorthand pattern diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    4c63a21 View commit details
    Browse the repository at this point in the history
  32. lint: port unsafe diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7dffd14 View commit details
    Browse the repository at this point in the history
  33. lint: port missing documentation diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    82bd2c2 View commit details
    Browse the repository at this point in the history
  34. lint: port missing copy impl diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    28655bc View commit details
    Browse the repository at this point in the history
  35. lint: port missing debug impl diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    284ec37 View commit details
    Browse the repository at this point in the history
  36. lint: port anonymous parameter diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    18a48c1 View commit details
    Browse the repository at this point in the history
  37. lint: port deprecated attr diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    e151d66 View commit details
    Browse the repository at this point in the history
  38. lint: port unused doc comment diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    a13b70e View commit details
    Browse the repository at this point in the history
  39. lint: port no-mangle diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    dbdbdb6 View commit details
    Browse the repository at this point in the history
  40. lint: port mutable transmutes diagnostic

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    d071f50 View commit details
    Browse the repository at this point in the history
  41. lint: port unstable feature diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    23ee3e0 View commit details
    Browse the repository at this point in the history
  42. lint: port unreachable pub diagnostic

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    dbced10 View commit details
    Browse the repository at this point in the history
  43. lint: port type alias bounds diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    01a64af View commit details
    Browse the repository at this point in the history
  44. lint: port trivial bounds diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    3c9bda5 View commit details
    Browse the repository at this point in the history
  45. lint: port ... range pattern diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    3a498a7 View commit details
    Browse the repository at this point in the history
  46. lint: port test items diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    10f2d3f View commit details
    Browse the repository at this point in the history
  47. lint: port keyword idents diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    1067641 View commit details
    Browse the repository at this point in the history
  48. lint: port explicit outlives diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    acea23e View commit details
    Browse the repository at this point in the history
  49. lint: port incomplete features diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    bd8fe82 View commit details
    Browse the repository at this point in the history
  50. lint: add todo for invalid value diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    157cbbc View commit details
    Browse the repository at this point in the history
  51. lint: port clashing extern diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    2e563a4 View commit details
    Browse the repository at this point in the history
  52. lint: port deref nullptr diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    5524ca1 View commit details
    Browse the repository at this point in the history
  53. lint: port asm labels diagnostics

    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    fedd4c6 View commit details
    Browse the repository at this point in the history
  54. tests: avoid inadvertent diffs in diag derive test

    In the diagnostic derive test, a "the following other types implement
    trait" diagnostic is output which lists rustc types that implement
    `IntoDiagnosticArg`. As the output of this test can change due to new
    internal compiler types like implementing `IntoDiagnosticArg`, it can
    start failing without indicating a problem to be fixed - so normalize
    that output away.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    9ff6c77 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. Improve click behavior of the source code mobile full-screen "sidebar"

    On desktop, if you open the source code sidebar, it stays open even when you
    move from page to page. It used to do the same thing on mobile, but I think
    that's stupid. Since the file list fills the entire screen on mobile, and you
    can't really do anything with the currently selected file other than dismiss
    the "sidebar" to look at it, it's safe to assume that anybody who clicks a
    file in that list probably wants the list to go away so they can see it.
    notriddle committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    83f2288 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2022

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

Commits on Jul 3, 2022

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

Commits on Jul 5, 2022

  1. ⬆️ rust-analyzer

    lnicola committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    170b173 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#97712 - RalfJung:untyped, r=scottmcm

    ptr::copy and ptr::swap are doing untyped copies
    
    The consensus in rust-lang#63159 seemed to be that these operations should be "untyped", i.e., they should treat the data as raw bytes, should work when these bytes violate the validity invariant of `T`, and should exactly preserve the initialization state of the bytes that are being copied. This is already somewhat implied by the description of "copying/swapping size*N bytes" (rather than "N instances of `T`").
    
    The implementations mostly already work that way (well, for LLVM's intrinsics the documentation is not precise enough to say what exactly happens to poison, but if this ever gets clarified to something that would *not* perfectly preserve poison, then I strongly assume there will be some way to make a copy that *does* perfectly preserve poison). However, I had to adjust `swap_nonoverlapping`; after ``@scottmcm's`` [recent changes](rust-lang#94212), that one (sometimes) made a typed copy. (Note that `mem::swap`, which works on mutable references, is unchanged. It is documented as "swapping the values at two mutable locations", which to me strongly indicates that it is indeed typed. It is also safe and can rely on `&mut T` pointing to a valid `T` as part of its safety invariant.)
    
    On top of adding a test (that will be run by Miri), this PR then also adjusts the documentation to indeed stably promise the untyped semantics. I assume this means the PR has to go through t-libs (and maybe t-lang?) FCP.
    
    Fixes rust-lang#63159
    Dylan-DPC committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    8fa1ed8 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#98624 - davidtwco:translation-on-lints, r=c…

    …ompiler-errors
    
    lints: mostly translatable diagnostics
    
    As lints are created slightly differently than other diagnostics, intended to try make them translatable first and then look into the applicability of diagnostic structs but ended up just making most of the diagnostics in the crate translatable (which will still be useful if I do make a lot of them structs later anyway).
    
    r? ``@compiler-errors``
    Dylan-DPC committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    291df97 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98776 - notriddle:notriddle/mobile-sidebar-…

    …auto-close, r=GuillaumeGomez
    
    rustdoc: improve click behavior of the source code mobile full-screen "sidebar"
    
    On desktop, if you open the source code sidebar, it stays open even when you move from page to page. It used to do the same thing on mobile, but I think that's stupid. Since the file list fills the entire screen on mobile, and you can't really do anything with the currently selected file other than dismiss the "sidebar" to look at it, it's safe to assume that anybody who clicks a file in that list probably wants the list to go away so they can see it.
    
    Split out separately from rust-lang#98772
    Dylan-DPC committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    c2613a5 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98856 - GuillaumeGomez:rustdoc-test-rm-fixm…

    …e, r=Dylan-DPC
    
    Remove FIXME from rustdoc intra-doc test
    
    Removed the FIXME.
    
    For the `extern crate`, even if `pub` exported, its documentation wasn't rendered so there is no point in keeping it.
    
    r? ``@notriddle``
    Dylan-DPC committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    6a61e18 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98913 - lnicola:rust-analyzer-2022-07-05, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? ``@ghost``
    Dylan-DPC committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    1036a38 View commit details
    Browse the repository at this point in the history