Skip to content

Commit

Permalink
Rollup merge of rust-lang#53732 - emilio:foreign-fn, r=nrc
Browse files Browse the repository at this point in the history
save-analysis: Differentiate foreign functions and statics.
  • Loading branch information
pietroalbini authored Aug 29, 2018
2 parents 491c4bb + 4570ace commit ef9a675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_save_analysis/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
filter!(self.span_utils, sub_span, item.span, None);

Some(Data::DefData(Def {
kind: DefKind::Function,
kind: DefKind::ForeignFunction,
id: id_from_node_id(item.id, self),
span: self.span_from_span(sub_span.unwrap()),
name: item.ident.to_string(),
Expand All @@ -171,7 +171,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
let span = self.span_from_span(sub_span.unwrap());

Some(Data::DefData(Def {
kind: DefKind::Static,
kind: DefKind::ForeignStatic,
id,
span,
name: item.ident.to_string(),
Expand Down

0 comments on commit ef9a675

Please sign in to comment.