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

"X sets SpacemanDMM_should_be_pure but calls a Y that does impure operations" happens when changing proc argument variables #382

Open
mc-oofert opened this issue Jan 4, 2024 · 2 comments

Comments

@mc-oofert
Copy link
Contributor

https://github.com/tgstation/tgstation/actions/runs/7408501187/job/20156828882
image
this is where the linter marks an issue
image
here is marked the impurity, where gravity_turf (proc arg) is changed
image

potato says the issue is failing to treat proc arguments as local to the proc
i do not know what else to add to this

@Ghommie
Copy link

Ghommie commented Jan 4, 2024

PR where this happened: tgstation/tgstation#80790

@SpaceManiac
Copy link
Owner

Hmm, it seems to have originally been intentional:

analysis.is_impure = Some(true); // all params are impure

It'll take some investigation to be sure that changing this doesn't have side-effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants