提交 5b0227c7 编写于 作者: Y yair halberstadt

Remove call to ErrorFacts.PreventsSuccessfulDelegateConversion(xCode), since...

Remove call to ErrorFacts.PreventsSuccessfulDelegateConversion(xCode), since no longer necessary, and not necessarily an optimisation
上级 1ed12fa6
......@@ -976,13 +976,6 @@ private static int CanonicallyCompareDiagnostics(Diagnostic x, Diagnostic y)
if (codeCompare != 0)
return codeCompare;
// ToString fails for a diagnostic with an error code that does not prevent successful delegate conversion.
// Also, the order doesn't matter, since all such diagnostics will be dropped.
if (!ErrorFacts.PreventsSuccessfulDelegateConversion(xCode))
{
return codeCompare;
}
for (int i = 0; i < Math.Min(x.Arguments.Count, y.Arguments.Count); i++)
{
object argx = x.Arguments[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册