Skip to content

rusti: disable unused variable warnings #4266

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

Closed
kud1ing opened this issue Dec 23, 2012 · 2 comments
Closed

rusti: disable unused variable warnings #4266

kud1ing opened this issue Dec 23, 2012 · 2 comments

Comments

@kud1ing
Copy link

kud1ing commented Dec 23, 2012

Say, you're prototyping some code or doing some quick calculations, those warnings are not helpful:

rusti> let x = 42;
<anon>:35:4: 35:7 warning: unused variable: `x`
<anon>:35 let x = 42;
              ^~~
()
rusti> let y = x + 42;
<anon>:37:4: 37:7 warning: unused variable: `y`
<anon>:37 let y = x + 42;
              ^~~
()
rusti> y
84
@infynyxx
Copy link

+1

@catamorphism
Copy link
Contributor

#3266 will allow unused variable warnings to be disabled or enabled with attributes, as desired.

RalfJung added a commit to RalfJung/rust that referenced this issue Apr 14, 2025
run all 'thread' tests on FreeBSD, and also on 32bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants