Merge pull request #19949 from ChayimFriedman2/stabilize-json

fix: Stabilize the "JSON is not Rust" diagnostic
This commit is contained in:
Chayim Refael Friedman 2025-06-08 21:46:16 +00:00 committed by GitHub
commit 37c8788c5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);