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

[Feature Request][compiler-v2] Dead code analysis #11147

Closed
sausagee opened this issue Dec 1, 2023 · 3 comments
Closed

[Feature Request][compiler-v2] Dead code analysis #11147

sausagee opened this issue Dec 1, 2023 · 3 comments
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@sausagee
Copy link
Contributor

sausagee commented Dec 1, 2023

Identify dead code and produce errors for it. Also identify unused types, functions, variables and fields

@sausagee sausagee converted this from a draft issue Dec 1, 2023
@sausagee sausagee added compiler-v2 stale-exempt Prevents issues from being automatically marked and closed as stale enhancement New feature or request labels Dec 1, 2023
@sausagee sausagee moved this from 📋 Backlog to For Grabs in Move Language and Runtime Dec 7, 2023
@vineethk vineethk self-assigned this Dec 19, 2023
@vineethk vineethk moved this from For Grabs to Assigned in Move Language and Runtime Dec 19, 2023
@vineethk vineethk moved this from Assigned to 🏗 In progress in Move Language and Runtime Jan 4, 2024
@vineethk vineethk moved this from 🏗 In progress to Assigned in Move Language and Runtime Jan 4, 2024
@wrwg
Copy link
Contributor

wrwg commented Jan 11, 2024

Includes detecting unreachable code. Includes unused variables which are not starting with _.

@wrwg wrwg moved this from Assigned to For Grabs in Move Language and Runtime Jan 11, 2024
@vineethk
Copy link
Contributor

To add a bit more structure, here is a list of various warnings that need to be implemented in v2:

  • unused assignment
  • dead or unreachable code
  • unused type parameter
  • unused attribute
  • unused parameter
  • unused local
  • unnecessary trailing semicolon
  • invalid use of divergent expression

The plan is to break these down into smaller pieces and tackle them.

@github-project-automation github-project-automation bot moved this from For Grabs to ✅ Done in Move Language and Runtime Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: Done
Development

No branches or pull requests

3 participants