1
Fork 0

use named_span in case of tuple variant

This commit is contained in:
Takayuki Maeda 2022-07-04 18:13:16 +09:00
parent 3d1b679a3c
commit 0541b4e034
14 changed files with 26 additions and 31 deletions

View file

@ -341,7 +341,7 @@ fn report_negative_positive_conflict(
positive_impl_def_id: DefId,
sg: &mut specialization_graph::Graph,
) {
let impl_span = tcx.span_of_impl(local_impl_def_id.to_def_id()).unwrap();
let impl_span = tcx.def_span(local_impl_def_id);
let mut err = struct_span_err!(
tcx.sess,