Skip to content

Commit 3fa688e

Browse files
committed
hide StandaloneLevel
1 parent 99e84eb commit 3fa688e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

library/proc_macro/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,25 @@ pub fn is_available() -> bool {
9595
/// `Never` to `FallbackOnly`.
9696
#[unstable(feature = "proc_macro_standalone", issue = "130856")]
9797
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
98-
pub enum StandaloneLevel {
98+
enum StandaloneLevel {
9999
/// The standalone implementation is never used. This is the default.
100100
Never,
101101
/// The standalone implementation is only used outside of procedural macros.
102102
FallbackOnly,
103103
/// The standalone implementation is always used, even in procedural macros.
104+
///
105+
/// This does not actually work and should be removed before merging.
104106
Always,
105107
}
106108

107109
/// Enables the new experimental standalone backend, which allows calling the
108110
/// functions in this crate outside of procedural macros.
111+
///
112+
/// When stabilizing this feature, this function will be removed and all programs
113+
/// will have the fallback activated automatically.
109114
#[unstable(feature = "proc_macro_standalone", issue = "130856")]
110-
pub fn enable_standalone(level: StandaloneLevel) {
111-
bridge::client::enable_standalone(level);
115+
pub fn enable_standalone() {
116+
bridge::client::enable_standalone(StandaloneLevel::FallbackOnly);
112117
}
113118

114119
/// The main type provided by this crate, representing an abstract stream of

0 commit comments

Comments
 (0)