-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui_test: more robust comment parsing #2170
Comments
Compiletest wants to become more robust/explicit here, too: rust-lang/compiler-team#513 |
That sounds somewhat orthogonal -- that is about adding extra annotations that compiletest leaves uninterpreted, which is different from being able to tell when the user has made a typo in their annotation. |
Hmm... seems the same to me. If we don't have a sigil like |
In my understanding, that issue is about |
Ah, this is the compiletest proposal you probably meant: rust-lang/compiler-team#512. That's probably where I got |
Reopening since the transition is still ongoing. :) |
Oh wait, you have ported all tests. I didn't realize that. Wow :) |
Currently, if we fail to parse a
//~
line or an annotation like// ignore-target
, we just go on. That's a pretty bad default for infrastructure that is meant to test our code! For both of these I think we should hard error if we cannot parse the line.For
//~
that is fairly easy; if any comment starting//~
eludes us we can just error.For the other annotations it is a lot harder since that might just be a regular comment. I think we need to change their syntax so that we can tell that this line is meant to be special.
//@
might work? We should ideally sync this with compiletest, in case they have similar plans.The text was updated successfully, but these errors were encountered: