aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_api
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-14 08:16:48 +0100
committerGitHub <[email protected]>2021-06-14 08:16:48 +0100
commit5a8ddb4b2d62f6a56f867ff2daafef6a2b15f00f (patch)
treef26282b998546c0f0ee04aab751157233791fb3e /crates/proc_macro_api
parentf0618a8f06a464840079f30b3e25bcdcca3922a3 (diff)
parent20b325c7d50092cada3408aee958b3d523541f2c (diff)
Merge #9260
9260: tree-wide: make rustdoc links spiky so they are clickable r=matklad a=lf- Rustdoc was complaining about these while I was running with --document-private-items and I figure they should be fixed. Co-authored-by: Jade <[email protected]>
Diffstat (limited to 'crates/proc_macro_api')
-rw-r--r--crates/proc_macro_api/src/version.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/proc_macro_api/src/version.rs b/crates/proc_macro_api/src/version.rs
index 6dbac50b4..28a4ac086 100644
--- a/crates/proc_macro_api/src/version.rs
+++ b/crates/proc_macro_api/src/version.rs
@@ -95,7 +95,7 @@ fn read_section<'a>(dylib_binary: &'a [u8], section_name: &str) -> io::Result<&'
95/// * [version string bytes encoded in utf8] <- GET THIS BOI 95/// * [version string bytes encoded in utf8] <- GET THIS BOI
96/// * [some more bytes that we don really care but still there] :-) 96/// * [some more bytes that we don really care but still there] :-)
97/// Check this issue for more about the bytes layout: 97/// Check this issue for more about the bytes layout:
98/// https://github.com/rust-analyzer/rust-analyzer/issues/6174 98/// <https://github.com/rust-analyzer/rust-analyzer/issues/6174>
99fn read_version(dylib_path: &Path) -> io::Result<String> { 99fn read_version(dylib_path: &Path) -> io::Result<String> {
100 let dylib_file = File::open(dylib_path)?; 100 let dylib_file = File::open(dylib_path)?;
101 let dylib_mmaped = unsafe { Mmap::map(&dylib_file) }?; 101 let dylib_mmaped = unsafe { Mmap::map(&dylib_file) }?;