Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank
Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank

Fix #88256 remove duplicated diagnostics

Fix #88256

aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,SingingTree/rustfmt,SingingTree/rustfmt,aidancully/rust,rust-lang/rustfmt,graydon/rust,rust-lang/rustfmt,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust