mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Move variable into condition where it's used
This commit is contained in:
parent
250fb72d1b
commit
4d3227fe1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user