Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c027844
Fill in things needed to stabilize int_error_matching
eopb Oct 6, 2020
83d294f
Bring char along with InvalidDigit
eopb Oct 6, 2020
8eaf0de
Remove incorrect plural
eopb Oct 6, 2020
1e7e2e4
remove OnlySign in favour of InvalidDigit
eopb Oct 6, 2020
f233abb
Add comment to helper function
eopb Oct 7, 2020
91a9f83
Define `fs::hard_link` to not follow symlinks.
sunfishcode Oct 16, 2020
23a5c21
Fix a typo in a comment.
sunfishcode Oct 19, 2020
ce00b3e
Use `link` on platforms which lack `linkat`.
sunfishcode Oct 19, 2020
d0178b4
Make it platform-specific whether `hard_link` follows symlinks.
sunfishcode Oct 20, 2020
6249cda
Disable use of `linkat` on Android as well.
sunfishcode Oct 23, 2020
199c361
Fix spelling eror
eopb Oct 26, 2020
69c301f
Small reword
eopb Oct 26, 2020
75e6dee
asci -> ASCII
eopb Oct 26, 2020
ad2d93d
Apply suggested changes
eopb Oct 26, 2020
e750238
Fix typo
eopb Oct 26, 2020
e099138
BTreeMap: stop mistaking node for an orderly place
ssomers Oct 26, 2020
b0df3f7
fix some incorrect aliasing in the BTree
RalfJung Oct 28, 2020
54a0a98
ci: gate on aarch64-gnu passing tests
pietroalbini Oct 22, 2020
1274fae
doc/rustc: promote aarch64-unknown-linux-gnu to tier 1
pietroalbini Oct 22, 2020
874cbb8
ci: build docs for aarch64-unknown-linux-gnu
pietroalbini Oct 22, 2020
eed0ceb
Recognize `private_intra_doc_links` as a lint
jyn514 Oct 19, 2020
47b21b8
Add PRIVATE_INTRA_DOC_LINKS to rustdoc special-casing
jyn514 Nov 5, 2020
8a8ee1a
inliner: Use substs_for_mir_body
tmiasko Nov 6, 2020
3a7a997
Implement destructuring assignment for tuples
fanzier Nov 4, 2020
67d0db6
Fix handling of item names for HIR
jyn514 Oct 22, 2020
f60fd49
Remove unused `from_hir` call
jyn514 Nov 7, 2020
9dc5dfb
Fix tab focus on restyled switches
notriddle Nov 8, 2020
b13817a
Avoid overlapping cfg attributes when both macOS and aarch64
shepmaster Nov 8, 2020
3904617
Nicer hunk headers for rust files
bjorn3 Nov 8, 2020
d69ee57
Rollup merge of #77640 - ethanboxx:int_error_matching_attempt_2, r=Ko…
Dylan-DPC Nov 9, 2020
41134be
Rollup merge of #78026 - sunfishcode:symlink-hard-link, r=dtolnay
Dylan-DPC Nov 9, 2020
b9671ae
Rollup merge of #78114 - jyn514:private, r=oli-obk
Dylan-DPC Nov 9, 2020
50086af
Rollup merge of #78228 - pietroalbini:finally, r=Mark-Simulacrum
Dylan-DPC Nov 9, 2020
12c5f78
Rollup merge of #78345 - jyn514:proper-names, r=varkor
Dylan-DPC Nov 9, 2020
4e5b7ad
Rollup merge of #78437 - ssomers:btree_no_ord_at_node_level, r=Mark-S…
Dylan-DPC Nov 9, 2020
5639d97
Rollup merge of #78476 - RalfJung:btree-alias, r=Mark-Simulacrum
Dylan-DPC Nov 9, 2020
b4589a8
Rollup merge of #78674 - tmiasko:inline-substs-for-mir-body, r=oli-obk
Dylan-DPC Nov 9, 2020
abaa78b
Rollup merge of #78748 - fanzier:tuple-assignment, r=petrochenkov
Dylan-DPC Nov 9, 2020
479817a
Rollup merge of #78868 - notriddle:master, r=GuillaumeGomez
Dylan-DPC Nov 9, 2020
a8beaa3
Rollup merge of #78878 - shepmaster:intersecting-ignores, r=Mark-Simu…
Dylan-DPC Nov 9, 2020
92adac9
Rollup merge of #78882 - bjorn3:nicer_hunk_headers, r=Mark-Simulacrum
Dylan-DPC Nov 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disable use of linkat on Android as well.
According to [the bionic status page], `linkat` has only been available
since API level 21. Since Android is based on Linux and Linux's `link`
doesn't follow symlinks, just use `link` on Android.

[the bionic status page]: https://android.googlesource.com/platform/bionic/+/master/docs/status.md
  • Loading branch information
sunfishcode committed Oct 24, 2020
commit 6249cda78f0cd32b60fb11702b7ffef3e3bab0b2
10 changes: 5 additions & 5 deletions library/std/src/sys/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,11 @@ pub fn link(src: &Path, dst: &Path) -> io::Result<()> {
let src = cstr(src)?;
let dst = cstr(dst)?;
cfg_if::cfg_if! {
if #[cfg(any(target_os = "vxworks", target_os = "redox"))] {
// VxWorks and Redox lack `linkat`, so use `link` instead. POSIX
// leaves it implementation-defined whether `link` follows symlinks,
// so rely on the `symlink_hard_link` test in
// library/std/src/fs/tests.rs to check the behavior.
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android"))] {
// VxWorks, Redox, and old versions of Android lack `linkat`, so use
// `link` instead. POSIX leaves it implementation-defined whether
// `link` follows symlinks, so rely on the `symlink_hard_link` test
// in library/std/src/fs/tests.rs to check the behavior.
cvt(unsafe { libc::link(src.as_ptr(), dst.as_ptr()) })?;
} else {
// Use `linkat` with `AT_FDCWD` instead of `link` as `linkat` gives
Expand Down