[Bug 295981] devel/rust-analyzer: Update to 2026-06-08

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jun 2026 16:45:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295981

            Bug ID: 295981
           Summary: devel/rust-analyzer: Update to 2026-06-08
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: vladislav.movchan@gmail.com
             Flags: maintainer-feedback?(rust@FreeBSD.org)
          Assignee: rust@FreeBSD.org

Created attachment 271675
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271675&action=edit
Update to 2026-06-08

I see the following error with neovim + CoC + rust-analyzer for a "hello world"
project:

Failed to read Cargo metadata with dependencies for `/tmp/example/Cargo.toml`:
`cargo metadata` exited with an error:
error: unexpected argument '--lockfile-path' found
tip: a similar argument exists: '--locked'
Usage: cargo metadata --format-version <VERSION> --all-features --manifest-path
<PATH> --filter-platform <TRIPLE> --locked
For more information, try '--help'. 

This points to https://github.com/rust-lang/rust-analyzer/issues/21715
Which, in my understanding, could be boiled down to: rust-analyzer passes
no-longer-supported-flag to cargo (cargo-metadata).

Updating rust-analyzer to the recent version resolved this problem for me.

I performed poudriere testport on updated rust-analyzer - it completed
successfully.

-- 
You are receiving this mail because:
You are the assignee for the bug.