Uh oh!
There was an error while loading. Please reload this page.
Don't show const in docs when it's not available - #31329
Conversation
rust-highfive
commented
Jan 31, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
alexcrichton
commented
Jan 31, 2016
Does this break rendering other parts like |
quodlibetor
commented
Feb 1, 2016
It might, although I can't find it in Originally when I implemented this I added const filtering to the "build function or method" fns, but that required lying about the constness in the struct. If filtering in the render helper doesn't work out do you have an opinion on what I should do? It's not really lying about the constness of an object if it can't be made const in stable, is it? |
alexcrichton
commented
Feb 1, 2016
After checking it looks like this is indeed only used for Also can this use the |
ConstnessSpace has no knowledge of the type of item it's modifying, so hide the constness a level up.
quodlibetor
commented
Feb 1, 2016
Sort of like so? |
alexcrichton
commented
Feb 1, 2016
quodlibetor
commented
Feb 1, 2016
Awesome! First rust PR :) |
… r=alexcrichton Fixesrust-lang#31098 AFAICT this is the only place where rustdoc explicitly checks if we are on stable before emitting content, so I can't tell if this is the sane way to handle this, or if anything else should be done to make sure that nobody forgets to remove this check when `const` is stabilized.
Fixes#31098
AFAICT this is the only place where rustdoc explicitly checks if we are on stable before emitting content, so I can't tell if this is the sane way to handle this, or if anything else should be done to make sure that nobody forgets to remove this check when
constis stabilized.