-
Notifications
You must be signed in to change notification settings - Fork 831
Remove no_run #1430
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
Remove no_run #1430
Conversation
`no_run` is not needed since we already mark this up as `bash` which rustc doesn't run when running examples. While the keyword `bash` is not currently supported it may well be in the future and since only the `rust` keyword causes code to run any other string is effectively a wildcard, `no_run` is therefore meaningful only as a convention. Lets keep `bash` in case support is added later on.
Note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 13d94cb
EDIT: Updated to the correct rules for later readers I tried a bunch of combinations and came up with the surprising rule set:
|
Also the difference between |
I did not check HTML for all the combinations :) |
Oh, |
You seem to be doing something wrong: /// ```no_run
/// syntax error
/// assert_eq!(2 + 2, 5);
/// ```
pub struct Foo;
|
Also, I misremembered, there's no |
Oh damn, I was "breaking" the code with |
Will fix my rules list later, got to run now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 13d94cb
ACK 13d94cb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 13d94cb
no_run
is not needed since we already mark this up asbash
which rustc doesn't run when running examples.While the keyword
bash
is not currently supported it may well be in the future and since only therust
keyword causes code to run any other string is effectively a wildcard,no_run
is therefore meaningful only as a convention. Lets keepbash
in case support is added later on.cc sr-gi