Change ty.kind to a method
This commit is contained in:
@@ -2482,7 +2482,7 @@ impl<'tcx> Debug for Constant<'tcx> {
|
||||
|
||||
impl<'tcx> Display for Constant<'tcx> {
|
||||
fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
|
||||
match self.literal.ty.kind {
|
||||
match self.literal.ty.kind() {
|
||||
ty::FnDef(..) => {}
|
||||
_ => write!(fmt, "const ")?,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user