parent
9041b93058
commit
cea8f67199
1 changed files with 3 additions and 0 deletions
|
|
@ -657,6 +657,9 @@ impl fmt::Display for UnsafetySpace {
|
|||
|
||||
impl fmt::Display for ConstnessSpace {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_some() {
|
||||
return Ok(());
|
||||
}
|
||||
match self.get() {
|
||||
hir::Constness::Const => write!(f, "const "),
|
||||
hir::Constness::NotConst => Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue