mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	fix: cargo rustc --print needs unstable-options
				
					
				
			This commit is contained in:
		
							parent
							
								
									132a2a03c4
								
							
						
					
					
						commit
						0f7b85a9d6
					
				@ -66,7 +66,7 @@ fn rustc_print_cfg(
 | 
				
			|||||||
        QueryConfig::Cargo(sysroot, cargo_toml) => {
 | 
					        QueryConfig::Cargo(sysroot, cargo_toml) => {
 | 
				
			||||||
            let mut cmd = sysroot.tool(Tool::Cargo, cargo_toml.parent());
 | 
					            let mut cmd = sysroot.tool(Tool::Cargo, cargo_toml.parent());
 | 
				
			||||||
            cmd.envs(extra_env);
 | 
					            cmd.envs(extra_env);
 | 
				
			||||||
            cmd.args(["rustc"]).args(RUSTC_ARGS);
 | 
					            cmd.args(["rustc", "-Z", "unstable-options"]).args(RUSTC_ARGS);
 | 
				
			||||||
            if let Some(target) = target {
 | 
					            if let Some(target) = target {
 | 
				
			||||||
                cmd.args(["--target", target]);
 | 
					                cmd.args(["--target", target]);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user