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 #120916

Merged
merged 163 commits into from
Feb 11, 2024
Merged

Subtree update of rust-analyzer #120916

merged 163 commits into from
Feb 11, 2024

Commits on Dec 15, 2023

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

Commits on Jan 24, 2024

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

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    9e8a0fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0fd7706 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9bef39 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    5fe3b75 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d2d632 View commit details
    Browse the repository at this point in the history
  3. no incorrect case diagnostics for trait impl assoc functions and cons…

    …ts except for pats in fn bodies
    davidsemakula committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    0ffc088 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    080d223 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    46d79e2 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2024

  1. Configuration menu
    Copy the full SHA
    c0071ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23aa872 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e29104 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d761d86 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1451270 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2024

  1. Configuration menu
    Copy the full SHA
    8011b56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8a3180 View commit details
    Browse the repository at this point in the history
  3. Try to fix in-tree build

    lnicola committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    38b5c8c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bec1e0f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    97ecfe4 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16485 - Young-Flash:minor, r=lnicola

    minor: polish warning msg
    
    sorry for this 😅
    
    ![PixPin_2024-02-04_18-33-23](https://github.com/rust-lang/rust-analyzer/assets/71162630/9aaa49d7-34f4-4c78-b91c-e85550252e25)
    bors committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    39ad79b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    33b3b6d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a607e1b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b45ee82 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

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

    ShoyuVanilla authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    983cce8 View commit details
    Browse the repository at this point in the history
  3. cargo fmt

    ShoyuVanilla authored Feb 5, 2024
    Configuration menu
    Copy the full SHA
    26715a8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ec3f7b5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4efdb47 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16492 - lnicola:sync-from-rust, r=lnicola

    internal: Sync from downstream
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    06737ec View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#16480 - GnomedDev:remove-unused-visit_ids, r=…

    …lnicola
    
    Remove unused Subtree::visit_ids function
    
    Completely unused, nothing else even shows up when searching for `visit_ids`.
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    081cf02 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#16474 - davidbarsky:david/import-on-the-fly-i…

    …mprovements, r=lnicola
    
    internal: even more `tracing`
    
    As part of profiling completions, I added some additional spans and moved `TyBuilder::subst_for_def` closer to its usage site (the latter had a small impact on completion performance. Thanks for the tip, Lukas!)
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    3e47532 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#16482 - GnomedDev:boxed-subtree, r=lnicola

    Swap Subtree::token_trees from Vec to boxed slice
    
    Performs one of the optimizations suggested in rust-lang#16325, but a little bit more. Boxed slices guarantee `shrink_to_fit` aswell as saving a pointer width as no capacity has to be stored.
    
    Most of the diff is:
    - Changing `vec![]` to `Box::new([])`
    - Changing initialize -> fill into fill -> into_boxed_slice
    - Working around the lack of an owned iterator or automatic iteration over a `Box<[T]>`
    
    I would like to use my own crate, [small-fixed-array](https://lib.rs/small-fixed-array), although I understand if it isn't mature enough for this. If I'm given the go ahead, I can rework this PR to use it instead.
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    7fb639f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c495e3f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    864c3d5 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#16493 - Young-Flash:method_call_parser, r=Vey…

    …kril
    
    fix: emit parser error for missing argument list
    
    close rust-lang/rust-analyzer#16362
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    cb37fcc View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    53db37f View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#16470 - Veykril:clippy-disallow, r=lnicola

    internal: Lint debug prints and disallowed types with clippy
    bors committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    66cec4d View commit details
    Browse the repository at this point in the history
  15. remove clones

    matthiaskrgr committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    ac9d1a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Tweak variant_id_for_adt

    Nadrieril committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    c2d2124 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba7b12e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2d4119 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16496 - matthiaskrgr:c, r=lnicola

    minor: remove clones
    bors committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    64411a4 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#16499 - Nadrieril:update-pat-ana, r=lnicola

    internal: Update rustc_pattern_analysis dependency
    
    Just bumping the dependency, as I've been making API changes over on the rustc side. More API changes incoming in the coming weeks.
    
    One benefit of this: we no longer abort in the `DeconstructedPat: Debug` impl, which means we can use `tracing` to investigate issues.
    bors committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    6671d3c View commit details
    Browse the repository at this point in the history
  6. Run Clippy on Windows

    lnicola committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    32f0a2f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0dd62c0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2c41528 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#16501 - lnicola:lete-snippet-docs, r=lnicola

    minor: Add `lete` to postfix completion list
    bors committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    1974e74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    62cc4f9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d7a0302 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    57a4542 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Move salsa fork in-tree

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    159a03a View commit details
    Browse the repository at this point in the history
  2. rustfmt

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    0a6197d View commit details
    Browse the repository at this point in the history
  3. Bump salsa dev-deps

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    bc5823d View commit details
    Browse the repository at this point in the history
  4. unreachable-pub

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    def5a1d View commit details
    Browse the repository at this point in the history
  5. Remove dev-dependency insta

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    e339c65 View commit details
    Browse the repository at this point in the history
  6. Remove dev-dependency diff

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    731b159 View commit details
    Browse the repository at this point in the history
  7. Clippy

    Veykril committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    3688064 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#16503 - Veykril:salsa, r=Veykril

    Move salsa fork in-tree
    
    No one else is supposed to rely on it anyways, this makes it easier to edit.
    bors committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    2d2ddd3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    97cd680 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#16505 - Veykril:unit-salsa, r=Veykril

    Optimize input queries that take no arguments
    
    There is no point in having a hashmap and extra lock for this, it is always only a single value. This might speed up some things by a tiny bit for our crate graph query.
    bors committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    8628352 View commit details
    Browse the repository at this point in the history
  11. Bump paths-filter

    lnicola committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    aa9bc01 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#16506 - lnicola:bump-paths-filter, r=lnicola

    minor: bump `paths-filter`
    
    Fixes a Node version warning.
    bors committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    ca44e1e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    79e4111 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#16507 - clubby789:remove-ffi_returns_twice, r…

    …=lnicola
    
    Remove `ffi_returns_twice` references
    
    This feature has just been [removed](rust-lang#120502)
    bors committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    c48f145 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. Configuration menu
    Copy the full SHA
    81ea48a View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#16509 - Veykril:hover-tuple-struct, r=Veykril

    fix: Fix tuple structs not rendering visibility in their fields
    
    Fixes rust-lang/rust-analyzer#16508
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    bcc8a09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0258f60 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16510 - Veykril:single-package-check, r=Veykril

    feat: Allow cargo check to run on only the current package
    
    cc rust-lang/rust-analyzer#13336, rust-lang/rust-analyzer#12882
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    ae89522 View commit details
    Browse the repository at this point in the history
  5. fix: Recover from missing argument in call expressions

    Previously, when parsing an argument list with a missing argument (e.g.,
    `(a, , b)` in `foo(a, , b)`), the parser would stop upon an unexpected
    token (at the second comma in the example), resulting in an incorrect
    parse tree.
    
    This commit improves error handling in such cases, ensuring a more
    accurate parse tree is built.
    ohno418 authored and Veykril committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e865d45 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    974e69b View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#16124 - ohno418:call-expr-missing-arg, r=Veykril

    fix: Recover from missing argument in call expressions
    
    Previously, when parsing an argument list with a missing argument (e.g., `(a, , b)` in `foo(a, , b)`), the parser would stop upon an unexpected token (at the second comma in the example), resulting in an incorrect parse tree.
    
    This commit improves error handling in such cases, ensuring a more accurate parse tree is built.
    
    ---
    
    Fixes rust-lang/rust-analyzer#15683.
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    5c80ad0 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#16134 - tvallotton:master, r=Veykril

    fix: waker_getters tracking issue from 87021 for 96992.
    
    I was directed to make the fix here by this comment rust-lang#118960 (comment).
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    6655960 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4bf6b16 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    91dab4d View commit details
    Browse the repository at this point in the history
  11. Fix warnings

    Veykril committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    545382d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    15bffe2 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#16462 - Veykril:proc-error, r=Veykril

    Better error message for when proc-macros have not yet been built
    
    Closes rust-lang/rust-analyzer#16331
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    ddf2611 View commit details
    Browse the repository at this point in the history
  14. Update test outputs

    Veykril committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    ddddc9c View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#16454 - Veykril:break-return-postfix, r=Veykril

    feat: Add break and return postfix keyword completions
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    82674e2 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#16502 - davidsemakula:unnecessary-else-diagno…

    …stic, r=Veykril
    
    feat: Add "unnecessary else" diagnostic and fix
    
    Fixes rust-lang#9457
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e9d3565 View commit details
    Browse the repository at this point in the history
  17. Auto merge of rust-lang#16477 - davidsemakula:trait-incorrect-case-di…

    …agnostic, r=Veykril
    
    feat: Add incorrect case diagnostics for traits and their associated items
    
    Updates incorrect case diagnostic to:
    - Check traits and their associated items
    - Ignore trait implementations except for patterns in associated function bodies
    
    Also cleans up `hir-ty::diagnostics::decl_check` a bit (mostly to make it a bit more DRY and easier to maintain)
    
    Also fixes: rust-lang#8675 and fixes: rust-lang#8225
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    0e5766b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    dad0fdb View commit details
    Browse the repository at this point in the history
  19. Auto merge of rust-lang#16484 - Austaras:master, r=Veykril

    fix: preserve where clause when builtin derive
    
    Closes rust-lang#16432.
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    5812b69 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#16487 - ShoyuVanilla:deref-generate-getter, r…

    …=Veykril
    
    Remove unnecessary `.as_ref()` in generate getter assist
    
    Resolves rust-lang#12389
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e071834 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    2987fac View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    cad222f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    98e6f43 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    a250c2d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    602acfc View commit details
    Browse the repository at this point in the history
  26. Auto merge of rust-lang#16460 - davidsemakula:trailing-return-diagnos…

    …tic, r=Veykril
    
    feat: Add diagnostic with fix to replace trailing `return <val>;` with `<val>`
    
    Works for functions and closures.
    Ignores desugared return expressions (e.g. from desugared try operators).
    
    Fixes: rust-lang#10970
    Completes: rust-lang#11020
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e418c90 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6330b02 View commit details
    Browse the repository at this point in the history
  28. Auto merge of rust-lang#15863 - davidbarsky:davidbarsky/start-of-mono…

    …repo-mode, r=Veykril
    
    feature: Create `UnindexedProject` notification to be sent to the client
    
    (Note that this branch contains commits from rust-lang/rust-analyzer#15830, which I'll rebase atop of as needed.)
    
    Based on the discussion in rust-lang/rust-analyzer#15837, I've added a notification and off-by-default toggle to send that notification from `handle_did_open_text_document`. I'm happy to rename/tweak this as needed.
    
    I've been using this for a little bit, and it does seem to cause a little bit more indexing/work in rust-analyzer, but it's something that I'll profile as needed, I think.
    bors committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    1370784 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Use GenericArgList for make::impl{_trait}

    `make::impl_` no longer merges generic params and args in order to be in line
    with `make::impl_`, which doesn't do it either.
    DropDemBits committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    8c0661b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3924a0e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0e39257 View commit details
    Browse the repository at this point in the history
  4. Add make::ext::expr_self

    Shortcut version of `make::expr_path(make::path_unqualified(make::path_segment_self()))`
    DropDemBits committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    039b3d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0519414 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f1293a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab2233e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e011715 View commit details
    Browse the repository at this point in the history
  9. Add AssocItemList::add_item_at_start

    Needed to recreate the behavior of `generate_new` addding the `new` method at the start of the impl
    DropDemBits committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    e28f551 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    18ea09f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8eebf17 View commit details
    Browse the repository at this point in the history
  12. Remove unused code in utils

    All usages of `render_snippet` and `Cursor` have been removed as part of the migration
    DropDemBits committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    1161082 View commit details
    Browse the repository at this point in the history
  13. Fix clippy lints

    DropDemBits committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    05b8ccc View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#16467 - DropDemBits:structured-snippet-migrat…

    …e-6, r=DropDemBits
    
    internal: Migrate assists to the structured snippet API, part 6/7
    
    Continuing from rust-lang#16082
    
    Migrates the following assists:
    
    - `extract_function`
    - `generate_getter_or_setter`
    - `generate_impl`
    - `generate_new`
    - `replace_derive_with_manual_impl`
    
    Would've been the final PR in the structured snippet migration series, but I didn't notice that `generate_trait_from_impl` started to use `{insert,replace}_snippet` when I first started the migration 😅. This appears to be a pretty self-contained change, so I'll leave that for a separate future PR.
    
    This also removes the last usages of `render_snippet`, which was a follow up goal of rust-lang#11638. 🎉
    bors committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    57fda12 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2d09d69 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#16517 - davidbarsky:david/fix-panic-in-genera…

    …tion-function, r=Veykril
    
    internal: fix crash inside `filter_unnecessary_bounds` for a missing generic param
    
    `@Wilfred` reported a crash here shortly after reporting rust-lang/rust-analyzer#16516, which makes us think that the blast radius of ambiguities in Chalk can be larger than expected. This PR tries to be a bit more defensive as a result.
    
    (The 20th frame is the salient frame in the backtrace below.)
    
    <details>
    <summary>Backtrace of the crash</summary>
    
    ```
    request handler panicked: no entry found for key
    backtrace:
       0: stdx::panic_context::PanicContext::init::{{closure}}::{{closure}}::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/panic_context.rs:32:43
       1: stdx::panic_context::with_backtrace::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/panic_context.rs:61:32
       2: std::thread::local::LocalKey<T>::try_with
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/local.rs:270:16
       3: std::thread::local::LocalKey<T>::with
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/local.rs:246:9
       4: stdx::panic_context::with_backtrace
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/panic_context.rs:61:5
       5: stdx::panic_context::PanicContext::init::{{closure}}::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/panic_context.rs:31:21
       6: stdx::panic_context::with_ctx::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/panic_context.rs:53:20
       7: std::thread::local::LocalKey<T>::try_with
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/local.rs:270:16
       8: std::thread::local::LocalKey<T>::with
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/local.rs:246:9
       9: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
      10: std::panicking::rust_panic_with_hook
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
      11: std::panicking::begin_panic_handler::{{closure}}
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
      12: std::sys_common::backtrace::__rust_end_short_backtrace
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
      13: rust_begin_unwind
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
      14: core::panicking::panic_fmt
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
      15: core::panicking::panic_display
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:178:5
      16: core::panicking::panic_str
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:152:5
      17: core::option::expect_failed
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:1985:5
      18: core::option::Option<T>::expect
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:894:21
      19: <std::collections::hash::map::HashMap<K,V,S> as core::ops::index::Index<&Q>>::index
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/collections/hash/map.rs:1341:23
      20: ide_assists::handlers::generate_function::filter_unnecessary_bounds::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:911:71
      21: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:305:13
      22: core::option::Option<T>::map
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:1072:29
      23: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/iter/adapters/map.rs:103:26
      24: ide_assists::handlers::generate_function::Graph::compute_reachable_nodes
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:1158:20
      25: ide_assists::handlers::generate_function::filter_unnecessary_bounds
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:912:21
      26: ide_assists::handlers::generate_function::fn_generic_params
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:640:5
      27: ide_assists::handlers::generate_function::FunctionBuilder::from_call
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:283:13
      28: ide_assists::handlers::generate_function::gen_fn
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:78:28
      29: ide_assists::handlers::generate_function::generate_function
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/handlers/generate_function.rs:55:5
      30: ide_assists::assists::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/lib.rs:99:9
      31: <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::for_each
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/slice/iter/macros.rs:254:21
      32: ide_assists::assists
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide-assists/src/lib.rs:98:5
      33: ide::Analysis::assists_with_fixes::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide/src/lib.rs:667:27
      34: ide::Analysis::with_db::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide/src/lib.rs:764:29
      35: std::panicking::try::do_call
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
      36: std::panicking::try
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
      37: std::panic::catch_unwind
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
      38: salsa::Cancelled::catch
                 at /var/twsvcscm/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rust-analyzer-salsa-0.17.0-pre.5/src/lib.rs:631:15
      39: ide::Analysis::with_db
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide/src/lib.rs:764:9
      40: ide::Analysis::assists_with_fixes
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/ide/src/lib.rs:656:9
      41: rust_analyzer::handlers::request::handle_code_action
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/rust-analyzer/src/handlers/request.rs:1149:19
      42: rust_analyzer::dispatch::RequestDispatcher::on_with_thread_intent::{{closure}}::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/rust-analyzer/src/dispatch.rs:198:54
      43: std::panicking::try::do_call
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
      44: std::panicking::try
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
      45: std::panic::catch_unwind
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
      46: rust_analyzer::dispatch::RequestDispatcher::on_with_thread_intent::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/rust-analyzer/src/dispatch.rs:198:26
      47: rust_analyzer::task_pool::TaskPool<T>::spawn::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/rust-analyzer/src/task_pool.rs:26:33
      48: stdx::thread::pool::Pool::spawn::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/thread/pool.rs:82:13
      49: core::ops::function::FnOnce::call_once{{vtable.shim}}
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
      50: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
      51: stdx::thread::pool::Pool::new::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/thread/pool.rs:61:29
      52: stdx::thread::Builder::spawn::{{closure}}
                 at /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/third-party/rust-analyzer/master/crates/stdx/src/thread.rs:66:13
      53: std::sys_common::backtrace::__rust_begin_short_backtrace
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
      54: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
      55: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
      56: std::panicking::try::do_call
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
      57: std::panicking::try
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
      58: std::panic::catch_unwind
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
      59: std::thread::Builder::spawn_unchecked_::{{closure}}
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
      60: core::ops::function::FnOnce::call_once{{vtable.shim}}
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
      61: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
      62: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
      63: std::sys::unix::thread::Thread::new::thread_start
                 at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
      64: start_thread
      65: clone3
      ```
      </details>
    bors committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    d24bb7e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7669619 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2601d19 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1e4171b View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#16424 - dfireBird:let-stmt-guarded-return-ass…

    …ist, r=Veykril
    
    implement convert to guarded return assist for `let` statement with type that implements `std::ops::Try`
    
    I've tried to implement the assist that rust-lang#16390 talked about
    
    If there are any improvements that I can make in implementation, please suggest them.
    
    ![Peek 2024-02-05 19-01](https://github.com/rust-lang/rust-analyzer/assets/40687700/d6af3222-4f23-4ade-a930-8a78cc75e821)
    bors committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    65a6441 View commit details
    Browse the repository at this point in the history
  21. Auto merge of rust-lang#16518 - tetsuharuohzeki:enable-some-minor-lin…

    …ts, r=Veykril
    
    Enable some minor lints that we should tackles
    
    This enables these lint rules that are commented as we should tackle at some points.
    
    - non_canonical_clone_impl
    - non_canonical_partial_ord_impl
    - self_named_constructors
    bors committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    cdc3e83 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3365e50 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    a3e60e7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    adddd14 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d45cabd View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c6637f3 View commit details
    Browse the repository at this point in the history
  27. Auto merge of rust-lang#16519 - tetsuharuohzeki:more-lint, r=lnicola

    Enable some minor lints that we should tackles (take2)
    
    This enables these lints:
    
    - borrowed_box
    - derived_hash_with_manual_eq
    - forget_non_drop
    - needless_doctest_main
    bors committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    bb0de88 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    8c2f301 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    a9a315f View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    99f5d7c View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    cb95ee3 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    d580b2c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    eba1b13 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    d00f1c1 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    5d1f283 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    b89a403 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    80e6842 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    395708d View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    f4a4b66 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    fb8c0f5 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    ae78dca View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    8071325 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    edda6b8 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    f474bd7 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    81c35d1 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    cee3c22 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    283b140 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    06f3995 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    0a879f7 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    c3699b9 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    bffb888 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    1915d9a View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    a897566 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    88f088c View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    71ea70e View commit details
    Browse the repository at this point in the history
  56. inline_call: remove macro self->this test

    To be added back later once we have a fix.
    
    See rust-lang#16471 and rust-lang/rust-analyzer#16497 (comment).
    evertedsphere committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    18be556 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2024

  1. Deduplicate some code

    Veykril committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    2ebf0c8 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#16521 - tetsuharuohzeki:experiment-enable-str…

    …_to_string, r=lnicola
    
    internal: Enable str_to_string Clippy rule
    
    This fix [the FIXME comment](https://github.com/rust-lang/rust-analyzer/blob/bb0de88f24cc3a8de10837585fbb8172f6859752/Cargo.toml#L183-L184)
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    7e92655 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#16497 - evertedsphere:swann/fix-inline-for-ma…

    …cro-generated-method, r=Veykril
    
    Fix incorrect inlining of functions that come from MBE macros
    
    Partial fix for rust-lang/rust-analyzer#16471.
    
    As a reminder, there are two issues there:
    1. missing whitespace in parameter types (the first test)
    2. the `self` parameter not being replaced by `this` in the function body (the second test)
    
    The first part is fixed in this PR. See [this comment](rust-lang/rust-analyzer#16497 (comment)) for the second.
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    aa97edb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dcdfc35 View commit details
    Browse the repository at this point in the history
  5. Abstract over ItemTreeLoc

    Veykril committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    00303c3 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16525 - Veykril:item-loc, r=Veykril

    Abstract more over ItemTreeLoc-like structs
    
    Allows reducing some code duplication by using functions generic over said structs. The diff isn't negative due to me adding some additional impls for completeness.
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    1ef7a23 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#16524 - evertedsphere:swann/trait-bound-dyn, …

    …r=Veykril
    
    minor: test that flip_trait_bound works with trait objects
    
    Closes rust-lang/rust-analyzer#16522.
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    0878cde View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    74eb3ec View commit details
    Browse the repository at this point in the history
  9. Re-organize hir-def/lib.rs

    Veykril committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    dc69255 View commit details
    Browse the repository at this point in the history
  10. Cleanup visibility.rs

    Veykril committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    36fb140 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#16526 - Veykril:item-loc, r=Veykril

    internal: Cleanup 🧹
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    1c32387 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5136705 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#16527 - Veykril:salsa-no-self-ref, r=Veykril

    internal: Remove SELF_REF hack for self referential SyntaxContexts
    
    This should reduce the amount of SyntaxContexts we allocate
    bors committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    ddf105b View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2024

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