Skip to content

Commit

Permalink
Rollup merge of rust-lang#127816 - oli-obk:misnomer, r=compiler-errors
Browse files Browse the repository at this point in the history
Update method name to reflect changes to its internals

forgot to do this in rust-lang#127431
  • Loading branch information
tgross35 authored Jul 16, 2024
2 parents 1562f72 + 6ce78be commit ed73eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_resolve/src/build_reduced_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ impl<'a, 'b, 'tcx> BuildReducedGraphVisitor<'a, 'b, 'tcx> {
}
}

fn insert_field_def_ids(&mut self, def_id: LocalDefId, fields: &[ast::FieldDef]) {
fn insert_field_idents(&mut self, def_id: LocalDefId, fields: &[ast::FieldDef]) {
if fields.iter().any(|field| field.is_placeholder) {
// The fields are not expanded yet.
return;
Expand Down Expand Up @@ -652,7 +652,7 @@ impl<'a, 'b, 'tcx> BuildReducedGraphVisitor<'a, 'b, 'tcx> {
let def_id = feed.key();

// Record field names for error reporting.
self.insert_field_def_ids(def_id, fields);
self.insert_field_idents(def_id, fields);
self.insert_field_visibilities_local(def_id.to_def_id(), fields);

for field in fields {
Expand Down Expand Up @@ -1520,7 +1520,7 @@ impl<'a, 'b, 'tcx> Visitor<'b> for BuildReducedGraphVisitor<'a, 'b, 'tcx> {
}

// Record field names for error reporting.
self.insert_field_def_ids(def_id, variant.data.fields());
self.insert_field_idents(def_id, variant.data.fields());
self.insert_field_visibilities_local(def_id.to_def_id(), variant.data.fields());

visit::walk_variant(self, variant);
Expand Down

0 comments on commit ed73eac

Please sign in to comment.