]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/method/suggest.rs
Rollup merge of #92743 - bjorn3:less_symbol_intern, r=camelid
[rust.git] / compiler / rustc_typeck / src / check / method / suggest.rs
index fdf440f955c636173476f011f05664a6262cfa62..de83e45329b396f4d9ae74da3bfd4ef23bc3eee4 100644 (file)
@@ -997,7 +997,7 @@ trait bound{s}",
                 if unsatisfied_predicates.is_empty() && actual.is_enum() {
                     let adt_def = actual.ty_adt_def().expect("enum is not an ADT");
                     if let Some(suggestion) = lev_distance::find_best_match_for_name(
-                        &adt_def.variants.iter().map(|s| s.ident.name).collect::<Vec<_>>(),
+                        &adt_def.variants.iter().map(|s| s.name).collect::<Vec<_>>(),
                         item_name.name,
                         None,
                     ) {