-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Don't convert valtree to constvalue during normalization #102137
Conversation
@@ -353,18 +353,8 @@ impl<'cx, 'tcx> FallibleTypeFolder<'tcx> for QueryNormalizer<'cx, 'tcx> { | |||
) -> Result<mir::ConstantKind<'tcx>, Self::Error> { | |||
Ok(match constant { | |||
mir::ConstantKind::Ty(c) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that's just the default impl, isn't it? 😁
don't think you have to overwrite this method at all now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh actually it isnt ^^: https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_middle/ty/fold.rs.html#193
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, then just c.try_super_fold_with
without the match i guess 😁
6004465
to
44bec45
Compare
44bec45
to
a9e657d
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
with acceptable perf, r=me @bors delegate+ |
⌛ Trying commit a9e657d with merge b059e0b03e4ae83abad1f5af13263e9fd8bdb23d... |
✌️ @b-naber can now approve this pull request |
☀️ Try build successful - checks-actions |
Queued b059e0b03e4ae83abad1f5af13263e9fd8bdb23d with parent c10f7d7, future comparison URL. |
Finished benchmarking commit (b059e0b03e4ae83abad1f5af13263e9fd8bdb23d): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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. Footnotes |
This comment has been minimized.
This comment has been minimized.
@bors r+ rollup=always |
… r=lcnr Don't convert valtree to constvalue during normalization r? `@lcnr`
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#102094 (Add missing documentation for `bool::from_str`) - rust-lang#102115 (Add examples to `bool::then` and `bool::then_some`) - rust-lang#102134 (Detect panic strategy using `rustc --print cfg`) - rust-lang#102137 (Don't convert valtree to constvalue during normalization) - rust-lang#102148 (add regression test for miri issue 2433) - rust-lang#102158 (rustdoc: clean up CSS/DOM for deprecation warnings) - rust-lang#102177 (Fix a typo in `std`'s root docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#102094 (Add missing documentation for `bool::from_str`) - rust-lang#102115 (Add examples to `bool::then` and `bool::then_some`) - rust-lang#102134 (Detect panic strategy using `rustc --print cfg`) - rust-lang#102137 (Don't convert valtree to constvalue during normalization) - rust-lang#102148 (add regression test for miri issue 2433) - rust-lang#102158 (rustdoc: clean up CSS/DOM for deprecation warnings) - rust-lang#102177 (Fix a typo in `std`'s root docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#102094 (Add missing documentation for `bool::from_str`) - rust-lang#102115 (Add examples to `bool::then` and `bool::then_some`) - rust-lang#102134 (Detect panic strategy using `rustc --print cfg`) - rust-lang#102137 (Don't convert valtree to constvalue during normalization) - rust-lang#102148 (add regression test for miri issue 2433) - rust-lang#102158 (rustdoc: clean up CSS/DOM for deprecation warnings) - rust-lang#102177 (Fix a typo in `std`'s root docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @lcnr