-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Miri error messages: avoid try terminology #71206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,7 +305,7 @@ impl fmt::Debug for InvalidProgramInfo<'_> { | |
Layout(ref err) => write!(f, "{}", err), | ||
TransmuteSizeDiff(from_ty, to_ty) => write!( | ||
f, | ||
"tried to transmute from {:?} to {:?}, but their sizes differed", | ||
"transmuting from {:?} to {:?}, which do not have the same size", | ||
from_ty, to_ty | ||
), | ||
} | ||
|
@@ -431,7 +431,7 @@ impl fmt::Debug for UndefinedBehaviorInfo { | |
"using uninitialized data, but this operation requires initialized memory" | ||
), | ||
DeadLocal => write!(f, "accessing a dead local variable"), | ||
ReadFromReturnPlace => write!(f, "tried to read from the return place"), | ||
ReadFromReturnPlace => write!(f, "reading from return place"), | ||
} | ||
} | ||
} | ||
|
@@ -462,9 +462,9 @@ impl fmt::Debug for UnsupportedOpInfo { | |
match self { | ||
Unsupported(ref msg) => write!(f, "{}", msg), | ||
ReadForeignStatic(did) => { | ||
write!(f, "tried to read from foreign (extern) static {:?}", did) | ||
write!(f, "cannot read from foreign (extern) static {:?}", did) | ||
} | ||
NoMirFor(did) => write!(f, "could not load MIR for {:?}", did), | ||
NoMirFor(did) => write!(f, "cannot load MIR for {:?}", did), | ||
|
||
ReadPointerAsBytes => write!(f, "unable to turn pointer into raw bytes",), | ||
ReadBytesAsPointer => write!(f, "unable to turn bytes into a pointer"), | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.