Skip to content

Commit f564c4d

Browse files
committed
Auto merge of #67605 - lzutao:msdn-links, r=Mark-Simulacrum
tidy: change msdn links to newer locations see accouncement at https://docs.microsoft.com/welcome-to-docs The script that I used: https://gist.github.com/lzutao/1449c9210ad91899841d62e0058d2caa
2 parents 8b4d22c + 3a2ef17 commit f564c4d

File tree

15 files changed

+30
-30
lines changed

15 files changed

+30
-30
lines changed

src/etc/installer/msi/rust.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<Property Id="ARPPRODUCTICON" Value="rust.ico" />
8686
<Property Id="ARPURLINFOABOUT" Value="https://www.rust-lang.org/" />
8787
<Property Id="ARPCOMMENTS" Value="$(env.CFG_RELEASE_INFO)" />
88-
<!-- This is a dual-mode package. http://msdn.microsoft.com/en-us/library/windows/desktop/dd408068.aspx -->
88+
<!-- This is a dual-mode package. https://docs.microsoft.com/en-us/windows/win32/msi/single-package-authoring -->
8989
<Property Id="ALLUSERS" Value="2" Secure="yes" />
9090
<Property Id="MSIINSTALLPERUSER" Secure="yes" />
9191
<!-- The actual install location (initialized below) -->

src/libpanic_unwind/seh.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! are then recovered in the filter function to be written to the stack frame
4242
//! of the `try` intrinsic.
4343
//!
44-
//! [win64]: http://msdn.microsoft.com/en-us/library/1eyas8tf.aspx
44+
//! [win64]: https://docs.microsoft.com/en-us/cpp/build/exception-handling-x64
4545
//! [llvm]: http://llvm.org/docs/ExceptionHandling.html#background-on-windows-exceptions
4646
4747
#![allow(nonstandard_style)]

src/librustc_codegen_llvm/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn metadata_section_name(target: &Target) -> &'static str {
9797
// > Executable images do not use a string table and do not support
9898
// > section names longer than 8 characters
9999
//
100-
// https://msdn.microsoft.com/en-us/library/windows/hardware/gg463119.aspx
100+
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
101101
//
102102
// As a result, we choose a slightly shorter name! As to why
103103
// `.note.rustc` works on MinGW, that's another good question...

src/librustc_codegen_ssa/back/command.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ impl Command {
168168
// error code if we fail to spawn and automatically re-spawning the
169169
// linker with smaller arguments.
170170
//
171-
// [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx
172-
// [2]: https://blogs.msdn.microsoft.com/oldnewthing/20031210-00/?p=41553
171+
// [1]: https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa
172+
// [2]: https://devblogs.microsoft.com/oldnewthing/?p=41553
173173

174174
let estimated_command_line_len = self.args.iter().map(|a| a.len()).sum::<usize>();
175175
estimated_command_line_len > 1024 * 6

src/librustc_codegen_ssa/back/link.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ pub fn exec_linker(
10441044
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
10451045
if self.is_like_msvc {
10461046
// This is "documented" at
1047-
// https://msdn.microsoft.com/en-us/library/4xdcbak7.aspx
1047+
// https://docs.microsoft.com/en-us/cpp/build/reference/at-specify-a-linker-response-file
10481048
//
10491049
// Unfortunately there's not a great specification of the
10501050
// syntax I could find online (at least) but some local

src/librustc_target/abi/call/x86_win64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::abi::call::{ArgAbi, FnAbi, Reg};
22
use crate::abi::Abi;
33

4-
// Win64 ABI: http://msdn.microsoft.com/en-us/library/zthk2dkh.aspx
4+
// Win64 ABI: https://docs.microsoft.com/en-us/cpp/build/parameter-passing
55

66
pub fn compute_abi_info<Ty>(fn_abi: &mut FnAbi<'_, Ty>) {
77
let fixup = |a: &mut ArgAbi<'_, Ty>| {

src/librustc_target/spec/i686_pc_windows_msvc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn target() -> TargetResult {
1111

1212
// Ensure the linker will only produce an image if it can also produce a table of
1313
// the image's safe exception handlers.
14-
// https://msdn.microsoft.com/en-us/library/9a89h429.aspx
14+
// https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers
1515
base.pre_link_args.get_mut(&LinkerFlavor::Msvc).unwrap().push("/SAFESEH".to_string());
1616

1717
Ok(Target {

src/libstd/env.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ impl Error for JoinPathsError {
552552
/// (including to an empty string).
553553
/// - If both do not exist, [`GetUserProfileDirectory`][msdn] is used to return the path.
554554
///
555-
/// [msdn]: https://msdn.microsoft.com/en-us/library/windows/desktop/bb762280(v=vs.85).aspx
555+
/// [msdn]: https://docs.microsoft.com/en-us/windows/win32/api/userenv/nf-userenv-getuserprofiledirectorya
556556
///
557557
/// # Examples
558558
///
@@ -591,7 +591,7 @@ pub fn home_dir() -> Option<PathBuf> {
591591
/// This behavior is identical to that of [`GetTempPath`][msdn], which this
592592
/// function uses internally.
593593
///
594-
/// [msdn]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85).aspx
594+
/// [msdn]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppatha
595595
///
596596
/// ```no_run
597597
/// use std::env;

src/libstd/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
18411841
/// or written to a file another application may read).
18421842
///
18431843
/// [changes]: ../io/index.html#platform-specific-behavior
1844-
/// [path]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath
1844+
/// [path]: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
18451845
///
18461846
/// # Errors
18471847
///

src/libstd/sys/windows/ext/fs.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub trait OpenOptionsExt {
117117
/// let file = OpenOptions::new().access_mode(0).open("foo.txt");
118118
/// ```
119119
///
120-
/// [`CreateFile`]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858.aspx
120+
/// [`CreateFile`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
121121
#[stable(feature = "open_options_ext", since = "1.10.0")]
122122
fn access_mode(&mut self, access: u32) -> &mut Self;
123123

@@ -145,7 +145,7 @@ pub trait OpenOptionsExt {
145145
/// .open("foo.txt");
146146
/// ```
147147
///
148-
/// [`CreateFile`]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858.aspx
148+
/// [`CreateFile`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
149149
#[stable(feature = "open_options_ext", since = "1.10.0")]
150150
fn share_mode(&mut self, val: u32) -> &mut Self;
151151

@@ -174,8 +174,8 @@ pub trait OpenOptionsExt {
174174
/// .open("foo.txt");
175175
/// ```
176176
///
177-
/// [`CreateFile`]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858.aspx
178-
/// [`CreateFile2`]: https://msdn.microsoft.com/en-us/library/windows/desktop/hh449422.aspx
177+
/// [`CreateFile`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
178+
/// [`CreateFile2`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2
179179
#[stable(feature = "open_options_ext", since = "1.10.0")]
180180
fn custom_flags(&mut self, flags: u32) -> &mut Self;
181181

@@ -211,8 +211,8 @@ pub trait OpenOptionsExt {
211211
/// .open("foo.txt");
212212
/// ```
213213
///
214-
/// [`CreateFile`]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858.aspx
215-
/// [`CreateFile2`]: https://msdn.microsoft.com/en-us/library/windows/desktop/hh449422.aspx
214+
/// [`CreateFile`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
215+
/// [`CreateFile2`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2
216216
#[stable(feature = "open_options_ext", since = "1.10.0")]
217217
fn attributes(&mut self, val: u32) -> &mut Self;
218218

@@ -254,10 +254,10 @@ pub trait OpenOptionsExt {
254254
/// .open(r"\\.\pipe\MyPipe");
255255
/// ```
256256
///
257-
/// [`CreateFile`]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858.aspx
258-
/// [`CreateFile2`]: https://msdn.microsoft.com/en-us/library/windows/desktop/hh449422.aspx
257+
/// [`CreateFile`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
258+
/// [`CreateFile2`]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2
259259
/// [Impersonation Levels]:
260-
/// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379572.aspx
260+
/// https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level
261261
#[stable(feature = "open_options_ext", since = "1.10.0")]
262262
fn security_qos_flags(&mut self, flags: u32) -> &mut OpenOptions;
263263
}
@@ -297,7 +297,7 @@ impl OpenOptionsExt for OpenOptions {
297297
///
298298
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
299299
/// [`BY_HANDLE_FILE_INFORMATION`]:
300-
/// https://msdn.microsoft.com/en-us/library/windows/desktop/aa363788.aspx
300+
/// https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information
301301
#[stable(feature = "metadata_ext", since = "1.1.0")]
302302
pub trait MetadataExt {
303303
/// Returns the value of the `dwFileAttributes` field of this metadata.
@@ -321,7 +321,7 @@ pub trait MetadataExt {
321321
/// ```
322322
///
323323
/// [File Attribute Constants]:
324-
/// https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117.aspx
324+
/// https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants
325325
#[stable(feature = "metadata_ext", since = "1.1.0")]
326326
fn file_attributes(&self) -> u32;
327327

@@ -350,7 +350,7 @@ pub trait MetadataExt {
350350
/// }
351351
/// ```
352352
///
353-
/// [`FILETIME`]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724284.aspx
353+
/// [`FILETIME`]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime
354354
#[stable(feature = "metadata_ext", since = "1.1.0")]
355355
fn creation_time(&self) -> u64;
356356

@@ -385,7 +385,7 @@ pub trait MetadataExt {
385385
/// }
386386
/// ```
387387
///
388-
/// [`FILETIME`]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724284.aspx
388+
/// [`FILETIME`]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime
389389
#[stable(feature = "metadata_ext", since = "1.1.0")]
390390
fn last_access_time(&self) -> u64;
391391

@@ -418,7 +418,7 @@ pub trait MetadataExt {
418418
/// }
419419
/// ```
420420
///
421-
/// [`FILETIME`]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724284.aspx
421+
/// [`FILETIME`]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime
422422
#[stable(feature = "metadata_ext", since = "1.1.0")]
423423
fn last_write_time(&self) -> u64;
424424

src/libstd/sys/windows/ext/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub trait CommandExt {
9999
///
100100
/// These will always be ORed with `CREATE_UNICODE_ENVIRONMENT`.
101101
///
102-
/// [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx
102+
/// [1]: https://docs.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
103103
#[stable(feature = "windows_process_extensions", since = "1.16.0")]
104104
fn creation_flags(&mut self, flags: u32) -> &mut process::Command;
105105
}

src/libstd/sys/windows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub fn dur2timeout(dur: Duration) -> c::DWORD {
262262
// terminating the process but without necessarily bypassing all exception
263263
// handlers.
264264
//
265-
// https://msdn.microsoft.com/en-us/library/dn774154.aspx
265+
// https://docs.microsoft.com/en-us/cpp/intrinsics/fastfail
266266
#[allow(unreachable_code)]
267267
pub unsafe fn abort_internal() -> ! {
268268
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

src/libstd/sys/windows/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn error_string(mut errnum: i32) -> String {
3434

3535
// NTSTATUS errors may be encoded as HRESULT, which may returned from
3636
// GetLastError. For more information about Windows error codes, see
37-
// `[MS-ERREF]`: https://msdn.microsoft.com/en-us/library/cc231198.aspx
37+
// `[MS-ERREF]`: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a
3838
if (errnum & c::FACILITY_NT_BIT as i32) != 0 {
3939
// format according to https://support.microsoft.com/en-us/help/259693
4040
const NTDLL_DLL: &[u16] = &[

src/libterm/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! ```
2828
//!
2929
//! [ansi]: https://en.wikipedia.org/wiki/ANSI_escape_code
30-
//! [win]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682010%28v=vs.85%29.aspx
30+
//! [win]: https://docs.microsoft.com/en-us/windows/console/character-mode-applications
3131
//! [ti]: https://en.wikipedia.org/wiki/Terminfo
3232
3333
#![doc(

src/libterm/win.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
101101

102102
unsafe {
103103
// Magic -11 means stdout, from
104-
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms683231%28v=vs.85%29.aspx
104+
// https://docs.microsoft.com/en-us/windows/console/getstdhandle
105105
//
106106
// You may be wondering, "but what about stderr?", and the answer
107107
// to that is that setting terminal attributes on the stdout

0 commit comments

Comments
 (0)