about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-24 23:25:41 +0100
committerGitHub <noreply@github.com>2025-01-24 23:25:41 +0100
commit0741cc0ea7954294a361e5c4dae4a53fc9c1fdad (patch)
treed7eb4f4e86f1e0dfecd6b9e6a78a3903165c6bf3 /compiler/rustc_codegen_gcc
parent1e9b0177da38e3f421a3b9b1942f1777d166e06a (diff)
parentab274630b9b0accb3b86ca70687240f92d488629 (diff)
downloadrust-0741cc0ea7954294a361e5c4dae4a53fc9c1fdad.tar.gz
rust-0741cc0ea7954294a361e5c4dae4a53fc9c1fdad.zip
Rollup merge of #135415 - Harshit933:hard-link-error, r=ChrisDenton
Add `File already exists` error doc to `hard_link` function

## Description
If the link path already exists, the error `AlreadyExists` is returned. This commit adds this error to the docs.

I tested it with the current rust master version, this error was returned when there is already a link for the file is present.
This was the error returned:
```
[harshit:../Desktop/rust_compiler_testing/hard_link (master|…5)] cargo +stage1 run
   Compiling hard_link v0.1.0 (/home/harshit/Desktop/rust_compiler_testing/hard_link)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/hard_link`
Err(Os { code: 17, kind: AlreadyExists, message: "File exists" })
```
This is my first PR on rust, any suggestions on which issue I can take next are most welcome :smile:

Fixes #130117
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions