We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e554f8d commit 9c0ccb3Copy full SHA for 9c0ccb3
compiler/rustc_mir_build/src/lints.rs
@@ -37,7 +37,7 @@ fn is_default_impl<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> bool {
37
if tcx.def_kind(def_id) == DefKind::AssocFn {
38
// Check if this is a trait impl and get the defid of the trait if it is
39
if let Some(parent_def_id) = tcx.opt_parent(def_id.into()) {
40
- if tcx.def_kind(parent_def_id) == (DefKind::Impl {of_trait: true}) {
+ if tcx.def_kind(parent_def_id) == (DefKind::Impl { of_trait: true }) {
41
if let Some(trait_def_id) = tcx.trait_id_of_impl(parent_def_id) {
42
// check if it is a default impl
43
if tcx.get_diagnostic_name(trait_def_id) == Some(sym::Default) {
0 commit comments