Skip to content

A few rust_analyzer crates seem stuck on older versions #23713

Done

Description

@paldepind

Hello. This issue is about the rust-analyzer crates published on crates.io, not about direct use of rust_analyzer.

We use rust_analyzer as a library for the Rust support in CodeQL. We noticed that a few rust_analyzer crates (ra_ap_load-cargo, ra_ap_project_model, and ra_ap_toolchain) seem to be stuck on an older 0.0.358 version from October 12, despite the other crates having several releases beyond that.

This prevents us from updating to newer versions, due to dependency incompatibilities with the older versions.

An case it's useful, below is a blurp I got from having an agent look into the issue. It seems to indicate that there is some issue with the auto-publishing:

The crates.io auto-publishing workflow has failed on every weekly run from October 19 through November 23, 2026. Some crates are published before the workflow fails, leaving downstream consumers unable to upgrade to a consistent set of ra_ap_* crates.

The last successful weekly run was on October 12:
https://github.com/rust-lang/rust-analyzer/actions/runs/38203820555

The October 19 run failed while verifying ra_ap_macros:
https://github.com/rust-lang/rust-analyzer/actions/runs/39201125100

The November 23 run published part of 0.0.364, then failed while verifying
ra_ap_hir_ty:
https://github.com/rust-lang/rust-analyzer/actions/runs/45141560934

Its compiler error is:

error[E0061]: this function takes 3 arguments but 4 arguments were supplied

The diagnostic points to the #[salsa::tracked(...)] attribute in src/variance.rs:37, with an unexpected argument of type Option<&interner::StoredVariancesOf>. It identifies variances_of_cycle_initial at line 104 as the function being called. Package verification consequently fails, preventing publication of ra_ap_hir_ty and the remaining dependent crates.

Activity

  1. added
    C-bug
    on Nov 24, 2026
  2. ShoyuVanilla commented on Nov 24, 2026

    @ShoyuVanilla
    Member

    Yeah, our publish workflow has been failing for various reasons. I've been fixing them (#23448, #23449, #23595, #23646 and #23708) but it failed for new reasons each time.
    I guess the last one might have fixed it.

  3. ShoyuVanilla commented on Nov 24, 2026

    @ShoyuVanilla
    Member

    I think we should introduce some publish simulation step which runs on each PR or merge, though it can't prevent the publish failure due to breaking changes from upstream

  4. paldepind commented on Nov 24, 2026

    @paldepind
    Author

    Thanks for the reply @ShoyuVanilla. Good to know that progress is being made on this :)

  5. lnicola commented on Nov 24, 2026

    @lnicola
    Member

    There's also #23535

  6. lnicola commented on Nov 30, 2026

    @lnicola
    Member

    Fixed in #23745, #23747, #23748 and #23749.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions