rust-lang / rust-lang/rust-analyzer

Error messages disappear when `rustc-unicode` is enabled

Open
#23,301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-flycheck B-unstable C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

rust-analyzer version: 0.3.3033-standalone (f8996691e9 2026-08-30)

rustc version: rustc 1.100.0-nightly (f248f4038 2026-09-05)

editor or extension: VSCode, extension version 0.3.3033

relevant settings:
In config.toml

[unstable]
rustc-unicode = true

Doc: https://doc.rust-lang.org/cargo/reference/unstable.html#rustc-unicode
Tracking issue: https://github.com/rust-lang/rust/issues/148607


Steps to reproduce:

  1. Set the rustc-unicode = true setting in config.toml.
  2. Create and open a simple Rust project in VSCode.
  3. Ensure that there are some errors or warnings in your main.rs.
  4. Run your file with the Run | Debug button near main.rs:
Image
  1. Warnings disappear from code but still appear in the Problems tab:
Image

Note the ╭▸ symbols in file path.

If you try to open this file VSCode will create it at the root of your drive:

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with rustc-unicode enabled in config.toml and errors in main.rs, then inspect how rust-analyzer handles the compiler output containing the ╭▸ symbols. Confirm the fix by running the same VSCode scenario and verifying diagnostics remain attached to the source file rather than resolving at the drive root.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.