Uh oh!
There was an error while loading. Please reload this page.
Use FnSig instead of raw FnDecl for ForeignItemKind::Fn, fix ICE for Fn trait error on safe foreign fn - #128792
Conversation
compiler-errors
commented
Aug 7, 2024
The only thing I'm concerned about here is the increased size of hir nodes -- but it may not matter since we're arena allocating things anyways. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 7, 2024
Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixesrust-lang#128764
This comment has been minimized.
This comment has been minimized.
compiler-errors
commented
Aug 7, 2024
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixesrust-lang#128764
bors
commented
Aug 7, 2024
spastorino
commented
Aug 7, 2024
reviewed r=me if perf is good. |
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 7, 2024
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rust-timer
commented
Aug 8, 2024
Finished benchmarking commit (9d52643): 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)Results (secondary 2.8%)This 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.
CyclesResults (secondary -1.3%)This 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 760.558s -> 760.505s (-0.01%) |
180b795 to
2be5599Comparecompiler-errors
commented
Aug 8, 2024
@bors r=spastorino |
bors
commented
Aug 8, 2024
…orino Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixesrust-lang#128764
bors
commented
Aug 8, 2024
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 8, 2024
💔 Test failed - checks-actions |
bors
commented
Aug 12, 2024
…orino Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixesrust-lang#128764
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 12, 2024
💔 Test failed - checks-actions |
compiler-errors
commented
Aug 12, 2024
@bors retry |
…orino Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixesrust-lang#128764
bors
commented
Aug 12, 2024
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 12, 2024
💔 Test failed - checks-actions |
5635a39 to
84633f4Comparecompiler-errors
commented
Aug 17, 2024
@bors r=spastorino |
bors
commented
Aug 17, 2024
bors
commented
Aug 17, 2024
bors
commented
Aug 17, 2024
☀️ Test successful - checks-actions |
rust-timer
commented
Aug 17, 2024
Finished benchmarking commit (feeba19): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression 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)Results (secondary -3.3%)This 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.
CyclesResults (secondary 2.0%)This 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 750.326s -> 749.471s (-0.11%) |
Let's use
hir::FnSiginstead ofhir::FnDecl + hir::SafetyforForeignItemKind::Fn. This consolidates some handling code between normal fns and foreign fns.Separetly, fix an ICE where we weren't handling
Fntrait errors for safe foreign fns.If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍
r? spastorino
Fixes#128764