1
Fork 0

Use https URLs to refer to rust-lang.org where appropriate.

Also fixes a few outdated links.
This commit is contained in:
Eli Friedman 2015-08-09 14:15:05 -07:00
parent febdc3b201
commit bbbfed2f93
57 changed files with 185 additions and 206 deletions

View file

@ -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)) {