Rename const error methods for consistency renames `ty::Const`'s methods for creating a `ConstKind::Error` to be in the same naming style as `ty::Ty`'s equivalent methods. r? `@BoxyUwU`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.