mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Stabilize the "JSON is not Rust" diagnostic
This commit is contained in:
parent
6acff6c1f8
commit
14cb64c9d9
@ -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…
x
Reference in New Issue
Block a user