Skip to content

Commit

Permalink
Pass a default value when unwrapping a span
Browse files Browse the repository at this point in the history
  • Loading branch information
AB1908 authored and Vardhan Thigle committed Jan 31, 2019
1 parent 7f38b72 commit 426f81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_metadata/native_libs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl<'a, 'tcx> Collector<'a, 'tcx> {
!self.tcx.features().static_nobundle {
feature_gate::emit_feature_err(&self.tcx.sess.parse_sess,
"static_nobundle",
span.unwrap(),
span.unwrap_or_else(|| syntax_pos::DUMMY_SP),
GateIssue::Language,
"kind=\"static-nobundle\" is feature gated");
}
Expand Down

0 comments on commit 426f81b

Please sign in to comment.