Skip to content
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

Fix links in std:: and extra:: documentation #9424

Closed
wants to merge 3 commits into from

Conversation

bytbox
Copy link
Contributor

@bytbox bytbox commented Sep 23, 2013

Markdown does not recognize links that don't use link syntax (either brackets+parens or angular brackets). All links in doc comments are fixed in these commits.

@alexcrichton
Copy link
Member

This is such a common occurrence that I would rather fix this at the source. Pandoc has an extension called autolink_bare_uris which doesn't require the brackets or parens, which I believe that we should use instead. Thanks for bringing this problem to light though!

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 23, 2013
@bytbox in rust-lang#9424 found out that http://foo.com wasn't rendered as a link in
pandoc by default. This extension to pandoc enables the auto-linking behaviour,
however.
@bytbox
Copy link
Contributor Author

bytbox commented Sep 23, 2013

Ok; sounds good.

Where possible, would we rather have link text instead of a bare URI-link preceded by "see"? I.e., is 6c7bbd a good type of change to make?

@alexcrichton
Copy link
Member

I don't really mind either way, I'm fine with stylistically preferring "See" in front, while not requiring it.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 9, 2022
Fix `unnecessary_to_owned` false positive

Fixes rust-lang#9351.

Note that this commit reworks that fix for rust-lang#9317. The change
is to check that the type implements `AsRef<str>` before regarding
`to_string` as an equivalent of `to_owned`. This was suggested
by Jarcho in the rust-lang#9317 issue comments.

The benefit of this is that it moves some complexity out of
`check_other_call_arg` and simplifies the module as a whole.

changelog: FP: [`unnecessary_to_owned`]: No longer lints, if type change would cause errors in the caller function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants