mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
@@ -617,8 +617,8 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
}
|
||||
|
||||
impl InterpError<'_> {
|
||||
/// Some errors allocate to be created as they contain free-from strings.
|
||||
/// And sometiems we want to be sure that did not happen as it is a
|
||||
/// Some errors allocate to be created as they contain free-form strings.
|
||||
/// And sometimes we want to be sure that did not happen as it is a
|
||||
/// waste of resources.
|
||||
pub fn allocates(&self) -> bool {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user