Skip to content

Commit 68ea9f8

Browse files
Rollup merge of #127107 - mu001999-contrib:dead/enhance-2, r=pnkfelix
Improve dead code analysis Fixes #120770 1. check impl items later if self ty is private although the trait method is public, cause we must use the ty firstly if it's private 2. mark the adt live if it appears in pattern, like generic argument, this implies the use of the adt 3. based on the above, we can handle the case that private adts impl Default, so that we don't need adding rustc_trivial_field_reads on Default, and the logic in should_ignore_item r? ``@pnkfelix``
2 parents 75dd842 + 2ec3a7d commit 68ea9f8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

crates/salsa/salsa-macros/src/database_storage.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,3 @@ impl Parse for QueryGroup {
241241
Ok(QueryGroup { group_path })
242242
}
243243
}
244-
245-
struct Nothing;
246-
247-
impl Parse for Nothing {
248-
fn parse(_input: ParseStream<'_>) -> syn::Result<Self> {
249-
Ok(Nothing)
250-
}
251-
}

0 commit comments

Comments
 (0)