Skip to content

Commit fc3057b

Browse files
committed
rustc_public: add #[cfg(feature = "rustc_internal")] to compiler_interface:run()
1 parent 084c492 commit fc3057b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_public/src/compiler_interface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,8 @@ impl<'tcx> CompilerInterface<'tcx> {
835835
// A thread local variable that stores a pointer to [`CompilerInterface`].
836836
scoped_tls::scoped_thread_local!(static TLV: Cell<*const ()>);
837837

838+
// FIXME(makai410): remove this cfg when we have a stable driver.
839+
#[cfg(feature = "rustc_internal")]
838840
pub(crate) fn run<'tcx, F, T>(interface: &CompilerInterface<'tcx>, f: F) -> Result<T, Error>
839841
where
840842
F: FnOnce() -> T,

0 commit comments

Comments
 (0)