Skip to content

Commit

Permalink
Use the correct feature gate name
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Aug 7, 2018
1 parent fee0753 commit c0aedc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/transform/qualify_consts.rs
Expand Up @@ -728,9 +728,9 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
(CastTy::FnPtr, CastTy::Int(_)) => {
self.add(Qualif::NOT_CONST);
if self.mode != Mode::Fn &&
!self.tcx.sess.features_untracked().const_raw_ptr_deref {
!self.tcx.sess.features_untracked().const_raw_ptr_to_usize_cast {
emit_feature_err(
&self.tcx.sess.parse_sess, "const_raw_ptr_deref",
&self.tcx.sess.parse_sess, "const_raw_ptr_to_usize_cast",
self.span, GateIssue::Language,
&format!(
"casting pointers to integers in {}s is unstable",
Expand Down

0 comments on commit c0aedc0

Please sign in to comment.