-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
desugar_doc_comments
cleanups
#114081
desugar_doc_comments
cleanups
#114081
Conversation
It's currently stored twice: once in `Parser`, once in the `TokenStream` within `Parser`. We only need the latter.
It doesn't really matter what the `desugar_doc_comments` argument is here, because in practice we never look ahead through doc comments. Changing it to `cursor.desugar_doc_comments` will allow some follow-up simplifications.
…}next`. Because it's now always `self.desugar_doc_comments`.
Useful information that took me some time to discern.
Best reviewed one commit at a time. Local measurements suggest some tiny instruction count wins, let's double check on CI: |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 34b218e with merge 4f6c0a8e42fced09d45fabcde7b8bfb351e7eebe... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
r=me after perf run completes. |
Finished benchmarking commit (4f6c0a8e42fced09d45fabcde7b8bfb351e7eebe): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 650.255s -> 648.846s (-0.22%) |
Perf effects are negligible on CI, and this makes the code nicer. @bors r=petrochenkov rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#113872 (Tweak CGU sorting in a couple of places.) - rust-lang#114053 (CI: fix CMake installation for 32/64 bit `dist` Linux) - rust-lang#114075 (inline format!() args from rustc_codegen_llvm to the end (4)) - rust-lang#114081 (`desugar_doc_comments` cleanups) - rust-lang#114082 (add stable NullaryOp) - rust-lang#114098 (replace atty crate with std's IsTerminal) - rust-lang#114102 (Dont pass `-Zwrite-long-types-to-disk=no` for `ui-fulldeps --stage=1`) r? `@ghost` `@rustbot` modify labels: rollup
r? @petrochenkov