nix/test
Alan Somers ea888247b7
Relax lifetime requirements for PollFd::new (#2134)
* Relax lifetime requirements for PollFd::new

Fixes #2118

* Take BorrowedFd as the argument for PollFd::new

&AsFd didn't work because there are 'static types, like std::fs::File,
which implement AsFd.  The created BorrowedFd type within the
PollFd::new method would have a very brief lifetime, but the PhantomData
would capture the lifetime of the std::fs::File.  Taking BorrowFd<'fd>
argument makes the lifetime explicit.

* fix legacy comment

---------

Co-authored-by: Steve Lau <stevelauc@outlook.com>
2023-10-01 11:30:52 +00:00
..
common Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
sys Relax lifetime requirements for FdSet::{insert, remove, contains} (#2136) 2023-10-01 10:51:07 +00:00
test_kmod Run a round of clippy to fix CI 2022-11-06 11:40:46 -08:00
test_clearenv.rs Convert the crate to edition 2018 2020-05-31 19:07:15 -06:00
test_dir.rs Run a round of clippy to fix CI 2022-11-06 11:40:46 -08:00
test_fcntl.rs Changed signature for openat function (#2139) 2023-10-01 11:20:45 +00:00
test_mount.rs Fix clippy lints 2022-12-04 13:44:50 -08:00
test_mq.rs Changed name parameter of mqueue functions to be generic over NixPath. (#2102) 2023-08-26 18:30:36 +00:00
test_net.rs fix clippy assertions_on_result_states 2022-08-04 09:44:40 +08:00
test_nix_path.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_nmount.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_poll.rs Relax lifetime requirements for PollFd::new (#2134) 2023-10-01 11:30:52 +00:00
test_pty.rs feat: I/O safety pipe, pipe2 & write (#2100) 2023-09-30 07:52:11 +00:00
test_resource.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_sched.rs Add a sched_getcpu wrapper 2022-09-27 14:26:35 +02:00
test_sendfile.rs feat: I/O safety pipe, pipe2 & write (#2100) 2023-09-30 07:52:11 +00:00
test_stat.rs format code 2022-08-09 12:17:27 +08:00
test_time.rs Folloup for !1778, remove some of the less helpful error msgs 2022-08-12 08:29:29 +08:00
test_timer.rs Fix all formating problems to pass CI formating test 2022-06-24 00:35:52 +03:00
test_unistd.rs feat: I/O safety pipe, pipe2 & write (#2100) 2023-09-30 07:52:11 +00:00
test.rs Eliminate the lazy_static dev dependency (#2107) 2023-08-27 21:34:26 +00:00