Skip to content
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

Rustdoc search: Emit an error for unclosed generic #108656

Merged

Conversation

GuillaumeGomez
Copy link
Member

Now, search like a< will error as it should (and as written in the eBNF).

r? @notriddle

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Mar 2, 2023
@rustbot
Copy link
Collaborator

rustbot commented Mar 2, 2023

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@notriddle
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 3, 2023

📌 Commit 892d73d has been approved by notriddle

It is now in the queue for this repository.

@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-review Status: Awaiting review from the assignee but also interested parties. labels Mar 3, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 3, 2023
…osed-generic, r=notriddle

Rustdoc search: Emit an error for unclosed generic

Now, search like `a<` will error as it should (and as written in the eBNF).

r? `@notriddle`
@matthiaskrgr
Copy link
Member

Hmm might have failed in a rollup, but I'm not seeing how tbh

 Testing filter-crate.js ... OK
Testing fn-forget.js ... OK
Testing from_u.js ... OK
Testing keyword.js ... OK
Testing macro-check.js ... OK
Testing macro-print.js ... OK
Testing never.js ... OK
/checkout/src/tools/rustdoc-js/tester.js:143
                result_v.forEach((value, index) => {
                         ^

TypeError: result_v.forEach is not a function
    at valueCheck (/checkout/src/tools/rustdoc-js/tester.js:143:26)
    at runParser (/checkout/src/tools/rustdoc-js/tester.js:170:9)
    at /checkout/src/tools/rustdoc-js/tester.js:306:20
    at runCheck (/checkout/src/tools/rustdoc-js/tester.js:256:30)
    at runChecks (/checkout/src/tools/rustdoc-js/tester.js:305:16)
    at /checkout/src/tools/rustdoc-js/tester.js:426:23
    at Array.forEach (<anonymous>)
    at main (/checkout/src/tools/rustdoc-js/tester.js:421:45)
    at Object.<anonymous> (/checkout/src/tools/rustdoc-js/tester.js:433:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
Testing parser-errors.js ... Build completed unsuccessfully in 0:27:51

https://github.com/rust-lang-ci/rust/actions/runs/4326491891/jobs/7553984409#step:26:36168

please just disregard and rer+ if its spurious or I'm wrong 🙈

@bors r-

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 3, 2023
@GuillaumeGomez
Copy link
Member Author

No, it's definitely linked. I'll check if it's because of a missing rebase or another PR in the rollup.

@GuillaumeGomez GuillaumeGomez force-pushed the rustdoc-search-unclosed-generic branch from 892d73d to 8236715 Compare March 3, 2023 19:49
@GuillaumeGomez
Copy link
Member Author

It was a missing rebase.

@notriddle
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 3, 2023

📌 Commit 8236715 has been approved by notriddle

It is now in the queue for this repository.

@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 Mar 3, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 4, 2023
Rollup of 6 pull requests

Successful merges:

 - rust-lang#108298 (Fix ICE: check if snippet is `)`)
 - rust-lang#108405 (Lazily compute crate name for consider_optimizing)
 - rust-lang#108656 (Rustdoc search: Emit an error for unclosed generic)
 - rust-lang#108660 (Remove ne implementations from strings)
 - rust-lang#108669 (Allow checking whether a type allows being uninitialized)
 - rust-lang#108727 (rustc_expand: make proc-macro derive error translatable)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2fc4935 into rust-lang:master Mar 4, 2023
@rustbot rustbot added this to the 1.69.0 milestone Mar 4, 2023
@GuillaumeGomez GuillaumeGomez deleted the rustdoc-search-unclosed-generic branch March 4, 2023 15:39
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-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants