Skip to content

Commit dabc62d

Browse files
committedNov 27, 2014
Fix diagnostic conflict
1 parent 1ae0ed4 commit dabc62d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎src/librustc/diagnostics.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,6 @@ register_diagnostics!(
147147
E0168,
148148
E0169,
149149
E0170,
150-
E0171
150+
E0171,
151+
E0172
151152
)

‎src/librustc/middle/typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
703703
path));
704704
}
705705
_ => {
706-
span_err!(this.tcx().sess, ty.span, E0170, "expected a reference to a trait");
706+
span_err!(this.tcx().sess, ty.span, E0172, "expected a reference to a trait");
707707
Err(ErrorReported)
708708
}
709709
}

1 commit comments

Comments
 (1)

nikomatsakis commented on Nov 27, 2014

@nikomatsakis
ContributorAuthor

r=alexcrichton p=99

Please sign in to comment.