Skip to content

Commit ebec524

Browse files
authored
Merge pull request dtolnay#121 from SergioBenitez/master
Enable 'unstable' method if the 'nightly' feature is enabled.
2 parents e9d344f + 4a23282 commit ebec524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ impl Span {
328328
}
329329

330330
/// This method is only available when the `"nightly"` feature is enabled.
331-
#[cfg(super_unstable)]
331+
#[doc(hidden)]
332+
#[cfg(any(feature = "nightly", super_unstable))]
332333
pub fn unstable(self) -> proc_macro::Span {
333334
self.inner.unstable()
334335
}

0 commit comments

Comments
 (0)