-
Couldn't load subscription status.
- Fork 557
Open
Labels
Authoring guideIssues for the authoring guide and style guidelinesIssues for the authoring guide and style guidelinesMetaNon-content issues (procedure, tooling, website, etc.)Non-content issues (procedure, tooling, website, etc.)
Description
I think the authoring guide should have some guidelines for when, why, and how to refer to tools and implementations. In particular, things like rustc, clippy, cargo, rustfmt, miri, etc. The Reference occasionally refers to these things when it seems like that information would provide very helpful context, but there's a certain balance of doing that too little or too much. What are the guidelines for that balance?
There is a slightly different issue in #2040 for implementation-specific guidelines.
Some examples from the Reference:
rustccurrently only allows theclippyandrustfmttool attributes. It has not yet been decided if the tool attribute space should be extensible (and if so, how).- The
featureattribute links to the Unstable book. - The description of user extensible
cfgvalues mentions the way to do that is viarustc --cfg. - The
testcfg is set viarustc --test. - Identifiers that start with an underscore are a convention to silence an unused warning in
rustc. - The dynamic and static C-runtime mentions
rustc -C target-feature=+crt-static - A note about the hazards of using
#[inline]and the relationship to howrustcworks. - How target-features and target-cpu's are related via
rustcoptions. - Note about how you can find the available lints in the lint attribute docs.
- Note about what
#[deprecated]does inrustc. - Defaults for
recursion_limitandtype_length_limit. - Mentions of certain hazards, like overflowing literals will generate a warning by
rustc. - Lots of documentation related to
#[link]needs to cross-link with therustcdocs. - The behavior of unwinding across nounwind abi uses an illegal instruction in
rustc. - An explanation of the requirement to use
extern alloc;due to the way things work. - How to write a proc-macro with Cargo.
- Note about security concerns of proc-macros.
- Source files discuss filesystems specifically, but in theory there could be other ways that source is loaded. How
rustc-specific is that?
Metadata
Metadata
Assignees
Labels
Authoring guideIssues for the authoring guide and style guidelinesIssues for the authoring guide and style guidelinesMetaNon-content issues (procedure, tooling, website, etc.)Non-content issues (procedure, tooling, website, etc.)