Use https URLs to refer to rust-lang.org where appropriate.
Also fixes a few outdated links.
This commit is contained in:
parent
febdc3b201
commit
bbbfed2f93
57 changed files with 185 additions and 206 deletions
|
@ -115,7 +115,7 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt,
|
|||
}
|
||||
|
||||
// URLs can be unavoidably longer than the line limit, so we allow them.
|
||||
// Allowed format is: `[name]: http://rust-lang.org/`
|
||||
// Allowed format is: `[name]: https://www.rust-lang.org/`
|
||||
let is_url = |l: &str| l.starts_with('[') && l.contains("]:") && l.contains("http");
|
||||
|
||||
if msg.lines().any(|line| line.len() > MAX_DESCRIPTION_WIDTH && !is_url(line)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue