Stabilize the "JSON is not Rust" diagnostic

This commit is contained in:
Chayim Refael Friedman 2025-06-09 00:35:40 +03:00
parent 6acff6c1f8
commit 14cb64c9d9

View File

@ -135,6 +135,7 @@ pub(crate) fn json_in_items(
"JSON syntax is not valid as a Rust item",
FileRange { file_id: vfs_file_id, range },
)
.stable()
.with_fixes(Some(vec![{
let mut scb = SourceChangeBuilder::new(vfs_file_id);
let scope = scb.make_import_scope_mut(import_scope);