mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	clippy: Enable forget_non_drop rule
				
					
				
			This commit is contained in:
		
							parent
							
								
									cdc3e83c2c
								
							
						
					
					
						commit
						3365e50180
					
				@ -170,7 +170,6 @@ useless_asref = "allow"
 | 
				
			|||||||
## Following lints should be tackled at some point
 | 
					## Following lints should be tackled at some point
 | 
				
			||||||
borrowed_box = "allow"
 | 
					borrowed_box = "allow"
 | 
				
			||||||
derived_hash_with_manual_eq = "allow"
 | 
					derived_hash_with_manual_eq = "allow"
 | 
				
			||||||
forget_non_drop = "allow"
 | 
					 | 
				
			||||||
needless_doctest_main = "allow"
 | 
					needless_doctest_main = "allow"
 | 
				
			||||||
too_many_arguments = "allow"
 | 
					too_many_arguments = "allow"
 | 
				
			||||||
type_complexity = "allow"
 | 
					type_complexity = "allow"
 | 
				
			||||||
 | 
				
			|||||||
@ -126,6 +126,10 @@ impl DropScopeToken {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					impl Drop for DropScopeToken {
 | 
				
			||||||
 | 
					    fn drop(&mut self) {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Uncomment this to make `DropScopeToken` a drop bomb. Unfortunately we can't do this in release, since
 | 
					// Uncomment this to make `DropScopeToken` a drop bomb. Unfortunately we can't do this in release, since
 | 
				
			||||||
// in cases that mir lowering fails, we don't handle (and don't need to handle) drop scopes so it will be
 | 
					// in cases that mir lowering fails, we don't handle (and don't need to handle) drop scopes so it will be
 | 
				
			||||||
// actually reached. `pop_drop_scope_assert_finished` will also detect this case, but doesn't show useful
 | 
					// actually reached. `pop_drop_scope_assert_finished` will also detect this case, but doesn't show useful
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user