diff options
| author | Georg Brandl <georg@python.org> | 2021-11-23 08:09:48 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-11-23 11:10:49 +0100 |
| commit | b490ccc22746375e154352466fb0d0deafb50194 (patch) | |
| tree | a2b480e10cbe4bd6909d8560fabb291481117a43 /compiler/rustc_codegen_gcc/example/subslice-patterns-const-eval.rs | |
| parent | 2e055d92e0d527b273d12584bd842f6527e7652c (diff) | |
| download | rust-b490ccc22746375e154352466fb0d0deafb50194.tar.gz rust-b490ccc22746375e154352466fb0d0deafb50194.zip | |
kernel_copy: avoid panic on unexpected OS error
According to documentation, the listed errnos should only occur if the `copy_file_range` call cannot be made at all, so the assert be correct. However, since in practice file system drivers (incl. FUSE etc.) can return any errno they want, we should not panic here. Fixes #91152
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/subslice-patterns-const-eval.rs')
0 files changed, 0 insertions, 0 deletions
