-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyBugs / technical debt to be addressed immediatelyC-bugCategory: bugCategory: bug
Description
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 reportingdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyBugs / technical debt to be addressed immediatelyC-bugCategory: bugCategory: bug