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

Merged
merged 38 commits into from
Feb 2, 2024
Merged

Subtree update of rust-analyzer #120447

merged 38 commits into from
Feb 2, 2024

Commits on Jan 12, 2024

  1. Detect NulInCStr error earlier.

    By making it an `EscapeError` instead of a `LitError`. This makes it
    like the other errors produced when checking string literals contents,
    e.g. for invalid escape sequences or bare CR chars.
    
    NOTE: this means these errors are issued earlier, before expansion,
    which changes behaviour. It will be possible to move the check back to
    the later point if desired. If that happens, it's likely that all the
    string literal contents checks will be delayed together.
    
    One nice thing about this: the old approach had some code in
    `report_lit_error` to calculate the span of the nul char from a range.
    This code used a hardwired `+2` to account for the `c"` at the start of
    a C string literal, but this should have changed to a `+3` for raw C
    string literals to account for the `cr"`, which meant that the caret in
    `cr"` nul error messages was one short of where it should have been. The
    new approach doesn't need any of this and avoids the off-by-one error.
    nnethercote committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    6001c50 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. fix(rust-analyzer): use new pkgid spec to compare

    Starting from cargo#13311, Cargo's compiler artifact message
    uses Package ID specification as package's identifier format.
    weihanglo committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    6231ca5 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#119172 - nnethercote:earlier-NulInCStr, r=p…

    …etrochenkov
    
    Detect `NulInCStr` error earlier.
    
    By making it an `EscapeError` instead of a `LitError`. This makes it like the other errors produced when checking string literals contents, e.g. for invalid escape sequences or bare CR chars.
    
    NOTE: this means these errors are issued earlier, before expansion, which changes behaviour. It will be possible to move the check back to the later point if desired. If that happens, it's likely that all the string literal contents checks will be delayed together.
    
    One nice thing about this: the old approach had some code in `report_lit_error` to calculate the span of the nul char from a range. This code used a hardwired `+2` to account for the `c"` at the start of a C string literal, but this should have changed to a `+3` for raw C string literals to account for the `cr"`, which meant that the caret in `cr"` nul error messages was one short of where it should have been. The new approach doesn't need any of this and avoids the off-by-one error.
    
    r? ```@fee1-dead```
    matthiaskrgr authored Jan 18, 2024
    Configuration menu
    Copy the full SHA
    7d4980a View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

  1. Remove unused codes

    mu001999 committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    1a9ef23 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#120084 - weihanglo:pkgid-spec, r=Mark-Simul…

    …acrum
    
    fix(rust-analyzer): use new pkgid spec to compare
    
    Starting from rust-lang/cargo#13311, Cargo's compiler artifact message
    uses Package ID specification as package's identifier format.
    
    Zulip topic: https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/proc-macro-test.20bootstrap.20and.20pkgid.20JSON
    
    cc `@ehuss`
    Nadrieril authored Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0661390 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4866b6 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16409 - mu001999:master, r=HKalbasi

    Remove unused codes
    
    Detected by rust-lang#118257
    bors committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    47b0f46 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8af2b4d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ef6e6df View commit details
    Browse the repository at this point in the history
  7. Revert "Detect NulInCStr error earlier."

    This reverts commit 6001c50.
    lnicola committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    0ea0565 View commit details
    Browse the repository at this point in the history
  8. Format code

    lnicola committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    5607714 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#16412 - lnicola:sync-from-rust, r=lnicola

    internal: Sync from downstream
    bors committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    d410d4a View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. internal: Make TryToNav trait public

    Currently there is no proper way to get a target FileRange for a given
    Definition.
    Waqar144 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    231f730 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

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

Commits on Jan 24, 2024

  1. Auto merge of rust-lang#16420 - Nadrieril:use-upstream-pattern-analys…

    …is, r=Veykril
    
    Use upstream exhaustiveness checker!
    
    Because it has been librarified!
    
    The extra `Apache-2.0 WITH LLVM-exception` license is for `rustc_apfloat`. Also this duplicates `rustc_index` because the other upstream deps are still on an earlier version. They should be bumpable now though. Good thing is that we don't need this new crate to be synchronized with the others, which will make our lives easier.
    bors committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    0d52934 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. Reapply "Detect NulInCStr error earlier."

    This reverts commit 0ea0565.
    lnicola committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    b1b6e0c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1b99cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea94c10 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16426 - lnicola:bump-rustc, r=lnicola

    minor: Bump rustc crates
    
    This also reverts the earlier revert.
    bors committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    38f7a34 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4505f03 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1374bc8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8f05e7c View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Auto merge of rust-lang#16415 - Waqar144:work/make-try-to-nav-pub, r=…

    …Veykril
    
    internal: Make TryToNav trait public
    
    Currently there is no proper way to get a target FileRange for a given Definition.
    bors committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    f090205 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e320004 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    880baa9 View commit details
    Browse the repository at this point in the history
  4. Cleanup convert_path

    Veykril committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    d8ef6c2 View commit details
    Browse the repository at this point in the history
  5. Add some size assertions

    Veykril committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    5a34341 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#16431 - Ar4ys:fix-E0107-error-range-in-proc-m…

    …acro, r=Veykril
    
    Replaced adjusted_display_range with adjusted_display_range_new in mismatched_arg_count
    
    For detailed description - see related issue.
    
    Fixes: rust-lang#16407
    bors committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    596e5c7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6cf7b5f View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    ad5e2cf View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#16435 - SomeoneToIgnore:less_resolve_data, r=…

    …lnicola
    
    Do not return code lens data after resolving
    bors committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    4a23744 View commit details
    Browse the repository at this point in the history
  3. Re-order mod declarations

    Veykril committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    8a5829c View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#16434 - Veykril:things, r=Veykril

    internal: Restructure and cleanup hir-expand a bit
    bors committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    27c3ed9 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#16427 - Young-Flash:fix_no_such_field_diagnos…

    …tics, r=Veykril
    
    fix: filter out cfg disabled filed when lowering `RecordPat`
    
    we should filter out field with disabled cfg when lowering ast `RecordPat` to hir.
    
    close rust-lang/rust-analyzer#16169
    bors committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    7219414 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2024

  1. Configuration menu
    Copy the full SHA
    e71b4c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7e81cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    309d615 View commit details
    Browse the repository at this point in the history
  4. Revert "Silence triagebot on subtree syncs"

    This reverts commit e7e81cf.
    lnicola committed Jan 28, 2024
    Configuration menu
    Copy the full SHA
    7159d88 View commit details
    Browse the repository at this point in the history