Avoid various uses of Option<Span> in favor of using DUMMY_SP in the few cases that used None
This commit is contained in:
@@ -367,7 +367,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
|
||||
Repeat(..) => return None,
|
||||
|
||||
Constant { ref value, disambiguator: _ } => {
|
||||
self.ecx.eval_mir_constant(value, None, None).ok()?
|
||||
self.ecx.eval_mir_constant(value, DUMMY_SP, None).ok()?
|
||||
}
|
||||
Aggregate(kind, variant, ref fields) => {
|
||||
let fields = fields
|
||||
|
||||
Reference in New Issue
Block a user