mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 21:25:25 +00:00 
			
		
		
		
	Merge pull request #19949 from ChayimFriedman2/stabilize-json
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
				
			
		
			
				
	
				metrics / generate_final_metrics (push) Blocked by required conditions
				
			
		
			
				
	
				metrics / build_metrics (push) Waiting to run
				
			
		
			
				
	
				metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
				
			
		
			
				
	
				metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
				
			
		
			
				
	
				metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
				
			
		
			
				
	
				metrics / other_metrics (self) (push) Blocked by required conditions
				
			
		
			
				
	
				rustdoc / rustdoc (push) Waiting to run
				
			
		
			
				
	
				autopublish / publish (push) Has been cancelled
				
			
		
			
				
	
				release / dist (aarch64-apple-darwin) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (x86_64-apple-darwin) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (i686-pc-windows-msvc) (push) Has been cancelled
				
			
		
			
				
	
				release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
				
			
		
			
				
	
				release / publish (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
				
			metrics / generate_final_metrics (push) Blocked by required conditions
				
			metrics / build_metrics (push) Waiting to run
				
			metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
				
			metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
				
			metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
				
			metrics / other_metrics (self) (push) Blocked by required conditions
				
			rustdoc / rustdoc (push) Waiting to run
				
			autopublish / publish (push) Has been cancelled
				
			release / dist (aarch64-apple-darwin) (push) Has been cancelled
				
			release / dist (x86_64-apple-darwin) (push) Has been cancelled
				
			release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
				
			release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
				
			release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
				
			release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
				
			release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
				
			release / dist (i686-pc-windows-msvc) (push) Has been cancelled
				
			release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
				
			release / publish (push) Has been cancelled
				
			fix: Stabilize the "JSON is not Rust" diagnostic
This commit is contained in:
		
						commit
						9fc1b9076c
					
				
					 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