Skip to content

Commit

Permalink
save-analysis: Differentiate foreign functions and statics.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 27, 2018
1 parent 3a2c603 commit 4570ace
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 @@ -147,7 +147,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 @@ -170,7 +170,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 4570ace

Please sign in to comment.