Skip to content

Commit ded44b4

Browse files
committed
[CSStep] Attempt all disabled disjunction choices in diagnostic mode
1 parent c85deb1 commit ded44b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSStep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ bool DisjunctionStep::shouldSkip(const DisjunctionChoice &choice) const {
481481
auto &ctx = CS.getASTContext();
482482

483483
bool attemptFixes = CS.shouldAttemptFixes();
484-
// Enable "fixed" overload choices in "diagnostic" mode.
485-
if (!(attemptFixes && choice.hasFix()) && choice.isDisabled()) {
484+
// Enable all disabled choices in "diagnostic" mode.
485+
if (!attemptFixes && choice.isDisabled()) {
486486
if (isDebugMode()) {
487487
auto &log = getDebugLogger();
488488
log << "(skipping ";

0 commit comments

Comments
 (0)