Skip to content

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Mar 28, 2024

Instead of just saying “this function's stack frame is big”, report:

  • the (presumed) size of the frame
  • the size and type of the largest local contributing to that size
  • the configurable limit that was exceeded (once)

Known issues:

  • The lint may report an over-estimate because codegen may be able to overlap some of these locals. However, that already affected whether the lint fired at all; I believe this change is still an improvement because it gives the user much more actionable information about why the lint fired.
  • Please tell me a better way to determine whether a local has a variable name.

changelog: [large_stack_frames]: print total size and largest component.

Instead of just saying “this function's stack frame is big”, report:

* the (presumed) size of the frame
* the size and type of the largest local contributing to that size
* the configurable limit that was exceeded (once)
@rustbot
Copy link
Collaborator

rustbot commented Mar 28, 2024

r? @Manishearth

rustbot has assigned @Manishearth.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 28, 2024
@@ -1,3 +1,5 @@
//@ normalize-stderr-test: "\b10000(08|16|32)\b" -> "100$$PTR"
Copy link
Member

Choose a reason for hiding this comment

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

praise: good idea

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Mar 29, 2024

📌 Commit 0164645 has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Mar 29, 2024

⌛ Testing commit 0164645 with merge 97ba291...

@bors
Copy link
Contributor

bors commented Mar 29, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 97ba291 to master...

@bors bors merged commit 97ba291 into rust-lang:master Mar 29, 2024
@kpreid kpreid deleted the stacksize branch March 30, 2024 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants