Skip to content

RA doesn't honor Cargo.toml edition #17852

Closed
@Rudxain

Description

@Rudxain

rust-analyzer version: 1.80.0 (0514789 2024-07-21)

rustc version: 1.80.0 (051478957 2024-07-21)

editor or extension: hx 24.7 (079f5442), AppImage

relevant settings: None?

repository link (if public, optional): None

code snippet to reproduce:
src/main.rs:

fn main() {
    std::env::set_var("", "");
}

Cargo.toml:

[package]
name = "tmp"
version = "0.1.0"
edition = "2021"

description: RA shows a diagnostic that's valid for Edition 2024 "this operation is unsafe and requires an unsafe function or block (E0133)", but not for 2021. cargo check is successful

Metadata

Metadata

Assignees

Labels

A-diagnosticsdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions