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

Convert rust-analyzer to an in-tree tool #99603

Merged
merged 10,000 commits into from
Jul 25, 2022
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 2, 2022

  1. Auto merge of rust-lang#12679 - a-kenji:fix-typos-hir, r=lnicola

    fix: typos in hir-ty
    bors committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    30680df View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12627 - yue4u:fix/struct-variant-patterns, r=…

    …Veykril
    
    fix: complete enum variants as patterns in pattern path
    
    close rust-lang#12593
    bors committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    d101439 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    afdbd6c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    649e1f5 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#12680 - lowr:fix/12428-regression, r=Veykril

    fix regressions on assignment expressions
    
    This is a follow-up PR on rust-lang#12428. I'm not sure if this is everything I overlooked, so if there are more things that are not right, we may want to revert rust-lang#12428.
    
    This should also fix the increase of the type mismatches and the unknown types in diesel in the [metrics](https://rust-analyzer.github.io/metrics/?start=2022-06-23&end=2022-07-01) introduced by rust-lang#12428.
    
    The regressions are:
    
    - some coercions don't work in the ordinary (i.e. non-destructuring) assignments
    
        In order for coercions on ADT fields instantiations to work, lhs type has to be known before inferring rhs. rust-lang#12428 changed the inference order, making rhs inferred before lhs, breaking the coercion, so I restored the original inference mechanism for the ordinary assignments.
    
        Note that this kind of coercion doesn't happen in destructuring assigments, because when they are desugared, the struct expression is first assigned to a temporary, which is then assigned to the assignee, which is not coercion site anymore.
    
    - type mismatches on individual identifiers are not reported
    bors committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    d1ac462 View commit details
    Browse the repository at this point in the history
  6. fix: Extract Function produces duplicate fn names

    This change fixes issue rust-lang#10037, in more or less the most naive fashion
    possible.
    
    We continue to start with the hardcoded default of "fun_name", and now append a
    counter to the end of it if that name is already in scope.
    
    In the future, we can probably apply more heuristics here to wind up with more
    useful names by default, but for now this resolves the immediate problem.
    DorianListens committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    0039d6f View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12662 - DorianListens:dscheidt/extract-functi…

    …on-duplicate-name, r=DorianListens
    
    fix: Extract Function produces duplicate fn names
    
    This change fixes rust-lang#10037, in more or less the most naive fashion
    possible.
    
    We continue to start with the hardcoded default of "fun_name", and now append a
    counter to the end of it if that name is already in scope.
    
    In the future, we can probably apply more heuristics here to wind up with more
    useful names by default, but for now this resolves the immediate problem.
    bors committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    cc0bb71 View commit details
    Browse the repository at this point in the history
  8. fix: Extract function from trait impl

    This change fixes rust-lang#10036, "Extract to function assist implements nonexistent
    trait methods".
    
    When we detect that the extraction is coming from within a trait impl, and that
    a `self` param will be necessary, we adjust which `SyntaxNode` to `insert_after`,
    and create a new empty `impl` block for the newly extracted function.
    DorianListens committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    e394000 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2022

  1. Bump crossbeam-channel

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    212f84a View commit details
    Browse the repository at this point in the history
  2. Bump anyhow

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    416787d View commit details
    Browse the repository at this point in the history
  3. Bump quote

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    c7c314d View commit details
    Browse the repository at this point in the history
  4. Bump either

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    e6fcb23 View commit details
    Browse the repository at this point in the history
  5. Bump pulldown-cmark-to-cmark

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    2af61bc View commit details
    Browse the repository at this point in the history
  6. Bump smallvec

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    791f2a0 View commit details
    Browse the repository at this point in the history
  7. Bump serde

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    87572be View commit details
    Browse the repository at this point in the history
  8. Bump serde_json

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    b24ece5 View commit details
    Browse the repository at this point in the history
  9. Bump indexmap

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    6669f38 View commit details
    Browse the repository at this point in the history
  10. Bump semver

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    2d3f0b4 View commit details
    Browse the repository at this point in the history
  11. Bump cargo_metadata

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    9e7ca80 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a3011e5 View commit details
    Browse the repository at this point in the history
  13. Bump tracing-subscriber

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    5381811 View commit details
    Browse the repository at this point in the history
  14. Bump object

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    e05e6c6 View commit details
    Browse the repository at this point in the history
  15. Bump chalk

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    78beb4c View commit details
    Browse the repository at this point in the history
  16. Bump the rest of the deps

    lnicola committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    993a19a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    75b2232 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Configuration menu
    Copy the full SHA
    ccf854b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5235732 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12687 - flodiebold:override-docs, r=flodiebold

    Improve documentation for `buildScripts.overrideCommand` / `checkOnSave.overrideCommand`
    bors committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    e1a8c0b View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2022

  1. Configuration menu
    Copy the full SHA
    db49ac8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    383ee6a View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12690 - Veykril:inert-attrs, r=Veykril

    internal: Update inert attribute list
    bors committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    6edf624 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    976d07e View commit details
    Browse the repository at this point in the history
  5. Remove useless bors.toml

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    2926ca0 View commit details
    Browse the repository at this point in the history
  6. Fix project root assert

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    0d9737a View commit details
    Browse the repository at this point in the history
  7. Complete associated type only in trait generic arg

    Fix tidy check does not work for marks in multiline
    xuhongxu96 committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    441e659 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12694 - hi-rustin:rustin-patch-bors, r=jonas-…

    …schievink
    
    Remove useless bors.toml
    
    It seems we do not use bors-ng anymore. So maybe this is useless.
    bors committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    fee5555 View commit details
    Browse the repository at this point in the history
  9. Add str_ref_to_string fix

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    b9ba9fa View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. Configuration menu
    Copy the full SHA
    0f2eba5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad5a851 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12702 - lnicola:vscode-schemes, r=lnicola

    internal: use different schemes for the custom views
    
    Related to rust-lang#12699, but doesn't fix it because we still register the providers multiple times.
    bors committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    00194ad View commit details
    Browse the repository at this point in the history
  4. Handle generic args per arg index

    Add more test cases for generic args
    xuhongxu96 committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    75fb3de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0360ed5 View commit details
    Browse the repository at this point in the history
  6. Use SmallVec to slightly shrink ModPath size

    Jonas Schievink committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    d2fd137 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12704 - jonas-schievink:smol-paths, r=jonas-s…

    …chievink
    
    internal: Use `SmallVec` to slightly shrink `ModPath` size
    
    Saves like a megabyte on r-a itself.
    bors committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    c46570e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3248601 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12695 - xuhongxu96:fix-12140, r=jonas-schievink

    Complete type param/associated type in trait generic arg per arg index
    
    - Fix rust-lang#12140
    - Also fix tidy check does not work for marks in multiline
    bors committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    c296e77 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2022

  1. publish workflow: Fix names for existing crates

    Attempting to publish for example ra_ap_text-edit when ra_ap_text_edit
    has already been published is rejected by crates.io.
    davidlattimore committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    f0af913 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f819e3 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12716 - davidlattimore:fix-publish-crate-name…

    …s, r=lnicola
    
    publish workflow: Fix names for existing crates
    
    Attempting to publish for example ra_ap_text-edit when ra_ap_text_edit
    has already been published is rejected by crates.io.
    bors committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    09abd76 View commit details
    Browse the repository at this point in the history
  4. Update remaining GitHub URLs

    Jonas Schievink committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    6c6ae96 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#12722 - jonas-schievink:update-urls, r=jonas-…

    …schievink
    
    internal: Update remaining GitHub URLs
    
    The old links still work, but it seems less confusing to have them point to the right repo
    bors committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    df4ed94 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12676 - DorianListens:dscheidt/extract-fun-tr…

    …ait-impl, r=jonas-schievink
    
    fix: Extract function from trait impl
    
    This change fixes rust-lang#10036, "Extract to function assist implements nonexistent
    trait methods".
    
    When we detect that the extraction is coming from within a trait impl, and that
    a `self` param will be necessary, we adjust which `SyntaxNode` to `insert_after`,
    and create a new empty `impl` block for the newly extracted function.
    bors committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    7181a39 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12719 - davidlattimore:format-args-no-unsafe,…

    … r=jonas-schievink
    
    Remove unnecessary unsafe from format_args expansion
    bors committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    c419aa9 View commit details
    Browse the repository at this point in the history
  8. fix: Extract Function misses locals used in closures

    This change fixes rust-lang#12705.
    
    In `FunctionBody::analyze`, we need to search any `ClosureExpr`s we encounter
    for any `NameRef`s, to ensure they aren't missed.
    DorianListens committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    603b6fc View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12706 - DorianListens:dscheidt/closure-args, …

    …r=DorianListens
    
    fix: Extract Function misses locals used in closures
    
    This change fixes rust-lang#12705.
    
    In `FunctionBody::analyze`, we need to search any `ClosureExpr`s we encounter
    for any `NameRef`s, to ensure they aren't missed.
    bors committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    2836dd1 View commit details
    Browse the repository at this point in the history
  10. fix: Improve suggested names for extracted variables

    When extracting a field expression, if RA was unable to resolve the type of the
    field, we would previously fall back to using "var_name" as the variable name.
    
    Now, when the `Expr` being extracted matches a `FieldExpr`, we can use the
    `NameRef`'s ident token as a fallback option.
    
    fixes rust-lang#10035
    DorianListens committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    21062f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2022

  1. Fix test

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    638abba View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12727 - DorianListens:dscheidt/extract-var-fi…

    …eld-name, r=jonas-schievink
    
    fix: Improve suggested names for extracted variables
    
    When extracting a field expression, if RA was unable to resolve the type of the
    field, we would previously fall back to using "var_name" as the variable name.
    
    Now, when the `Expr` being extracted matches a `FieldExpr`, we can use the
    `NameRef`'s ident token as a fallback option.
    
    fixes rust-lang#10035
    bors committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    666343b View commit details
    Browse the repository at this point in the history
  3. Bump vscode-languageclient

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    03a62c1 View commit details
    Browse the repository at this point in the history
  4. Bump d3 and d3-graphviz

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    b43708c View commit details
    Browse the repository at this point in the history
  5. Bump esbuild

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    1b138b1 View commit details
    Browse the repository at this point in the history
  6. Bump eslint

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    7b1b711 View commit details
    Browse the repository at this point in the history
  7. Bump vsce

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    0e38961 View commit details
    Browse the repository at this point in the history
  8. Bump @typescript-eslint

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    d03ed83 View commit details
    Browse the repository at this point in the history
  9. Bump prettier

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    8e889ac View commit details
    Browse the repository at this point in the history
  10. Bump typescript and tslib

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    2c9e395 View commit details
    Browse the repository at this point in the history
  11. Bump @types/node to 16

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    358d6c6 View commit details
    Browse the repository at this point in the history
  12. Bump @vscode/test-electron

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    a059e79 View commit details
    Browse the repository at this point in the history
  13. Bump transitive npm deps

    lnicola committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    cb38145 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#12732 - lnicola:bump-npm, r=lnicola

    Bump npm deps
    bors committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    5342f47 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

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

Commits on Jul 11, 2022

  1. Configuration menu
    Copy the full SHA
    eaebead View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e55716 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    195ceea View commit details
    Browse the repository at this point in the history
  4. Fix rustcSource -> rustc_source

    This only fixes the comments in the internal source,
         which is not mandatory at all
    TonalidadeHidrica committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    f0649f2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dfcbed0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e3bde57 View commit details
    Browse the repository at this point in the history
  7. Fix typos

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    d9ab7f2 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12744 - hi-rustin:rustin-patch-typos, r=lnicola

    Fix typos
    
    Signed-off-by: hi-rustin <[email protected]>
    bors committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    f7bb932 View commit details
    Browse the repository at this point in the history
  9. Implement ignore and index metavar expression

    Jonas Schievink committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    df66eb7 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12745 - jonas-schievink:metavar-exprs, r=jona…

    …s-schievink
    
    feat: Implement `ignore`  and `index` metavar expression
    
    Part of rust-lang/rust-analyzer#11952
    
    Fixes rust-lang/rust-analyzer#12675
    bors committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    caf23f2 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. Update 1.63 proc macro ABI to match rustc

    Jonas Schievink committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    ebfbb31 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12747 - jonas-schievink:proc-macro-abi-1.63, …

    …r=jonas-schievink
    
    fix: Update 1.63 proc macro ABI to match rustc
    
    This updates us to the ABI used by rustc 1.63.0-beta.5, which will likely be the ABI of the next stable Rust release. It should also work on nightly (for now, but future changes won't be supported until the rustc version is bumped).
    
    cc rust-lang/rust-analyzer#12600
    bors committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    4cbf23c View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Auto merge of rust-lang#12742 - TonalidadeHidrica:fix-obsolete-config…

    …-keys, r=Veykril
    
    Fix obsolete config keys
    
    The config keys were drastically reorganized by rust-lang#12010, but the docs don't reflect the updates, causing inconsistency and confusion.  I checked for such obsolete configuration keys and updated to the new one.  For reproducibility, I attach a small shell script that I used to examine the old keys.  Now the script only detects `cargoExtraArgs` and `overrideCargo`, which originates from other type definition in the code but not from the configuration.
    
    <details><summary>script</summary>
    
    ```bash
    echo "allowMergingIntoGlobImports
    exprFillDefault
    importEnforceGranularity
    importGranularity
    importMergeBehavior
    importMergeBehaviour
    importGroup
    importPrefix
    warmup
    loadOutDirsFromCheck
    runBuildScripts
    runBuildScriptsCommand
    useRustcWrapperForBuildScripts
    enableExperimental
    procAttrMacros
    breakPoints
    exitPoints
    yieldPoints
    linksInHover
    linksInHover
    gotoTypeDef
    chainingHints
    closureReturnTypeHints
    hideNamedConstructorHints
    parameterHints
    reborrowHints
    typeHints
    lruCapacity
    cargoExtraArgs
    overrideCargo
    rustcSource
    enableRangeFormatting
    assist\.allowMergingIntoGlobImports
    assist\.exprFillDefault
    assist\.importEnforceGranularity
    assist\.importGranularity
    assist\.importMergeBehavior
    assist\.importMergeBehaviour
    assist\.importGroup
    assist\.importPrefix
    primeCaches\.enable
    cache\.warmup
    cargo\.loadOutDirsFromCheck
    cargo\.runBuildScripts
    cargo\.runBuildScriptsCommand
    cargo\.useRustcWrapperForBuildScripts
    completion\.snippets
    diagnostics\.enableExperimental
    experimental\.procAttrMacros
    highlighting\.strings
    highlightRelated\.breakPoints
    highlightRelated\.exitPoints
    highlightRelated\.yieldPoints
    highlightRelated\.references
    hover\.documentation
    hover\.linksInHover
    hoverActions\.linksInHover
    hoverActions\.debug
    hoverActions\.enable
    hoverActions\.gotoTypeDef
    hoverActions\.implementations
    hoverActions\.references
    hoverActions\.run
    inlayHints\.chainingHints
    inlayHints\.closureReturnTypeHints
    inlayHints\.hideNamedConstructorHints
    inlayHints\.parameterHints
    inlayHints\.reborrowHints
    inlayHints\.typeHints
    lruCapacity
    runnables\.cargoExtraArgs
    runnables\.overrideCargo
    rustcSource
    rustfmt\.enableRangeFormatting
    allFeatures
    addCallArgumentSnippets
    addCallParenthesis
    callInfo\.full
    cargo\.allFeatures
    checkOnSave\.allFeatures
    completion\.addCallArgumentSnippets
    completion\.addCallParenthesis" | while read -r pattern
    do
      rg '\b'$pattern'\b([^.]|$)' . -g "!crates/rust-analyzer/src/config/patch_old_style.rs" -g "!editors/code/src/config.ts" -g "!a.sh" --no-heading --color=always --line-number
    done
    
    exit
    
    excluded
    # debug
    # enable
    # run
    # implementations
    # references
    # documentation
    # references
    # snippets
    # strings
    # full
    ```
    
    </details>
    bors committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    84a6bc9 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12696 - hi-rustin:rustin-patch-fix, r=Veykril

    Add str_ref_to_string fix
    
    close rust-lang/rust-analyzer#11383
    When type mismatch is `&str` -> `String` try to fix it.
    bors committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    fc47ce5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    def89af View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12754 - Veykril:vscode-status, r=Veykril

    fix: Fix VSCode status bar tooltip not showing the error messages
    bors committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    90b5097 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ec51dcb View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12755 - Veykril:server-version, r=lnicola

    fix: Set server binary version when distributing
    bors committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    794ecd5 View commit details
    Browse the repository at this point in the history
  7. add tests

    soruh committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    a5ad4de View commit details
    Browse the repository at this point in the history
  8. fix: Support generics in extract_function assist

    This change attempts to resolve issue rust-lang#7636: Extract into Function does not
    create a generic function with constraints when extracting generic code.
    
    In `FunctionBody::analyze_container`, we now traverse the `ancestors` in search
    of `AnyHasGenericParams`, and attach any `GenericParamList`s and `WhereClause`s
    we find to the `ContainerInfo`.
    
    Later, in `format_function`, we collect all the `GenericParam`s and
    `WherePred`s from the container, and filter them to keep only types matching
    `TypeParam`s used within the newly extracted function body or param list. We
    can then include the new `GenericParamList` and `WhereClause` in the new
    function definition.
    
    This change only impacts `TypeParam`s. `LifetimeParam`s and `ConstParam`s are
    out of scope for this change.
    DorianListens committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    075ab03 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    796641b View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

  1. Configuration menu
    Copy the full SHA
    4cbde4e View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12735 - feniljain:fix-completions, r=feniljain

    fix(completion): `super::` completion at crate root and module depth aware
    
    - should close rust-lang#12439
    - Suggest super according to the depth in tree
    bors committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    5af3ef5 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12691 - Veykril:proc-macro-diag, r=Veykril

    fix: Fix unresolved proc macro diagnostics pointing to macro expansions
    
    Fixes rust-lang/rust-analyzer#12657
    bors committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    fbba1d7 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12556 - DorianListens:dscheidt/generic-extrac…

    …t, r=Veykril
    
    fix: Support generics in extract_function assist
    
    This change attempts to resolve issue rust-lang#7636: Extract into Function does not
    create a generic function with constraints when extracting generic code.
    
    In `FunctionBody::analyze_container`, we now traverse the `ancestors` in search
    of `AnyHasGenericParams`, and attach any `GenericParamList`s and `WhereClause`s
    we find to the `ContainerInfo`.
    
    Later, in `format_function`, we collect all the `GenericParam`s and
    `WherePred`s from the container, and filter them to keep only types matching
    `TypeParam`s used within the newly extracted function body or param list. We
    can then include the new `GenericParamList` and `WhereClause` in the new
    function definition.
    
    This change only impacts `TypeParam`s. `LifetimeParam`s and `ConstParam`s are
    out of scope for this change.
    
    I've never contributed to this project before, but I did try to follow the style guide. I believe that this change represents an improvement over the status quo, but I think it's also fair to argue that it doesn't fully "fix" the linked issue. I'm totally open to merging this as is, or going further to try to make a more complete solution. Also: if there are other unit or integration tests I should add, please let me know where to look!
    bors committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    073b325 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6b823b0 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12765 - Veykril:import-insert-fix, r=Veykril

    fix: Fix imports being inserted before doc comments in inline modules
    
    Fixes rust-lang/rust-analyzer#12758
    bors committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    029184d View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2022

  1. Configuration menu
    Copy the full SHA
    7ff6c36 View commit details
    Browse the repository at this point in the history
  2. Remove deprecate action

    https://old.reddit.com/r/rust/comments/vyx4oj/actionsrs_organization_became_unmaintained/
    
    Looking at this holistically, I don't fully understand *why* we need an
    action here? Seems like we can just use rustup? nowadays github runners
    come with rustup pre-installed.
    matklad committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    f4fe2ea View commit details
    Browse the repository at this point in the history
  3. Update .github/workflows/release.yaml

    Co-authored-by: Laurențiu Nicola <[email protected]>
    matklad and lnicola committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    248fa55 View commit details
    Browse the repository at this point in the history
  4. Remove deprecate action

    https://old.reddit.com/r/rust/comments/vyx4oj/actionsrs_organization_became_unmaintained/
    
    Looking at this holistically, I don't fully understand *why* we need an
    action here? Seems like we can just use rustup? nowadays github runners
    come with rustup pre-installed.
    matklad committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    b49f2a2 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2022

  1. Auto merge of rust-lang#12764 - matklad:rustupaction, r=lnicola

    Remove deprecate action
    
    https://old.reddit.com/r/rust/comments/vyx4oj/actionsrs_organization_became_unmaintained/
    
    Looking at this holistically, I don't fully understand *why* we need an
    action here? Seems like we can just use rustup? nowadays github runners
    come with rustup pre-installed.
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    4ad9185 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25090f0 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12766 - Veykril:completion-vis, r=Veykril

    fix: Don't show qualified path completions for private items
    
    Fixes rust-lang/rust-analyzer#12703
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    2e9d5b5 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12772 - Veykril:nameres, r=Veykril

    internal: Remove allocation in DefCollector::reseed_with_unresolved_attribute
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    d3796ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b96f8f1 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12773 - Veykril:self-compl, r=Veykril

    fix: Improve self param completion applicability
    
    Fixes rust-lang/rust-analyzer#9522
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    96481b7 View commit details
    Browse the repository at this point in the history
  7. try fixing spurious CI failures on windows

    It seems like it may be related to self-update? Anyways, I think we
    should be disabling self-update on CI
    matklad committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    c205c62 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12776 - matklad:nosu, r=matklad

    try fixing spurious CI failures on windows
    
    It seems like it may be related to self-update? Anyways, I think we
    should be disabling self-update on CI
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    f2c2c36 View commit details
    Browse the repository at this point in the history
  9. Improve syntax fixup a bit, handle incomplete if

    - allow appending tokens after a token, not just a node
    - allow inserting delimiters (and remove them again)
    - fix up `if {}` and `if` without anything following
    flodiebold committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    0a4065d View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12775 - flodiebold:syntax-fixup-if, r=flodiebold

    fix: Improve syntax fixup a bit, handle incomplete `if`
    
    - allow appending tokens after a token, not just a node
    - allow inserting delimiters (and remove them again)
    - fix up `if {}` and `if` without anything following
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    3d7da51 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#12712 - harpsword:fix-rename-crate-root, r=Ve…

    …ykril
    
    fix: ignore renames for crate root
    
    close rust-lang#12684 . I just ignore renames for crate root in `rename_mod` func.
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    ac526e0 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#12539 - soruh:instanciate_empty_structs, r=Ve…

    …ykril
    
    Automatically instaciate trivially instaciable structs in "Generate new" and "Fill struct fields"
    
    As proposed in rust-lang#12535 this PR changes the "Generate new" and "Fill struct fields" assist/diagnostic to instanciate structs with no fields and enums with a single empty variant.
    
    For example:
    ```rust
    pub enum Bar {
        Bar {},
    }
    struct Foo<T> {
        a: usize,
        bar: Bar,
        _phantom: std::marker::PhantomData<T>,
    }
    impl<T> Foo<T> {
        /* generate new */
    
        fn random() -> Self {
            Self { /* Fill struct fields */ }
        }
    }
    ```
    
    was previously:
    ```rust
    impl<T> Foo<T> {
        fn new(a: usize, bar: Bar, _phantom: std::marker::PhantomData<T>) -> Self {
            Self { a, bar, _phantom }
        }
    
        fn random() -> Self {
            Self {
                a: todo!(),
                bar: todo!(),
                _phantom: todo!(),
            }
        }
    }
    ```
    
    and is now:
    ```rust
    impl<T> Foo<T> {
      fn new(a: usize) -> Self {
          Self {
              a,
              bar: Bar::Bar {},
              _phantom: std::marker::PhantomData
          }
      }
    
      fn random() -> Self {
          Self {
              a: todo!(),
              bar: Bar::Bar {},
              _phantom: std::marker::PhantomData,
          }
      }
    }
    ```
    
    I'd be happy about any suggestions.
    
    ## TODO
       - [x]  deduplicate `use_trivial_constructor` (unclear how to do as it's used in two separate crates)
       - [x]  write tests
    
    Closes rust-lang#12535
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    01d2517 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#12689 - Veykril:macro-rec, r=Veykril

    internal: Record all macro definitions in ItemScope
    
    Fixes rust-lang/rust-analyzer#12100
    
    Doesn't resolve the shadowing issues though, fixing those is gonna be really tricky I believe unless we can come up with a nice scheme to "order" item tree items (using syntax ranges and file ids would be a pain and also a bad idea since that'll require us to potentially reparse files in collection).
    bors committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    766c5f0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b9b42e8 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2022

  1. feat: support negative const generic parameters

    * feat: support `bool` & `char` const generics
    Logarithmus committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    a96f0aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0fd58b View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12781 - iDawer:hir_display.stack_overflow, r=…

    …lnicola
    
    fix: Stack overflows and wrong type inference of associated type shorthands
    
    This fixes `generic_predicates_for_param_query` comparing local IDs that belong to different definitions.
    
    As the query is used in multiple places this fix affects various r-a features when an associated type shorthand and `impl Trait` involved. Notably inference, goto, completion, hover.
    
    Fixes rust-lang#12484
    bors committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    667fd25 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    15f7300 View commit details
    Browse the repository at this point in the history
  5. fix: address suggestions

    Logarithmus committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    83177a7 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12778 - Logarithmus:feature/fix-negative-cons…

    …t-generics, r=flodiebold
    
    Support negative, `char` & `bool` const generics
    
    Before:
    ![Before](https://user-images.githubusercontent.com/29541480/179379832-0c3b2a74-fef6-427e-b89f-7e31d9c37b3d.png)
    
    After:
    ![After](https://user-images.githubusercontent.com/29541480/179379863-b62475dd-e7bf-41f2-b437-08dfe55951af.png)
    
    I tried to implement stuff like `Const<{NUM1 + 3 + NUM2}>` by using already existing constant evaluation mechanism for ordinary constants, but turned out to be harder than I thought, maybe because I've never ever tinkered with compilers before
    bors committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    db6a85d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d9336a4 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12785 - Logarithmus:feature/fix-negative-cons…

    …t-generics, r=Veykril
    
    fix: un-inline `ConstScalarOrPath::from_expr_opt`
    
    Sorry, but I missed these from rust-lang#12778 `@flodiebold`
    bors committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    897a7ec View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ea19e70 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Configuration menu
    Copy the full SHA
    b5aa3b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e379ce View commit details
    Browse the repository at this point in the history
  3. Support the 1.64 nightly proc macro ABI

    Jonas Schievink committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    6cb0746 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12795 - jonas-schievink:proc-macro-abi-1.64, …

    …r=jonas-schievink
    
    feat: Support the 1.64 nightly proc macro ABI
    
    Should resolve rust-lang/rust-analyzer#12600
    
    Not sure why I thought the Rust version was the same as on beta, that's never the case (but future nightly changes can break the ABI again).
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    ee2d5fe View commit details
    Browse the repository at this point in the history
  5. chore: change str_ref_to_string to str_ref_to_owned

    ToString is implemented by many different types than &str, and
    represents a serialization into string data. The fact that said data is
    returned as owned, is an implementation detail.
    
    If merely copying borrowed string data to owned string data is all that
    is desired, ToOwned is a much better choice, because if the user later
    refactors the code such that the input is no longer an `&str`, then they
    will get a compiler error instead of a mysterious change-in-behavior.
    mmirate committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    be30c4d View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12788 - hasali19:extract-var-mut, r=jonas-sch…

    …ievink
    
    Fix extract variable assist for subexpression in mutable borrow
    
    This checks if the expression is in a mutable borrow and if so makes the extracted variable `mut`.
    
    Closes rust-lang#12786
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    e2eaa99 View commit details
    Browse the repository at this point in the history
  7. Remove outdated proc macro ABIs

    Jonas Schievink committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    5ad981b View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12798 - jonas-schievink:trim-proc-macro-abis,…

    … r=jonas-schievink
    
    internal: Remove outdated proc macro ABIs
    
    Drops support for 1.48 to 1.57. We still support 1.58+, which is 4 versions out of date, so that should be plenty.
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    e01de19 View commit details
    Browse the repository at this point in the history
  9. Find original as node before compute ref match

    Signed-off-by: hi-rustin <[email protected]>
    Rustin170506 committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    15016bc View commit details
    Browse the repository at this point in the history
  10. Remove macro ABI version from doc comment

    It's hard to remember to keep this in sync, but since the file path already contains the version, this comment is pretty unnecessary.
    Jonas Schievink authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    188c0e4 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#12802 - rust-lang:jonas-schievink-patch-1, r=…

    …jonas-schievink
    
    minor: Remove macro ABI version from doc comment
    
    It's hard to remember to keep this in sync, but since the file path already contains the version, this comment is pretty unnecessary.
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    ea41617 View commit details
    Browse the repository at this point in the history
  12. Improve file watcher config

    Jonas Schievink committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    ec1142c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    38c11be View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#12549 - bitgaoshu:goto_where_trait_m_impl, r=…

    …Veykril
    
    feat: Go to implementation of trait methods
    
    try goto where the trait method implies,  rust-lang#4558
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    22e53f1 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#12804 - jonas-schievink:config-watcher, r=Vey…

    …kril
    
    fix: make file watcher config a drop-down (and clarify the options)
    
    Fixes rust-lang/rust-analyzer#12794
    
    Also renames "notify" to "server", since that's clearer ("notify" is still accepted for compatibility).
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    fac6a64 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#11819 - rust-lang:dependabot/npm_and_yarn/edi…

    …tors/code/minimist-1.2.6, r=Veykril
    
    Bump minimist from 1.2.5 to 1.2.6 in /editors/code
    
    Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a href="https://github.com/substack/minimist/commit/7efb22a518b53b06f5b02a1038a88bd6290c2846"><code>7efb22a</code></a> 1.2.6</li>
    <li><a href="https://github.com/substack/minimist/commit/ef88b9325f77b5ee643ccfc97e2ebda577e4c4e2"><code>ef88b93</code></a> security notice for additional prototype pollution issue</li>
    <li><a href="https://github.com/substack/minimist/commit/c2b981977fa834b223b408cfb860f933c9811e4d"><code>c2b9819</code></a> isConstructorOrProto adapted from PR</li>
    <li><a href="https://github.com/substack/minimist/commit/bc8ecee43875261f4f17eb20b1243d3ed15e70eb"><code>bc8ecee</code></a> test from prototype pollution PR</li>
    <li>See full diff in <a href="https://github.com/substack/minimist/compare/1.2.5...1.2.6">compare view</a></li>
    </ul>
    </details>
    <br />
    
    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=minimist&package-manager=npm_and_yarn&previous-version=1.2.5&new-version=1.2.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - ``@dependabot` rebase` will rebase this PR
    - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
    - ``@dependabot` merge` will merge this PR after your CI passes on it
    - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
    - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
    - ``@dependabot` reopen` will reopen this PR if it is closed
    - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    - ``@dependabot` use these labels` will set the current labels as the default for future PRs for this repo and language
    - ``@dependabot` use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
    - ``@dependabot` use these assignees` will set the current assignees as the default for future PRs for this repo and language
    - ``@dependabot` use this milestone` will set the current milestone as the default for future PRs for this repo and language
    
    You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/rust-analyzer/rust-analyzer/network/alerts).
    
    </details>
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    530eb27 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d17a5ef View commit details
    Browse the repository at this point in the history
  18. Auto merge of rust-lang#12807 - Veykril:completion-item-details, r=Ve…

    …ykril
    
    Add simple support for completion item details
    
    Supercedes rust-lang/rust-analyzer#9891
    
    This doesn't yet really implement anything new, it just adds the scaffolding for the protocol conversion
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    dc05192 View commit details
    Browse the repository at this point in the history
  19. fix: Prevent panic in Remove Unused Parameter assist

    Instead of calling `builder.delete` for every text range we find with
    `process_usage`, we now ensure that the ranges do not overlap before removing
    them. If a range is fully contained by a prior one, it is dropped.
    
    fixes rust-lang#12784
    DorianListens committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    ffb6b23 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#12796 - mmirate:patch-1, r=Veykril

    chore: change str_ref_to_string to str_ref_to_owned
    
    `ToString` is implemented by many different types than `&str`, and represents a serialization into string data. The fact that said data is returned as owned, is an implementation detail resulting from the lack of a parameter for a pre-allocated buffer.
    
    If merely copying borrowed string data to owned string data is all that is desired, `ToOwned` is a much better choice, because if the user later refactors the code such that the input is no longer an `&str`, then they will get a compiler error instead of a mysterious runtime-behavioral change.
    bors committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    567a5e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    27b65ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3203cb1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3cb78ff View commit details
    Browse the repository at this point in the history
  4. Added case for const

    TopGunSnake committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    09da74a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    474f5ea View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12809 - lnicola:empty-diagnostics, r=lnicola

    fix: Work around Code bug with empty diagnostics
    
    Closes rust-lang#11404
    bors committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    88515b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1b41647 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    307be7c View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12817 - fasterthanlime:expect-test-1-4-0, r=l…

    …nicola
    
    Upgrade to [email protected], add CARGO_WORKSPACE_DIR env var
    
    This should make ra's test suite runnable from within `rust-analyzer/rust`.
    
    `@cuviper` ran into that when trying to run RA tests from rust CI: rust-lang#99444 (comment)
    bors committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    7d20ff3 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12789 - DorianListens:dscheidt/unused-param-o…

    …verlapping, r=DorianListens
    
    fix: Prevent panic in Remove Unused Parameter assist
    
    Instead of calling `builder.delete` for every text range we find with
    `process_usage`, we now ensure that the ranges do not overlap before removing
    them. If a range is fully contained by a prior one, it is dropped.
    
    fixes rust-lang#12784
    bors committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    30c4db1 View commit details
    Browse the repository at this point in the history
  11. Inverted the match logic to skip comments, attribute macros, and whit…

    …espace before the appropriate keywords.
    TopGunSnake committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    6df414f View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. Auto merge of rust-lang#12800 - hi-rustin:rustin-patch-issue-12717, r…

    …=hi-rustin
    
    Find original as node before compute ref match
    
    part of rust-lang/rust-analyzer#12717
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    0e71356 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c32fcf View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12821 - SpecialMike:fix-partial-eq-default, r…

    …=Veykril
    
    fix: Correctly generate default `PartialEq::ne`
    
    Fixes rust-lang#12779
    
    For the `Generate default members` assist on the `PartialEq` trait, the assist will now give the default implementation instead of generating a function.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    c001b9c View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12811 - TopGunSnake:12790, r=Veykril

    fix: Insert `pub(crate)` after doc comments and attribute macros
    
    Fixes rust-lang#12790
    
    Original behavior was to insert `pub(crate)` at the `first_child_or_token`, which for an item with a comment or attribute macro, would put the visibility marker before the comment or macro, instead of after.
    
    This merge request alters the call to find the node with appropriate `SyntaxKind` in the `children_or_tokens`. It also adds a test case to the module to verify the behavior. Test case verifies function, module, records, enum, impl, trait, and type cases.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    8454413 View commit details
    Browse the repository at this point in the history
  5. Add comments

    lowr committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    cfc52ad View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12646 - lowr:fix/11897, r=lowr

    fix: escape receiver texts in completion
    
    This PR fixes rust-lang#11897 by escaping '\\' and '$' in the text of the receiver position expression. See [here](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) for the specification of the snippet syntax (especially [this section](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#grammar) discusses escaping).
    
    Although not all occurrences of '\\' and '$' have to be replaced, I chose to replace all as that's simpler and easier to understand. There *are* more clever ways to implement it, but I thought they were premature optimization for the time being (maybe I should put FIXME notes?).
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    f3e9b38 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bb4bfae View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12825 - Veykril:trait-assoc-search, r=Veykril

    fix: Fix search for associated trait items being inconsistent
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    0ded8e7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    23d25a3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    816f7fe View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8318035 View commit details
    Browse the repository at this point in the history
  12. Run cargo fmt

    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    7e285e1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e507807 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#12826 - fasterthanlime:in-tree-warnings, r=Ve…

    …ykril
    
    Enable (and fix) extra lint groups required for in-tree build
    
    This enables 3 lint groups that are required to build rust-analyzer as an "in-tree" (git subtree) tool in `rust-lang/rust`, and fixes all relevant diagnostics.
    
    This change is tracked in:
    
      * rust-lang/rust-analyzer#12818
    
    Maintainer impact: more warnings, should be easy enough to fix them (it's mostly looking out for "rust-2015-isms", the lint group is poorly named). If you forget some, they'll show up during a `ra=>rust` sync.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    28bab68 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ade31ad View commit details
    Browse the repository at this point in the history
  16. Allow merge commits when 'in-rust-tree' feature is enabled

    This adds an `in-rust-tree` feature that will be enabled when
    rust-analyzer is built from `rust-lang/rust`. Due to the way
    "git subtree" works, that test _will_ find merge commits and
    fail, so we simply skip it.
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    c520408 View commit details
    Browse the repository at this point in the history
  17. Auto merge of rust-lang#12828 - fasterthanlime:proc-macro-srv-naming,…

    … r=Veykril
    
    Rename proc macro server from 'Rustc' to 'RustAnalyzer'
    
    Related to:
    
      * rust-lang/rust-analyzer#12818
    
    This is mostly a courtesy PR for the sake of rustc maintainers. When they looked at `proc-macro-srv`, they noticed the server was named `Rustc` — probably because of historical copy-paste. Only rustc's proc macro server should be named `Rustc`, ra's can be named `RustAnalyzer`.
    
    Maintainer impact: There's no semantic changes in this PR, only naming. One test snapshot was updated since "proc macro server types" were used to test traits somewhere else and I renamed those too, why not.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    100ea1d View commit details
    Browse the repository at this point in the history
  18. Remove check_merge_commits test altogether

    Rationale: Merge commits will probably end up in
    `rust-lang/rust-analyzer` when doing "rust=>ra" syncs anyway.
    
    It could be changed to only check for merge commits in non-sync PRs,
    but it's "probably not worth the hassle"
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    d5b1ae6 View commit details
    Browse the repository at this point in the history
  19. Remove in-rust-tree feature

    Since it's unused for now -it'll be re-introduced along with the
    upcoming `proc-macro-srv/sysroot` feature.
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    244f29b View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#12829 - fasterthanlime:in-rust-tree-feature, …

    …r=Veykril
    
    Remove `check_merge_commits` test
    
    Due to the way "git subtree" works, the `check_merge_commits` test _will_ find merge commits and fail, so we simply skip it.
    
    This changed is tracked in:
    
      * rust-lang/rust-analyzer#12818
    
    Maintainer impact: none
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    bd4439f View commit details
    Browse the repository at this point in the history
  21. Build proc-macro-test-impl out-of-tree

    Building it in-place fails in rust CI because the source directory
    is read-only. This changes `proc-macro-test`'s build script to first
    copy `imp` under `OUT_DIR` (which is read-write).
    
    It also prints stdout/stderr for the nested cargo invocation, should
    it fail. (I've seen failures in rust CI that I couldn't explain, and
    when they take 25 minutes to reproduce, you want to have that info)
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    a88e088 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4375cf3 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    898898d View commit details
    Browse the repository at this point in the history
  24. Add proc-macro-srv integration test that clones literals

    This exercises some of the upcoming proc_macro bridge changes. It
    should also pass for all supported ABIs, with the older-style bridge.
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    f504294 View commit details
    Browse the repository at this point in the history
  25. Update crates/proc-macro-test/build.rs

    Co-authored-by: Laurențiu Nicola <[email protected]>
    fasterthanlime and lnicola authored Jul 20, 2022
    Configuration menu
    Copy the full SHA
    9a8efe2 View commit details
    Browse the repository at this point in the history
  26. Update crates/proc-macro-test/build.rs

    Co-authored-by: Laurențiu Nicola <[email protected]>
    fasterthanlime and lnicola authored Jul 20, 2022
    Configuration menu
    Copy the full SHA
    844aa8b View commit details
    Browse the repository at this point in the history
  27. Auto merge of rust-lang#12831 - fasterthanlime:proc-macro-test-in-tmp…

    …-dir, r=fasterthanlime
    
    Build proc-macro-test-impl out-of-tree
    
    Building it in-place fails in rust CI because the source directory is read-only. This changes `proc-macro-test`'s build script to first
    copy `imp` under `OUT_DIR` (which is read-write).
    
    It also prints stdout/stderr for the nested cargo invocation, should it fail. (I've seen failures in rust CI that I couldn't explain, and
    when they take 25 minutes to reproduce, you want to have that info)
    
    This change is tracked in:
    
      * rust-lang/rust-analyzer#12818
    
    Maintainer impact: none.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    7dc36ee View commit details
    Browse the repository at this point in the history
  28. Auto merge of rust-lang#12833 - fasterthanlime:literal-tests, r=Veykril

    Add proc-macro-srv integration test that clones literals
    
    This exercises some of the upcoming proc_macro bridge changes. It should also pass for all supported ABIs, with the older-style bridge.
    
    This changed is tracked in:
    
      * rust-lang/rust-analyzer#12818
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    cd2c240 View commit details
    Browse the repository at this point in the history
  29. Add PROC_MACRO_TEST_TOOLCHAIN environment variable

    This allows overriding the toolchain used to run `proc-macro-srv` tests.
    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    dcd52ec View commit details
    Browse the repository at this point in the history
  30. Auto merge of rust-lang#12834 - fasterthanlime:proc-macro-test-toolch…

    …ain, r=Veykril
    
    Add PROC_MACRO_TEST_TOOLCHAIN environment variable
    
    This allows overriding the toolchain used to run `proc-macro-srv` tests.
    
    ---
    
    Sample usage.
    
    Testing the current ABI (variable unset/empty):
    
    ```shell
    amos@tails ~/bearcove/rust-analyzer/crates/proc-macro-srv proc-macro-test-toolchain*
    ❯ PROC_MACRO_TEST_TOOLCHAIN="" cargo test --quiet
    
    running 16 tests
    ................
    test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
    ```
    
    Testing an older ABI:
    
    ```shell
    amos@tails ~/bearcove/rust-analyzer/crates/proc-macro-srv proc-macro-test-toolchain*
    ❯ PROC_MACRO_TEST_TOOLCHAIN="1.58" cargo test --quiet
    
    running 16 tests
    ................
    test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
    ```
    
    Testing current nightly ABI:
    
    ```shell
    ❯ rustc +nightly --version
    rustc 1.64.0-nightly (f858854 2022-07-18)
    
    ❯ PROC_MACRO_TEST_TOOLCHAIN="nightly" cargo test --quiet
    
    running 16 tests
    ................
    test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
    ```
    
    Testing future ABI (`rust-lang/rust` master):
    
    ```shell
    amos@tails ~/bearcove/rust-analyzer/crates/proc-macro-srv proc-macro-test-toolchain
    ❯ PROC_MACRO_TEST_TOOLCHAIN="stage1" cargo test --quiet
    
    running 16 tests
    ..........thread '<unnamed>' panicked at 'range end index 216221164920373249 out of range for slice of length 18', library/core/src/slice/index.rs:73:5
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    ....F.
    failures:
    
    ---- tests::test_fn_like_macro2 stdout ----
    thread 'tests::test_fn_like_macro2' panicked at 'called `Result::unwrap()` on an `Err` value: "range end index 216221164920373249 out of range for slice of length 18"', crates/proc-macro-srv/src/tests/utils.rs:38:83
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    
    failures:
        tests::test_fn_like_macro2
    
    test result: FAILED. 15 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
    
    error: test failed, to rerun pass '--lib
    ```
    
    ---
    
    Tagging `@jonas-schievink:` this might be helpful when updating versioned ABIs later on.
    bors committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    fa883cb View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    315b0a7 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    e009cdc View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    00bc060 View commit details
    Browse the repository at this point in the history
  34. stub missing APIs

    fasterthanlime committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    191db9f View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    d25b610 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    480f555 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

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

    Veykril committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    7bd2e30 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12827 - Veykril:be-lazy, r=Veykril

    internal: Construct fewer `AstIdMap`s in lowering
    bors committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    2f6c390 View commit details
    Browse the repository at this point in the history
  4. Simplify

    Veykril committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    10c7ee7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1aadd9d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5f9a582 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cfad882 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12841 - Veykril:query-fix, r=Veykril

    fix: Fix `trait_impls_in_deps_query` being called directly instead of as a query
    
    Fixes the inlay hint performance regression introdcuced by rust-lang/rust-analyzer#12549
    bors committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    84a6fac View commit details
    Browse the repository at this point in the history
  9. Assert that sysroot ABI version matches exactly

    Otherwise, fall back to the multi ABI scheme, except in testing, where
    it becomes a hard error.
    
    This should make it possible to use a rustup-provided rust-analyzer with
    proc macro dylibs compiled by older rustcs, and it'll also catch changes
    to the format of `rustc --version` or the `.rustc` section that would
    make them impossible to compare for equality.
    fasterthanlime committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    fdddd83 View commit details
    Browse the repository at this point in the history
  10. Pass tidy checks

    fasterthanlime committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    bbaf4da View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3076959 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    05d8f5f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    32ee097 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    36d825f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9cf99a9 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    941416a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    246947b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    48bcc22 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    39db9cd View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. Configuration menu
    Copy the full SHA
    e591ff3 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12835 - fasterthanlime:sysroot-abi, r=fastert…

    …hanlime
    
    Introduce proc-macro-srv/sysroot-abi
    
    Still a WIP.
    
    This change is tracked by:
    
      * rust-lang/rust-analyzer#12818
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    cb8a3be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ab862a View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12844 - Veykril:highlight-attr, r=Veykril

    fix: Improve syntax highlighting in attributes
    
    Fixes rust-lang/rust-analyzer#12842
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    7e30ca1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0081ef3 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12840 - Veykril:be-lazy, r=Veykril

    internal: Use ItemTree for variant, field and module attribute collection in attrs_query
    
    Less parsing = very good, should speed up lang item collection as that basically probes attributes of all enum variants which currently triggers parsing
    
    Not fond of how this is searching for the correct index, ideally we'd map between HIR and item tree Id here but I am not sure how, storing the item tree ids in the HIR version doesn't work due to the usage of `Trace`...
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    d469e0d View commit details
    Browse the repository at this point in the history
  7. Revert 03a62c1

    Veykril committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    f1b5e38 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12847 - Veykril:vscode-downgrade, r=Veykril

    fix: Fix restart server duplicating language clients
    
    Reverts 03a62c1
    [email protected] and beyond changed the behaviour of language clients to be automatically started if a request comes in while they are not running. Currently when we restart the server via the restart command we recreate the language client, which causes VSCode to restart the stopped server, effectively duplicating our language clients...
    
    Reverting the commit is simpler right now, the proper fix would be to only create a language client once and then use the `restart` functionality on it instead.
    
    Fixes rust-lang/rust-analyzer#12836
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    8272d2a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cb6703f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e223d20 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#12850 - Veykril:display-fix, r=Veykril

    fix: Fix error tooltip message for VSCode status bar item
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    fbb1337 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#12849 - Veykril:no-parse, r=Veykril

    internal: Don't parse files unnecessarily in scope_for_offset
    bors committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    0b131bc View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2022

  1. fix generate_new doc

    RalfJung committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    ff041bf View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12854 - RalfJung:generate_new, r=Veykril

    fix generate_new doc
    
    Looks like this got copied from `generate_impl` without adjusting the description.
    bors committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    f3a46f6 View commit details
    Browse the repository at this point in the history
  3. fix: Don't add braces to 'if' completion in match guard position

    When the cursor is in a match arm, but before the fat arrow (=>) token, don't
    add braces when autocompleting "if".
    
    fixes rust-lang#12823
    DorianListens committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    13c83f9 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12851 - DorianListens:dscheidt/if-completion-…

    …match-guard, r=Veykril
    
    fix: Don't add braces to 'if' completion in match guard position
    
    fixes rust-lang#12823
    
    Is this what you were thinking of here, `@Veykril` ? I haven't done any work on completions before, so I could definitely be misunderstanding the issue.
    bors committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    2be0062 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a436be4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5bd8443 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12859 - matklad:dont-color-the-whole-block-re…

    …d-all-the-time-please, r=Veykril
    
    feat: don't highlight the whole fn on return-type mismatch
    bors committed Jul 23, 2022
    Configuration menu
    Copy the full SHA
    977e12a View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2022

  1. Configuration menu
    Copy the full SHA
    3c98486 View commit details
    Browse the repository at this point in the history
  2. Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a…

    …9d466af9eb613bb'
    
    git-subtree-dir: src/tools/rust-analyzer
    git-subtree-mainline: 3c98486
    git-subtree-split: 977e12a
    fasterthanlime committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    43acb50 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f2266d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9cf485c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d59abcf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4ea2f8e View commit details
    Browse the repository at this point in the history
  7. Use compiler.stage

    Co-authored-by: Joshua Nelson <[email protected]>
    fasterthanlime and jyn514 committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    4dedb58 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d42b28a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    37ed531 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    44f50c5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    107e265 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7534562 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e0add21 View commit details
    Browse the repository at this point in the history
  14. Small fixups

    - use `path` instead of `paths`
    - don't mark rust-analyzer as an optional tool
    - print the cargo command that's run in the proc-macro-test build script
    
      this originally was part of a change to fix `test --stage 0 rust-analyzer`,
      but I'm going to leave that for a separate PR so it's easier to review.
    jyn514 authored and fasterthanlime committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    ee09dc5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1bb63df View commit details
    Browse the repository at this point in the history
  16. hir-def tests: sort results before comparing, since FxHashSet iterati…

    …on order isn't guaranteed
    
    (And, in fact, it failed on i686)
    fasterthanlime committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    e436260 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    4e1a302 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6c07c71 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ee584c1 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    fa0037a View commit details
    Browse the repository at this point in the history