Skip to content

Commit

Permalink
qualify_min_const_fn: improve note.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Dec 31, 2018
1 parent 35d77fc commit e4c47f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/transform/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ fn check_terminator(
}
}

/// Returns true if the `def_id` refers to an intrisic which we've whitelisted.
/// Returns true if the `def_id` refers to an intrisic which we've whitelisted
/// for being called from stable `const fn`s (`min_const_fn`).
///
/// Adding more intrinsics requires sign-off from @rust-lang/lang.
fn is_intrinsic_whitelisted(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> bool {
Expand Down

0 comments on commit e4c47f9

Please sign in to comment.