We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7826cfd commit 5203341Copy full SHA for 5203341
crates/red_knot_test/src/matcher.rs
@@ -139,6 +139,10 @@ trait UnmatchedWithColumn {
139
// This is necessary since we only parse assertions lazily,
140
// and sometimes we know before parsing any assertions that an assertion will be unmatched,
141
// e.g. if we've exhausted all diagnostics but there are still assertions left.
142
+//
143
+// TODO: the lazy parsing means that we sometimes won't report malformed assertions as
144
+// being invalid if we detect that they'll be unmatched before parsing them.
145
+// That's perhaps not the best user experience.
146
impl Unmatched for UnparsedAssertion<'_> {
147
fn unmatched(&self) -> String {
148
format!("{} {self}", "unmatched assertion:".red())
0 commit comments