Skip to content

Commit d71e922

Browse files
committed
fix library doctest: not failing on some feature gates as expected
Updating the behavior of `fn is_unstable_reexport` to return false for bootstrap environment would result in a breakage of #94972. This was the quickest and simplest solution to fix this elusive bug, which was only identified through miri tests. Signed-off-by: ozkanonur <[email protected]>
1 parent ffaa32b commit d71e922

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_passes/src/stability.rs

+3
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
830830
None,
831831
path.span,
832832
None,
833+
#[cfg(bootstrap)]
834+
AllowUnstable::No,
835+
#[cfg(not(bootstrap))]
833836
if is_unstable_reexport(self.tcx, id) {
834837
AllowUnstable::Yes
835838
} else {

0 commit comments

Comments
 (0)