Announcing Rust 1.29
blog.rust-lang.org
blog.rust-lang.org
cargo doc --document-private-items
This is going to be excellent. I often find in Rust, more than other languages, that the documentation really helps fill a mental gap around the types that you expect a type to implement, vs. what it actually implements. The compiler always catches this, but the docs are also a great way of discovering this.It's going to be a huge help when working on internal interfaces in a library. cargo doc is such an excellent tool, and while the UI took a minute to learn when I first used it, it's really an amazingly helpful tool, and feels more integrated than similar tools in other languages.
There is something wrong with the line spacing. It's so narrow that it's hiding the underscore in one of the code examples:
https://screenshots.firefox.com/PYoTEXQwowBJoG30/blog.rust-l...
Firefox 62 on Linux (Ubuntu 16.04)
https://github.com/rust-lang/rust/issues/50547 is the tracking issue.
Errors are a bit more challenging, because fixing an error may introduce more, new errors, making it harder to tell if applying the fix is correct or not.
> I think in theory we could fix errors too, because they have the same diagnostics format. Don't think we do that right now though, and we are probably not prepared to handle the compiler exiting with a non-zero code
So yeah, seems like that's the issue.