Skip to content

Commit 4a4846a

Browse files
committed
Auto merge of rust-lang#86586 - Smittyvb:https-everywhere, r=petrochenkov
Use HTTPS links where possible While looking at rust-lang#86583, I wondered how many other (insecure) HTTP links were in `rustc`. This changes most other `http` links to `https`. While most of the links are in comments or documentation, there are a few other HTTP links that are used by CI that are changed to HTTPS. Notes: - I didn't change any to or in licences - Some links don't support HTTPS :( - Some `http` links were dead, in those cases I upgraded them to their new places (all of which used HTTPS)
2 parents e10044d + d8b0501 commit 4a4846a

File tree

27 files changed

+47
-47
lines changed

27 files changed

+47
-47
lines changed

alloc/src/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ where
10421042
}
10431043

10441044
/// This merge sort borrows some (but not all) ideas from TimSort, which is described in detail
1045-
/// [here](http://svn.python.org/projects/python/trunk/Objects/listsort.txt).
1045+
/// [here](https://github.com/python/cpython/blob/main/Objects/listsort.txt).
10461046
///
10471047
/// The algorithm identifies strictly descending and non-descending subsequences, which are called
10481048
/// natural runs. There is a stack of pending runs yet to be merged. Each newly found run is pushed

alloc/src/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ impl str {
396396
return s;
397397

398398
fn map_uppercase_sigma(from: &str, i: usize, to: &mut String) {
399-
// See http://www.unicode.org/versions/Unicode7.0.0/ch03.pdf#G33992
399+
// See https://www.unicode.org/versions/Unicode7.0.0/ch03.pdf#G33992
400400
// for the definition of `Final_Sigma`.
401401
debug_assert!('Σ'.len_utf8() == 2);
402402
let is_word_final = case_ignoreable_then_cased(from[..i].chars().rev())

core/benches/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn bench_max_by_key(b: &mut Bencher) {
4545
})
4646
}
4747

48-
// http://www.reddit.com/r/rust/comments/31syce/using_iterators_to_find_the_index_of_the_min_or/
48+
// https://www.reddit.com/r/rust/comments/31syce/using_iterators_to_find_the_index_of_the_min_or/
4949
#[bench]
5050
fn bench_max_by_key2(b: &mut Bencher) {
5151
fn max_index_iter(array: &[i32]) -> usize {

core/src/char/methods.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ impl char {
1515
/// Point], but only ones within a certain range. `MAX` is the highest valid
1616
/// code point that's a valid [Unicode Scalar Value].
1717
///
18-
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
19-
/// [Code Point]: http://www.unicode.org/glossary/#code_point
18+
/// [Unicode Scalar Value]: https://www.unicode.org/glossary/#unicode_scalar_value
19+
/// [Code Point]: https://www.unicode.org/glossary/#code_point
2020
#[stable(feature = "assoc_char_consts", since = "1.52.0")]
2121
pub const MAX: char = '\u{10ffff}';
2222

@@ -28,7 +28,7 @@ impl char {
2828
#[stable(feature = "assoc_char_consts", since = "1.52.0")]
2929
pub const REPLACEMENT_CHARACTER: char = '\u{FFFD}';
3030

31-
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
31+
/// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
3232
/// `char` and `str` methods are based on.
3333
///
3434
/// New versions of Unicode are released regularly and subsequently all methods
@@ -1494,8 +1494,8 @@ impl char {
14941494
/// before using this function.
14951495
///
14961496
/// [infra-aw]: https://infra.spec.whatwg.org/#ascii-whitespace
1497-
/// [pct]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_01
1498-
/// [bfs]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05
1497+
/// [pct]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_01
1498+
/// [bfs]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05
14991499
///
15001500
/// # Examples
15011501
///

core/src/char/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//! scalar value]', which is similar to, but not the same as, a '[Unicode code
66
//! point]'.
77
//!
8-
//! [Unicode scalar value]: http://www.unicode.org/glossary/#unicode_scalar_value
9-
//! [Unicode code point]: http://www.unicode.org/glossary/#code_point
8+
//! [Unicode scalar value]: https://www.unicode.org/glossary/#unicode_scalar_value
9+
//! [Unicode code point]: https://www.unicode.org/glossary/#code_point
1010
//!
1111
//! This module exists for technical reasons, the primary documentation for
1212
//! `char` is directly on [the `char` primitive type][char] itself.
@@ -95,8 +95,8 @@ const MAX_THREE_B: u32 = 0x10000;
9595
/// Point], but only ones within a certain range. `MAX` is the highest valid
9696
/// code point that's a valid [Unicode Scalar Value].
9797
///
98-
/// [Unicode Scalar Value]: http://www.unicode.org/glossary/#unicode_scalar_value
99-
/// [Code Point]: http://www.unicode.org/glossary/#code_point
98+
/// [Unicode Scalar Value]: https://www.unicode.org/glossary/#unicode_scalar_value
99+
/// [Code Point]: https://www.unicode.org/glossary/#code_point
100100
#[stable(feature = "rust1", since = "1.0.0")]
101101
pub const MAX: char = char::MAX;
102102

core/src/convert/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl_from! { i16, isize, #[stable(feature = "lossless_iusize_conv", since = "1.2
145145

146146
// CHERI proposes 256-bit “capabilities”. Unclear if this would be relevant to usize/isize.
147147
// https://www.cl.cam.ac.uk/research/security/ctsrd/pdfs/20171017a-cheri-poster.pdf
148-
// http://www.csl.sri.com/users/neumann/2012resolve-cheri.pdf
148+
// https://www.csl.sri.com/users/neumann/2012resolve-cheri.pdf
149149

150150
// Note: integers can only be represented with full precision in a float if
151151
// they fit in the significand, which is 24 bits in f32 and 53 bits in f64.

core/src/intrinsics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
//! across other volatile intrinsics. See the LLVM documentation on
2626
//! [[volatile]].
2727
//!
28-
//! [volatile]: http://llvm.org/docs/LangRef.html#volatile-memory-accesses
28+
//! [volatile]: https://llvm.org/docs/LangRef.html#volatile-memory-accesses
2929
//!
3030
//! # Atomics
3131
//!
3232
//! The atomic intrinsics provide common atomic operations on machine
3333
//! words, with multiple possible memory orderings. They obey the same
3434
//! semantics as C++11. See the LLVM documentation on [[atomics]].
3535
//!
36-
//! [atomics]: http://llvm.org/docs/Atomics.html
36+
//! [atomics]: https://llvm.org/docs/Atomics.html
3737
//!
3838
//! A quick refresher on memory ordering:
3939
//!

core/src/num/dec2flt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//!
3434
//! Primarily, this module and its children implement the algorithms described in:
3535
//! "How to Read Floating Point Numbers Accurately" by William D. Clinger,
36-
//! available online: <http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152>
36+
//! available online: <https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152>
3737
//!
3838
//! In addition, there are numerous helper functions that are used in the paper but not available
3939
//! in Rust (or at least in core). Our version is additionally complicated by the need to handle

core/src/num/flt2dec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ the supplied buffer and let the algorithm to return.
4949
# Implementation overview
5050
5151
It is easy to get the floating point printing correct but slow (Russ Cox has
52-
[demonstrated](http://research.swtch.com/ftoa) how it's easy), or incorrect but
52+
[demonstrated](https://research.swtch.com/ftoa) how it's easy), or incorrect but
5353
fast (naïve division and modulo). But it is surprisingly hard to print
5454
floating point numbers correctly *and* efficiently.
5555

core/src/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ impl u8 {
590590
/// before using this function.
591591
///
592592
/// [infra-aw]: https://infra.spec.whatwg.org/#ascii-whitespace
593-
/// [pct]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_01
594-
/// [bfs]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05
593+
/// [pct]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_01
594+
/// [bfs]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05
595595
///
596596
/// # Examples
597597
///

0 commit comments

Comments
 (0)