Skip to content

Commit e4c47f9

Browse files
committed
qualify_min_const_fn: improve note.
1 parent 35d77fc commit e4c47f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/librustc_mir/transform/qualify_min_const_fn.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ fn check_terminator(
387387
}
388388
}
389389

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

0 commit comments

Comments
 (0)