Skip to content

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Aug 30, 2025

This is primarily intended to be used (along with #84031) by tools like sourcekit-lsp to opt in to additional annotations for the subset of a file the user is currently looking at. This initial remark is fairly simple and limited, but it serves as a good foundation for future experimentation in this space around exposing more of the compiler's internal analysis to higher-level tools.

@owenv
Copy link
Contributor Author

owenv commented Aug 30, 2025

@swift-ci smoke test

@owenv
Copy link
Contributor Author

owenv commented Aug 31, 2025

macOS failure is Swift(macosx-x86_64) :: Concurrency/async_task_priority.swift, which should be unrelated

@owenv
Copy link
Contributor Author

owenv commented Aug 31, 2025

@swift-ci smoke test macOS

@@ -1391,6 +1391,43 @@ bool constraints::debugConstraintSolverForTarget(
return startBound != endBound;
}

bool constraints::shouldEmitInferredTypesRemarksForTarget(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I a better place for this is TypeCheckConstraints.cpp

auto diag = Context.Diags.diagnose(E->getStartLoc(),
diag::remark_inferred_type,
E->getKind(), type);
diag.highlight(E->getSourceRange());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is emitting remarks for all the types inferred or not, do we actually want inferred types only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants