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

Subtree update of rust-analyzer #120198

Merged
merged 157 commits into from
Jan 21, 2024
Merged

Subtree update of rust-analyzer #120198

merged 157 commits into from
Jan 21, 2024

Commits on Jan 9, 2024

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

Commits on Jan 11, 2024

  1. Configuration menu
    Copy the full SHA
    e6dd522 View commit details
    Browse the repository at this point in the history
  2. fix broken test

    Young-Flash committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    afe05fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    45eea57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4a6b16b View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Configuration menu
    Copy the full SHA
    22cda95 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c3744e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0b310f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6033b66 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    df53828 View commit details
    Browse the repository at this point in the history
  6. order merged use trees

    davidsemakula committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    22ae5f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    db3f0f1 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2024

  1. Configuration menu
    Copy the full SHA
    d4b43d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02d21f2 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Auto merge of rust-lang#16361 - dtolnay-contrib:visualstudio, r=Veykril

    Add a stable #visual-studio anchor to the Manual
    
    Helpful for rust-lang/www.rust-lang.org#1915 so we have a persistent place to link as "Visual Studio" from the Rust website.
    
    Syntax reference: https://docs.asciidoctor.org/asciidoc/latest/sections/custom-ids/#assign-auxiliary-ids
    bors committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    0b19e48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7eb52d View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#16356 - Veykril:sysroot-metadata, r=Veykril

    internal: Add unstable config for loading the sysroot sources via `cargo metadata`
    
    cc rust-lang/rust-analyzer#7637
    
    This takes the approach of having `cargo metadata` generate a lock file that we then delete again, hence why this is behind a flag. If people need this for their workflow they can just enable it, if not, they are probably better off keeping it disabled. [example](https://dreampuf.github.io/GraphvizOnline/#digraph%20rust_analyzer_crate_graph%20%7B%0A%20%20%20%20_0%5Blabel%3D%22core%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_17%5Blabel%3D%22ra_playground%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_14%5Blabel%3D%22getopts%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_11%5Blabel%3D%22std_detect%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_8%5Blabel%3D%22unwind%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_5%5Blabel%3D%22hashbrown%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_2%5Blabel%3D%22alloc%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_16%5Blabel%3D%22test%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_13%5Blabel%3D%22unicode_width%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_10%5Blabel%3D%22rustc_demangle%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_7%5Blabel%3D%22panic_abort%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_4%5Blabel%3D%22cfg_if%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_1%5Blabel%3D%22compiler_builtins%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_18%5Blabel%3D%22build_script_build%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_15%5Blabel%3D%22proc_macro%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_12%5Blabel%3D%22std%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_9%5Blabel%3D%22panic_unwind%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_6%5Blabel%3D%22libc%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_3%5Blabel%3D%22allocator_api2%22%5D%5Bshape%3D%22box%22%5D%3B%0A%20%20%20%20_17%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_17%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_17%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_17%20-%3E%20_15%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_17%20-%3E%20_16%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_14%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_14%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_14%20-%3E%20_13%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_11%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_11%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_11%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_11%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_11%20-%3E%20_6%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_8%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_8%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_8%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_8%20-%3E%20_6%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_5%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_5%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_5%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_5%20-%3E%20_3%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_2%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_2%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_16%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_16%20-%3E%20_7%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_16%20-%3E%20_9%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_16%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_16%20-%3E%20_14%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_13%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_13%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_13%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_10%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_10%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_7%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_7%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_7%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_7%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_7%20-%3E%20_6%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_1%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_18%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_18%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_18%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_18%20-%3E%20_15%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_18%20-%3E%20_16%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_15%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_15%20-%3E%20_12%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_5%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_6%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_7%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_8%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_9%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_10%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_12%20-%3E%20_11%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_1%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_2%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_4%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_6%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_9%20-%3E%20_8%5Blabel%3D%22%22%5D%3B%0A%20%20%20%20_6%20-%3E%20_0%5Blabel%3D%22%22%5D%3B%0A%7D%0A)
    
    ![image](https://github.com/rust-lang/rust-analyzer/assets/3757771/7709bb38-d948-4106-82c2-9b76677620bd)
    hashbrown resolves as a dependency now
    bors committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    a616c4d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d80d2fc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6bbd106 View commit details
    Browse the repository at this point in the history
  6. Deduplicate

    Veykril committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    2d72ec7 View commit details
    Browse the repository at this point in the history
  7. Thinner DefDiagnostics

    Veykril committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    1669344 View commit details
    Browse the repository at this point in the history
  8. Cleanup

    Veykril committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    180e9b2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a356172 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f937673 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    fe35447 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    ff71513 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2aee95 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#16364 - lnicola:sync-from-rust, r=lnicola

    internal: sync from downstream
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    b9fd12b View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16196 - mohe2015:rename-generator-to-coroutin…

    …e, r=Veykril
    
    Rename generator to coroutine
    
    Follow the rename in nightly (see https://blog.rust-lang.org/inside-rust/2023/10/23/coroutines.html)
    
    This makes it much easier to test code with the nightly compiler.
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    4de8954 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#16351 - Veykril:eager-enum-variant, r=Veykril

    internal: Eagerly lower enum variants in CrateDefMap construction
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    5df53c9 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16350 - roife:neon-support-for-line-index, r=…

    …Veykril
    
    internal: Speedup line index calculation via NEON for aarch64
    
    This commit provides SIMD acceleration (via NEON) for `line-index` library on aarch64 architecture, which improves performance for Apple Silicon users (and potentially for future aarch64-based chips).
    
    The algorithm used here follows the same process as the original implementation using SSE2. Most of the vector instructions in SSE2 have corresponding parts in neon. The only issue is that there is no corresponding instruction for `_mm_movemask_epi8` in neon. To address this problem, I referred to the article at https://community.arm.com/arm-community-blogs/b/infrastructure-solutions-blog/posts/porting-x86-vector-bitmask-optimizations-to-arm-neon.
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    18abb12 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#15868 - wasd96040501:fix/symlink2, r=Veykril

    fix: failed to infer OUT_DIR when workspace root contains symlink
    
    fix rust-lang#15867
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    87e609a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3981508 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#15636 - 9999years:show-which-roots-are-scanne…

    …d, r=Veykril
    
    Show which roots are being scanned in progress messages
    
    This changes the `Roots Scanned` message to include the directory being scanned.
    
    Before: `Roots Scanned 206/210 (98%)`
    After: `Roots Scanned 206/210: .direnv (98%)`
    
    This makes it a lot easier to tell that `rust-analyzer` isn't crashed, it's just trying to scan a huge directory.
    
    See: rust-lang#12613
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    c9afd41 View commit details
    Browse the repository at this point in the history
  10. Impl fmt::Display for Span

    Veykril committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    659d4f9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cf905cf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    90a1b48 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    54f2111 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f675b5e View commit details
    Browse the repository at this point in the history
  15. Bump smol_str

    Veykril committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    35e05e0 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#16366 - Veykril:transp-queries, r=Veykril

    internal: Make data queries transparent over their diagnostics variant
    
    And a few other QoL things
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    2d5ce88 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5b2a2bc View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1f91c48 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8f4f5a6 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#16367 - Veykril:value-ty, r=Veykril

    fix: Make `value_ty` query fallible
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    63c4e69 View commit details
    Browse the repository at this point in the history
  21. Auto merge of rust-lang#16352 - davidsemakula:rustfmt-import-sort-alg…

    …o, r=Veykril
    
    internal: Follow rustfmt's algorithm for ordering imports when ordering and merging use trees
    
    Updates use tree ordering and merging utilities to follow rustfmt's algorithm for ordering imports.
    The [rustfmt implementation](https://github.com/rust-lang/rustfmt/blob/6356fca675bd756d71f5c123cd053d17b16c573e/src/imports.rs) was used as reference.
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    0a8c784 View commit details
    Browse the repository at this point in the history
  22. minor: Simplify

    Veykril committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    6584e63 View commit details
    Browse the repository at this point in the history
  23. Auto merge of rust-lang#16369 - Veykril:simplify, r=Veykril

    minor: Simplify
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    e7a8d21 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    384488c View commit details
    Browse the repository at this point in the history
  25. Auto merge of rust-lang#16370 - Veykril:hover-lit, r=Veykril

    feat: Hover for literals showing additional value information
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    e2df3f2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7c94c29 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    82e8355 View commit details
    Browse the repository at this point in the history
  28. Auto merge of rust-lang#16374 - Veykril:hover-notable, r=Veykril

    feat: Show notable trait impls on hover
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    7777a81 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ffeaee8 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0a75a8c View commit details
    Browse the repository at this point in the history
  31. Auto merge of rust-lang#16375 - Veykril:hover-notable, r=Veykril

    feat: Goto type actions for notable trait hovers
    
    Follow up to rust-lang/rust-analyzer#16374
    bors committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    0333646 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Configuration menu
    Copy the full SHA
    d48498f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    920e99a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21723cb View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16378 - roife:fix/issue-15470, r=Veykril

    fix: better handling of SelfParam in assist 'inline_call'
    
    fix rust-lang#15470.
    
    The current `inline_call` directly translates `&self` into `let ref this = ...;` and `&mut self` into `let ref mut this = ...;`. However, it does not handle some complex scenarios.
    
    This PR addresses the following transformations (assuming the receiving object is `obj`):
    
    - `self`: `let this = obj`
    - `mut self`: `let mut this = obj`
    - `&self`: `let this = &obj`
    - `&mut self`
      + If `obj` is `let mut obj = ...`, use a mutable reference: `let this = &mut obj`
      + If `obj` is `let obj = &mut ...;`, perform a reborrow: `let this = &mut *obj`
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    f4fec4f View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#16380 - Veykril:sysroot-ci, r=Veykril

    Run metadata on sysroot for CI metrics
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    2b02df2 View commit details
    Browse the repository at this point in the history
  6. Handle macro_rules! as MACRO_CALL

    It's a call of the third token is neither IDENT or TRY
    Urhengulas committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    5916da2 View commit details
    Browse the repository at this point in the history
  7. Fix test

    Urhengulas committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    76c67dd View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#16314 - Urhengulas:macro_rule-as-macro-name, …

    …r=Veykril
    
    `macro_rules` as macro name
    
    This PR makes RA parse `macro_rules! {}` (note the missing identifier) as a `MACRO_CALL` instead of `MACRO_RULES`.
    
    Fixes rust-lang#15969.
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    c820980 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0bdbf49 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#16383 - Veykril:progress, r=Veykril

    fix: Fix progress reporting getting stuck
    
    Fixes rust-lang/rust-analyzer#16382
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    5b62ebc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8359126 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    27b0636 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#16387 - lnicola:metrics-sysroot, r=Veykril

    internal: Fix sysroot metadata in metrics
    
    CC rust-lang/rust-analyzer#16380 (comment)
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    a19372f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    84a3b52 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#16389 - davidsemakula:order-use-tree-raw-iden…

    …t, r=lnicola
    
    internal: properly order raw idents when ordering use trees
    
    Follow up to rust-lang#16352 to properly order raw identifiers.
    bors committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    9d9b343 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    57d4b5b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    4f176b3 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    7db4117 View commit details
    Browse the repository at this point in the history
  19. Add a new config to allow renaming of non-local items

    With rust-lang#15656 we started disallowing renaming of non-local items.
    Although this makes sense there are some false positives that
    impacted users' workflows. So this config aims to mitigate this
    by giving users the liberty to disable this feature.
    alibektas committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    9bd9a17 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. Configuration menu
    Copy the full SHA
    04ce4ce View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#16395 - roife:internal/speed-up-LineEndings-w…

    …ith-memchr, r=Veykril
    
    internal: speedup LineEndings calculation using 'memchr'
    
    See rust-lang/rust-analyzer#13538
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    8bb500a View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#16384 - Veykril:smolstr, r=Veykril

    minor: Make use of some new `SmolStr` improvements
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    2dfa9b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1c61326 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd26403 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0bf986d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5074486 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#16349 - Young-Flash:use_error_recovery, r=Vey…

    …kril
    
    fix: add error recovery for use_tree_list parsing
    
    This PR adds error recovery for USE_TREE_LIST parsing, avoid the wrong USE_TREE_LIST making the rest parsing incorrectly.
    
    before
    
    ![before](https://github.com/rust-lang/rust-analyzer/assets/71162630/c6643690-f25c-4ad9-93d9-e661ba5b1dc3)
    
    after
    
    ![after](https://github.com/rust-lang/rust-analyzer/assets/71162630/30a58c40-2711-48d2-b2e5-fb208fc8636c)
    
    close rust-lang/rust-analyzer#16227
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    1ab8c7f View commit details
    Browse the repository at this point in the history
  9. v2

    alibektas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    2102091 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b599de1 View commit details
    Browse the repository at this point in the history
  11. Refactor if-else

    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    f913d4f View commit details
    Browse the repository at this point in the history
  12. Add tests for intra-doc links

    The first one succeeds because the functionality is already implemented.
    The second one fails and represents the functionality to be implemented
    in this PR.
    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    bfc2e56 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c817286 View commit details
    Browse the repository at this point in the history
  14. cargo clippy --fix

    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    fad4fa1 View commit details
    Browse the repository at this point in the history
  15. Fix CI

    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    2185396 View commit details
    Browse the repository at this point in the history
  16. Fix CI 2

    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    28c7fa8 View commit details
    Browse the repository at this point in the history
  17. Fix CI 3

    Urhengulas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    255cde7 View commit details
    Browse the repository at this point in the history
  18. Auto merge of rust-lang#16391 - alibektas:15656/renaming_allowed_by_c…

    …onfig, r=Veykril
    
    Add a new config to allow renaming of non-local defs
    
    With rust-lang#15656 we started disallowing renaming of non-local items. Although this makes sense there are some false positives that impacted users' workflows. So this config aims to mitigate this by giving users the liberty to disable this feature.
    
    The reason why this is a draft is that I saw one of the tests fail and I am not sure if the "got" result even syntactically makes sense
    
    Test case is :
    
    ```rust
    check(
                "Baz",
                r#"
    //- /lib.rs crate:lib new_source_root:library
    pub struct S;
    //- /main.rs crate:main deps:lib new_source_root:local
    use lib::S$0;
    "#,
                "use lib::Baz;"
    );
    ```
    
    ```
    Left:
    use lib::Baz;
    
    Right:
    use lib::Baz;Baz
    
    Diff:
    use lib::Baz;Baz
    ```
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    a5b89ff View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6d31416 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#16397 - Urhengulas:refactor-parser, r=Veykril

    Refactor `macro_call` to be consistent with other functions
    
    rust-lang/rust-analyzer#16314 (comment)
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    48af3ef View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    67c1c2b View commit details
    Browse the repository at this point in the history
  22. Auto merge of rust-lang#16372 - davidsemakula:import-granularity-one,…

    … r=Veykril
    
    feat: Add "One" import granularity
    
    Adds a new import granularity option "One" that merges all imports into a single use statement as long as they have the same visibility and attributes.
    
    This is similar to [rustfmt's `imports_granularity = "One"`](https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=import#imports_granularity).
    
    Fixes: rust-lang#11361
    bors committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    3f4c6da View commit details
    Browse the repository at this point in the history
  23. Update bail message referencing config

    Even though we changed the name of the config I forgot
    to update the warning message that referenced it.
    alibektas committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    431040f View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Auto merge of rust-lang#16398 - Urhengulas:satisfy-clippy, r=Veykril

    `cargo clippy --fix`
    
    This PR is the result of running `cargo clippy --fix && cargo fmt` in the root of the repository. I did not manually review all the changes, but just skimmed through a few of them. The tests still pass, so it seems fine.
    bors committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    85c9a83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1889c6c View commit details
    Browse the repository at this point in the history
  3. Temporarily allow all lints which occur

    They will be removed one by one
    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    3041164 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1fdf306 View commit details
    Browse the repository at this point in the history
  5. Update crates/ide-db/src/rename.rs

    Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
    alibektas and Veykril committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    0becb6c View commit details
    Browse the repository at this point in the history
  6. Update tests

    alibektas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    0347f81 View commit details
    Browse the repository at this point in the history
  7. feat:Record FnAbi

    Veykril committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    3a722bd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    46e3831 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#16400 - alibektas:15656/update_bail_message_r…

    …ef_config, r=Veykril
    
    Update bail message referencing config
    
    Even though we changed the name of the config I forgot to update the warning message that referenced it.
    bors committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    03d4a6d View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#16388 - Veykril:fn-abi, r=Veykril

    internal: Record FnAbi
    
    This unfortunately breaks our lub coercions, so will need to look into fixing that first, though I am not sure what is going wrong where...
    
    Stubbed some stuff out for the time being.
    bors committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    04edfa1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4087dcf View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#16401 - Urhengulas:lint-table, r=Veykril

    Expand lint tables && make clippy happy 🎉
    
    This PR expands the lint tables on `./Cargo.toml` and thereby makes `cargo clippy` exit successfully! 🎉
    
    Fixes rust-lang#15918
    
    ## How?
    
    In the beginning there are some warnings for rustc.
    
    Next, and most importantly, there is the clippy lint table. There are a few sections in there.
    
    First there are the lint groups.
    
    Second there are all lints which are permanently allowed with the reasoning why they are allowed.
    
    Third there is a huge list of temporarily allowed lints. They should be removed in the mid-term, but incur a substantial amount of work, therefore they are allowed for now and can be worked on bit by bit.
    
    Fourth there are all lints which should warn.
    
    Additionally there are a few allow statements in the code for lints which should be permanently allowed in this specific place, but not in the whole code base.
    
    ## Follow up work
    - [ ] Run clippy in CI
    - [ ] Remove tidy test (at least `@Veykril` wrote this in rust-lang#15017)
    - [ ] Work on temporarily allowed lints
    bors committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    2a239b9 View commit details
    Browse the repository at this point in the history
  13. bind_instead_of_map

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    3409645 View commit details
    Browse the repository at this point in the history
  14. collapsible_if

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    b5eca5f View commit details
    Browse the repository at this point in the history
  15. iter_kv_map

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    6573768 View commit details
    Browse the repository at this point in the history
  16. collapsible_match

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    4184c6a View commit details
    Browse the repository at this point in the history
  17. double_parens

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    882289b View commit details
    Browse the repository at this point in the history
  18. for_kv_map

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    2a500d5 View commit details
    Browse the repository at this point in the history
  19. manual_find

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    60dda08 View commit details
    Browse the repository at this point in the history
  20. manual_map

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    d8ad4af View commit details
    Browse the repository at this point in the history
  21. let_and_return

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    6a2a603 View commit details
    Browse the repository at this point in the history
  22. clone_on_copy

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    c629ec7 View commit details
    Browse the repository at this point in the history
  23. no_effect

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    9e4f94c View commit details
    Browse the repository at this point in the history
  24. never_loop

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    6709eab View commit details
    Browse the repository at this point in the history
  25. map_clone

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    eb7aec5 View commit details
    Browse the repository at this point in the history
  26. get_first

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    8982ff3 View commit details
    Browse the repository at this point in the history
  27. from_str_radix_10

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    84494d1 View commit details
    Browse the repository at this point in the history
  28. explicit_auto_deref

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    5753981 View commit details
    Browse the repository at this point in the history
  29. filter_map_bool_then

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    c27b6b5 View commit details
    Browse the repository at this point in the history
  30. if_same_then_else

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    2ae2512 View commit details
    Browse the repository at this point in the history
  31. match_like_matches_macro

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    add40c8 View commit details
    Browse the repository at this point in the history
  32. match_single_binding

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    d351cb8 View commit details
    Browse the repository at this point in the history
  33. needless_borrow

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    3839f9a View commit details
    Browse the repository at this point in the history
  34. needless_lifetimes

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    a342e93 View commit details
    Browse the repository at this point in the history
  35. needless_pass_by_value

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    6699c90 View commit details
    Browse the repository at this point in the history
  36. needless_return

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    e58b683 View commit details
    Browse the repository at this point in the history
  37. nonminimal_bool

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    e6f9f4c View commit details
    Browse the repository at this point in the history
  38. non_minimal_cfg

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    bef3551 View commit details
    Browse the repository at this point in the history
  39. only_used_in_recursion

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    0df3049 View commit details
    Browse the repository at this point in the history
  40. op_ref

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    4858a37 View commit details
    Browse the repository at this point in the history
  41. option_map_unit_fn

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    7e8568b View commit details
    Browse the repository at this point in the history
  42. partialeq_to_none

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    692212b View commit details
    Browse the repository at this point in the history
  43. redundant_locals

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    9527e24 View commit details
    Browse the repository at this point in the history
  44. ptr_arg

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    6738edc View commit details
    Browse the repository at this point in the history
  45. question_mark

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    3cf1358 View commit details
    Browse the repository at this point in the history
  46. redundant_closure

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    5a62a0d View commit details
    Browse the repository at this point in the history
  47. redundant_pattern_matching

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    71d4dba View commit details
    Browse the repository at this point in the history
  48. search_is_some

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    159b4c9 View commit details
    Browse the repository at this point in the history
  49. should_implement_trait

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    9dd07f0 View commit details
    Browse the repository at this point in the history
  50. single_match

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    b1a0c9a View commit details
    Browse the repository at this point in the history
  51. redundant_locals

    Urhengulas committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    9e83779 View commit details
    Browse the repository at this point in the history
  52. Auto merge of rust-lang#16404 - Urhengulas:satisfy-clippy, r=Veykril

    Work through temporarily allowed clippy lints, part 1
    
    This is the first batch of not allowing but actually fixing the clippy lints. Each commit removes one lint from the lint table and then fixes the resulting warnings.
    
    Follow-up to rust-lang#16401
    bors committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    67cfbf2 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Configuration menu
    Copy the full SHA
    f9b5e0d View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#16396 - Young-Flash:fix_marco, r=Veykril

    fix panic with reference in macro
    
    it panic at `builder.make_mut(segment)`, where segment is from macro expand. And the usage reference in orginal macro call isn't a `PathSegment` so we can't update it in `apply_references`, I can't find a way to deal with it properly so here just filter out the reference in macro. LMK if there are better way to fix this
    
    try to close rust-lang/rust-analyzer#16328
    bors committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    0c76421 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    721e790 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5aa7583 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#16405 - dfireBird:guarded-return-for-loop, r=…

    …lnicola
    
    fix: Include `for` construct in convert to guarded return conditions
    bors committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    d4926c1 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16406 - davidsemakula:editorconfig, r=lnicola

    internal: add `max_line_length` to `.editorconfig`
    
    This helps with setting proper visual guides/rulers for the right margin in some editors/IDEs (e.g. CLion)
    bors committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    a911652 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

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