We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const
1 parent 9041b93 commit cea8f67Copy full SHA for cea8f67
src/librustdoc/html/format.rs
@@ -657,6 +657,9 @@ impl fmt::Display for UnsafetySpace {
657
658
impl fmt::Display for ConstnessSpace {
659
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
660
+ if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_some() {
661
+ return Ok(());
662
+ }
663
match self.get() {
664
hir::Constness::Const => write!(f, "const "),
665
hir::Constness::NotConst => Ok(())
0 commit comments