mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
internal: re-generate lints.rs
This commit is contained in:
parent
f19479a2ad
commit
53f5c1c13f
5 changed files with 2057 additions and 1283 deletions
|
@ -300,6 +300,8 @@ fn check_test_attrs(path: &Path, text: &str) {
|
|||
// This file.
|
||||
"slow-tests/tidy.rs",
|
||||
"test-utils/src/fixture.rs",
|
||||
// Generated code from lints contains doc tests in string literals.
|
||||
"ide-db/src/generated/lints.rs",
|
||||
];
|
||||
if text.contains("#[should_panic") && !need_panic.iter().any(|p| path.ends_with(p)) {
|
||||
panic!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue