use named_span
in case of tuple variant
This commit is contained in:
parent
3d1b679a3c
commit
0541b4e034
14 changed files with 26 additions and 31 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue