-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Wrong link to rust book in note #54555
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
Comments
The second edition is frozen, and so that link will no longer change.
…On Tue, Sep 25, 2018 at 9:34 AM Marcel Hellwig ***@***.***> wrote:
fn main() {
let a: str;
}
(Playground
<https://play.rust-lang.org/?gist=eb9ebc74259b45a88d8b12ece4bcc023&version=stable&mode=debug&edition=2015>
)
Errors:
Compiling playground v0.0.1 (file:///playground)
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> src/main.rs:2:9
|
2 | let a: str;
| ^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized>
= note: all local variables must have a statically known size
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
The note contains a wrong link
[...]/ch19-04-advanced-types.html#dynamically-sized-types-and-sized
vs
[...]/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait
As easy as this fix could be, I grepped for the error and found ~120
occurences, most of them in the tests of course.
While I want to solve this, I ask myself, if the best strategy is a simple
sed or is there a better and not so error-prone approach? If one link
changes in the future, all of this has to be done again. I don't think that
that is a good solution :(
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#54555>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABsigCyJtLjIhBOzoGdM3-LM0NNzG7cks5uejDVgaJpZM4W4ouP>
.
|
For this specific case, just fixing it with |
I'm a little confused. This should have been fixed in #53082, unless you are referring to an older version of rustc? |
@ehuss thanks for the hint. It is not in stable rust, but in beta (and nightly). |
If it's already fixed, there's no reason keeping the issue open. |
(Playground)
Errors:
The note contains a wrong link
vs
As easy as this fix could be, I grepped for the error and found ~120 occurences, most of them in the tests of course.
While I want to solve this, I ask myself, if the best strategy is a simple
sed
or is there a better and not so error-prone approach? If one link changes in the future, all of this has to be done again. I don't think that that is a good solution :(The text was updated successfully, but these errors were encountered: