Skip to content

Commit c8156b9

Browse files
Remove unnecessary fmt::Debug bound
1 parent 3d2bc50 commit c8156b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_mir/transform/check_consts/validation.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use syntax::symbol::sym;
1414
use syntax_pos::Span;
1515

1616
use std::borrow::Cow;
17-
use std::fmt;
1817
use std::ops::Deref;
1918

2019
use crate::dataflow::{self as old_dataflow, generic as dataflow};
@@ -264,7 +263,7 @@ impl Validator<'a, 'mir, 'tcx> {
264263
/// context. Returns `Forbidden` if an error was emitted.
265264
pub fn check_op_spanned<O>(&mut self, op: O, span: Span) -> CheckOpResult
266265
where
267-
O: NonConstOp + fmt::Debug
266+
O: NonConstOp
268267
{
269268
trace!("check_op: op={:?}", op);
270269

@@ -287,7 +286,7 @@ impl Validator<'a, 'mir, 'tcx> {
287286
}
288287

289288
/// Emits an error if an expression cannot be evaluated in the current context.
290-
pub fn check_op(&mut self, op: impl NonConstOp + fmt::Debug) -> CheckOpResult {
289+
pub fn check_op(&mut self, op: impl NonConstOp) -> CheckOpResult {
291290
let span = self.span;
292291
self.check_op_spanned(op, span)
293292
}

0 commit comments

Comments
 (0)