Skip to content

Commit ff18786

Browse files
RalfJungCentril
andauthored
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 18551e7 commit ff18786

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/mir/interpret/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ pub struct InterpErrorInfo<'tcx> {
190190
}
191191

192192

193-
impl<'tcx> fmt::Display for InterpErrorInfo<'tcx> {
193+
impl fmt::Display for InterpErrorInfo<'_> {
194194
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
195195
write!(f, "{}", self.kind)
196196
}
197197
}
198198

199-
impl<'tcx> InterpErrorInfo<'tcx> {
199+
impl InterpErrorInfo<'_> {
200200
pub fn print_backtrace(&mut self) {
201201
if let Some(ref mut backtrace) = self.backtrace {
202202
print_backtrace(&mut *backtrace);
@@ -390,14 +390,14 @@ pub enum InterpError<'tcx> {
390390

391391
pub type InterpResult<'tcx, T = ()> = Result<T, InterpErrorInfo<'tcx>>;
392392

393-
impl<'tcx> fmt::Display for InterpError<'tcx> {
393+
impl fmt::Display for InterpError<'_> {
394394
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
395395
// Forward `Display` to `Debug`
396396
write!(f, "{:?}", self)
397397
}
398398
}
399399

400-
impl<'tcx> fmt::Debug for InterpError<'tcx> {
400+
impl fmt::Debug for InterpError<'_> {
401401
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
402402
use InterpError::*;
403403
match *self {

0 commit comments

Comments
 (0)