Make AllocErr a zero-size unit struct

This commit is contained in:
Simon Sapin
2018-04-03 15:41:09 +02:00
parent a4caac5e93
commit ba7081a033
7 changed files with 51 additions and 135 deletions

View File

@@ -243,7 +243,7 @@ impl Error for ! {
issue = "32838")]
impl Error for AllocErr {
fn description(&self) -> &str {
AllocErr::description(self)
"memory allocation failed"
}
}