Skip to content

Commit f381976

Browse files
Merge pull request #22112 from WeiTheShinobi/simplify_drop_may_danble_check
Simplify `drop_maybe_dangle` function.
2 parents 4c21cec + c2f5dab commit f381976

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

crates/hir/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ impl Module {
881881
}
882882

883883
let drop_maybe_dangle = (|| {
884-
// FIXME: This can be simplified a lot by exposing hir-ty's utils.rs::Generics helper
885884
let trait_ = trait_?;
886885
let drop_trait = interner.lang_items().Drop?;
887886
if drop_trait != trait_.into() {

0 commit comments

Comments
 (0)