-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add ?clippy command #74
Comments
Are the other playground feature (Rusfmt, Miri, Expand macros) desirable as separate commands as well? |
So, expand macros would be awesome. The rest im not convinced are worth doing. |
A question Some ideas
1 is a bit clunky but functioning, 2 is a bit magic but pleasant to use, 3 is unfortunate because for Another question #![feature(prelude_import)]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
fn main() {
{
::std::io::_print(::core::fmt::Arguments::new_v1(&["Hello world\n"],
&match () {
() => [],
}));
};
} To avoid the second network request wait (playground is kinda sluggish), rustfmt could be executed locally I think. The computation expense is negligible, though I haven't checked if rustfmt has code execution vulnerabilities or anything like that- |
Re formatting expansions, I would say sure, but we would need to look to make sure local code execution isn't a problem. |
I understand that. I was merely making a comparison to ?play/?eval, asking if the clippy and expand commands should have a similar distinction of evaluation vs plain executing.
Yeah, as said above, I have the same concerns. |
The distinction between |
play.rust-lang.org
supports running code through clippy. Add this support to the bot so users can run code from discord through clippy.The text was updated successfully, but these errors were encountered: