Skip to content

Commit 37c8788

Browse files
Merge pull request #19949 from ChayimFriedman2/stabilize-json
fix: Stabilize the "JSON is not Rust" diagnostic
2 parents 3bae562 + 814b9a1 commit 37c8788

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/json_is_not_rust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ pub(crate) fn json_in_items(
135135
"JSON syntax is not valid as a Rust item",
136136
FileRange { file_id: vfs_file_id, range },
137137
)
138+
.stable()
138139
.with_fixes(Some(vec![{
139140
let mut scb = SourceChangeBuilder::new(vfs_file_id);
140141
let scope = scb.make_import_scope_mut(import_scope);

0 commit comments

Comments
 (0)