Skip to content

Commit

Permalink
Move variable into condition where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 3, 2021
1 parent 250fb72 commit 4d3227f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_metadata/src/rmeta/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
}

let def_key = self.def_key(child_index);
let span = self.get_span(child_index, sess);
if def_key.disambiguated_data.data.get_opt_name().is_some() {
let span = self.get_span(child_index, sess);
let kind = self.def_kind(child_index);
let ident = self.item_ident(child_index, sess);
let vis = self.get_visibility(child_index);
Expand Down

0 comments on commit 4d3227f

Please sign in to comment.