mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	fix: filter out cfg disabled filed when lowering RecordPat
				
					
				
			This commit is contained in:
		
							parent
							
								
									d410d4a2ba
								
							
						
					
					
						commit
						4505f03fbf
					
				@ -1335,6 +1335,7 @@ impl ExprCollector<'_> {
 | 
				
			|||||||
                let args = record_pat_field_list
 | 
					                let args = record_pat_field_list
 | 
				
			||||||
                    .fields()
 | 
					                    .fields()
 | 
				
			||||||
                    .filter_map(|f| {
 | 
					                    .filter_map(|f| {
 | 
				
			||||||
 | 
					                        self.check_cfg(&f)?;
 | 
				
			||||||
                        let ast_pat = f.pat()?;
 | 
					                        let ast_pat = f.pat()?;
 | 
				
			||||||
                        let pat = self.collect_pat(ast_pat, binding_list);
 | 
					                        let pat = self.collect_pat(ast_pat, binding_list);
 | 
				
			||||||
                        let name = f.field_name()?.as_name();
 | 
					                        let name = f.field_name()?.as_name();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user