Skip to content

Conversation

davidkna
Copy link
Contributor

I was getting some errors while testing this, but I'm pretty sure that was unrelated to my changes.

Closes #98436

Basically, instead of // known-bug, do // known-bug #00000 or maybe // known-bug chalk#00?

From: https://rust-lang.zulipchat.com/#narrow/stream/326866-t-types.2Fnominated/topic/.2398095.3A.20NLL.3A.20unsound.20verification.20of.20higher.20ranked.20outlives.E2.80.A6/near/287258738

I also added an unknown escape-hatch because I didn't find corresponding issues for every // known-bug.

The syntax also ended up being // known-bug: , because of set_name_value_directive.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 26, 2022
@rust-highfive
Copy link
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 26, 2022
@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 26, 2022
@Mark-Simulacrum
Copy link
Member

r=me with commits squashed

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 26, 2022
@davidkna davidkna force-pushed the known-bug-ref branch 2 times, most recently from acd519d to 71bdbc5 Compare June 26, 2022 21:01
@davidkna
Copy link
Contributor Author

Not sure what happened with git here, but I hope this fixed it.

@@ -1,5 +1,5 @@
// check-fail
// known-bug
// known-bug: #87735, #88526
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I didn't notice this before. This is outside the "intended" syntax we're validating; if we want to accept it, I think we should do so intentionally -- and probably update our parser to validate the prefix before # as well (no whitespace?).

Copy link
Contributor Author

@davidkna davidkna Jun 26, 2022

Choose a reason for hiding this comment

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

I've updated the parser. I wasn't able to compile the tests, but it seems to work as expected in the rust playground.

@Mark-Simulacrum
Copy link
Member

@bors r+

Thanks, I think this is OK for now, the validation isn't too critical anyway.

@bors
Copy link
Collaborator

bors commented Jun 26, 2022

📌 Commit 93d3359 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 26, 2022
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jun 26, 2022
…lacrum

compiletest: add issue number param to `known-bug`

I was getting some errors while testing this, but I'm pretty sure that was unrelated to my changes.

Closes rust-lang#98436

> Basically, instead of `// known-bug`, do `// known-bug #00000` or maybe `// known-bug chalk#00`?
>
> From: https://rust-lang.zulipchat.com/#narrow/stream/326866-t-types.2Fnominated/topic/.2398095.3A.20NLL.3A.20unsound.20verification.20of.20higher.20ranked.20outlives.E2.80.A6/near/287258738

I also added an `unknown` escape-hatch because I didn't find corresponding issues for every `// known-bug`.

The syntax also ended up being `// known-bug: `, because of `set_name_value_directive`.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 27, 2022
…askrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#97389 (Improve memory ordering diagnostics)
 - rust-lang#97780 (Check ADT field is well-formed before checking it is sized)
 - rust-lang#98530 (compiletest: add issue number param to `known-bug`)
 - rust-lang#98556 (Fix builds on Windows (closes rust-lang#98546))
 - rust-lang#98561 (Fix spelling in SAFETY comment)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 13e4f87 into rust-lang:master Jun 27, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jun 27, 2022
@davidkna davidkna deleted the known-bug-ref branch June 27, 2022 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiletest: known-bug should take an issue number
5 participants