Merge pull request #19949 from ChayimFriedman2/stabilize-json
fix: Stabilize the "JSON is not Rust" diagnostic
This commit is contained in:
commit
37c8788c5e
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue