move Constness into TraitPredicate
This commit is contained in:
parent
04c9901a08
commit
32390a0df6
49 changed files with 157 additions and 124 deletions
|
@ -2751,6 +2751,15 @@ pub enum Constness {
|
|||
NotConst,
|
||||
}
|
||||
|
||||
impl fmt::Display for Constness {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str(match *self {
|
||||
Self::Const => "const",
|
||||
Self::NotConst => "non-const",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Encodable, Debug, HashStable_Generic)]
|
||||
pub struct FnHeader {
|
||||
pub unsafety: Unsafety,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue