Skip to content

Commit dec7ce3

Browse files
lvllvltgross35
authored andcommitted
chore: add labels to FIXMEs
(backport <rust-lang#4232>) (cherry picked from commit ccf7b41)
1 parent eb32ccd commit dec7ce3

File tree

11 files changed

+45
-44
lines changed

11 files changed

+45
-44
lines changed

src/fuchsia/x86_64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ cfg_if! {
102102
.field("uc_stack", &self.uc_stack)
103103
.field("uc_mcontext", &self.uc_mcontext)
104104
.field("uc_sigmask", &self.uc_sigmask)
105-
// FIXME: .field("__private", &self.__private)
105+
// FIXME(debug): .field("__private", &self.__private)
106106
.finish()
107107
}
108108
}

src/unix/bsd/apple/b32/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ s! {
4545
}
4646

4747
pub struct malloc_zone_t {
48-
__private: [crate::uintptr_t; 18], // FIXME: keeping private for now
48+
__private: [crate::uintptr_t; 18], // FIXME(macos): keeping private for now
4949
}
5050
}
5151

@@ -84,7 +84,7 @@ cfg_if! {
8484
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
8585
f.debug_struct("pthread_attr_t")
8686
.field("__sig", &self.__sig)
87-
// FIXME: .field("__opaque", &self.__opaque)
87+
// FIXME(debug): .field("__opaque", &self.__opaque)
8888
.finish()
8989
}
9090
}

src/unix/bsd/apple/b64/aarch64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub type mcontext_t = *mut __darwin_mcontext64;
55

66
s! {
77
pub struct malloc_zone_t {
8-
__private: [crate::uintptr_t; 18], // FIXME: needs arm64 auth pointers support
8+
__private: [crate::uintptr_t; 18], // FIXME(macos): needs arm64 auth pointers support
99
}
1010

1111
pub struct ucontext_t {

src/unix/bsd/apple/b64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ cfg_if! {
7777
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7878
f.debug_struct("pthread_attr_t")
7979
.field("__sig", &self.__sig)
80-
// FIXME: .field("__opaque", &self.__opaque)
80+
// FIXME(debug): .field("__opaque", &self.__opaque)
8181
.finish()
8282
}
8383
}

src/unix/bsd/apple/b64/x86_64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ s! {
106106
}
107107

108108
pub struct malloc_introspection_t {
109-
_private: [crate::uintptr_t; 16], // FIXME: keeping private for now
109+
_private: [crate::uintptr_t; 16], // FIXME(macos): keeping private for now
110110
}
111111

112112
pub struct malloc_zone_t {

src/unix/bsd/apple/mod.rs

+15-15
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ s! {
371371
}
372372

373373
pub struct sigaction {
374-
// FIXME: this field is actually a union
374+
// FIXME(union): this field is actually a union
375375
pub sa_sigaction: crate::sighandler_t,
376376
pub sa_mask: sigset_t,
377377
pub sa_flags: c_int,
@@ -1342,9 +1342,9 @@ s_no_extra_traits! {
13421342
pub shm_lpid: crate::pid_t,
13431343
pub shm_cpid: crate::pid_t,
13441344
pub shm_nattch: crate::shmatt_t,
1345-
pub shm_atime: crate::time_t, // FIXME: 64-bit wrong align => wrong offset
1346-
pub shm_dtime: crate::time_t, // FIXME: 64-bit wrong align => wrong offset
1347-
pub shm_ctime: crate::time_t, // FIXME: 64-bit wrong align => wrong offset
1345+
pub shm_atime: crate::time_t, // FIXME(macos): 64-bit wrong align => wrong offset
1346+
pub shm_dtime: crate::time_t, // FIXME(macos): 64-bit wrong align => wrong offset
1347+
pub shm_ctime: crate::time_t, // FIXME(macos): 64-bit wrong align => wrong offset
13481348
// FIXME: 64-bit wrong align => wrong offset:
13491349
pub shm_internal: *mut c_void,
13501350
}
@@ -1955,7 +1955,7 @@ cfg_if! {
19551955
.field("pth_curpri", &self.pth_curpri)
19561956
.field("pth_priority", &self.pth_priority)
19571957
.field("pth_maxpriority", &self.pth_maxpriority)
1958-
// FIXME: .field("pth_name", &self.pth_name)
1958+
// FIXME(debug): .field("pth_name", &self.pth_name)
19591959
.finish()
19601960
}
19611961
}
@@ -2021,8 +2021,8 @@ cfg_if! {
20212021
.field("f_fssubtype", &self.f_fssubtype)
20222022
.field("f_fstypename", &self.f_fstypename)
20232023
.field("f_type", &self.f_type)
2024-
// FIXME: .field("f_mntonname", &self.f_mntonname)
2025-
// FIXME: .field("f_mntfromname", &self.f_mntfromname)
2024+
// FIXME(debug): .field("f_mntonname", &self.f_mntonname)
2025+
// FIXME(debug): .field("f_mntfromname", &self.f_mntfromname)
20262026
.field("f_reserved", &self.f_reserved)
20272027
.finish()
20282028
}
@@ -2072,7 +2072,7 @@ cfg_if! {
20722072
.field("d_reclen", &self.d_reclen)
20732073
.field("d_namlen", &self.d_namlen)
20742074
.field("d_type", &self.d_type)
2075-
// FIXME: .field("d_name", &self.d_name)
2075+
// FIXME(debug): .field("d_name", &self.d_name)
20762076
.finish()
20772077
}
20782078
}
@@ -2101,7 +2101,7 @@ cfg_if! {
21012101
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
21022102
f.debug_struct("pthread_rwlock_t")
21032103
.field("__sig", &self.__sig)
2104-
// FIXME: .field("__opaque", &self.__opaque)
2104+
// FIXME(debug): .field("__opaque", &self.__opaque)
21052105
.finish()
21062106
}
21072107
}
@@ -2129,7 +2129,7 @@ cfg_if! {
21292129
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
21302130
f.debug_struct("pthread_mutex_t")
21312131
.field("__sig", &self.__sig)
2132-
// FIXME: .field("__opaque", &self.__opaque)
2132+
// FIXME(debug): .field("__opaque", &self.__opaque)
21332133
.finish()
21342134
}
21352135
}
@@ -2158,7 +2158,7 @@ cfg_if! {
21582158
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
21592159
f.debug_struct("pthread_cond_t")
21602160
.field("__sig", &self.__sig)
2161-
// FIXME: .field("__opaque", &self.__opaque)
2161+
// FIXME(debug): .field("__opaque", &self.__opaque)
21622162
.finish()
21632163
}
21642164
}
@@ -2197,7 +2197,7 @@ cfg_if! {
21972197
.field("ss_family", &self.ss_family)
21982198
.field("__ss_pad1", &self.__ss_pad1)
21992199
.field("__ss_align", &self.__ss_align)
2200-
// FIXME: .field("__ss_pad2", &self.__ss_pad2)
2200+
// FIXME(debug): .field("__ss_pad2", &self.__ss_pad2)
22012201
.finish()
22022202
}
22032203
}
@@ -2237,13 +2237,13 @@ cfg_if! {
22372237
impl fmt::Debug for utmpx {
22382238
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
22392239
f.debug_struct("utmpx")
2240-
// FIXME: .field("ut_user", &self.ut_user)
2240+
// FIXME(debug): .field("ut_user", &self.ut_user)
22412241
.field("ut_id", &self.ut_id)
22422242
.field("ut_line", &self.ut_line)
22432243
.field("ut_pid", &self.ut_pid)
22442244
.field("ut_type", &self.ut_type)
22452245
.field("ut_tv", &self.ut_tv)
2246-
// FIXME: .field("ut_host", &self.ut_host)
2246+
// FIXME(debug): .field("ut_host", &self.ut_host)
22472247
.field("ut_pad", &self.ut_pad)
22482248
.finish()
22492249
}
@@ -2485,7 +2485,7 @@ cfg_if! {
24852485
.field("pth_curpri", &self.pth_curpri)
24862486
.field("pth_priority", &self.pth_priority)
24872487
.field("pth_maxpriority", &self.pth_maxpriority)
2488-
// FIXME: .field("pth_name", &self.pth_name)
2488+
// FIXME(debug): .field("pth_name", &self.pth_name)
24892489
.finish()
24902490
}
24912491
}

src/unix/bsd/freebsdlike/dragonfly/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ cfg_if! {
560560
.field("ut_name", &self.ut_name)
561561
.field("ut_id", &self.ut_id)
562562
.field("ut_line", &self.ut_line)
563-
// FIXME: .field("ut_host", &self.ut_host)
563+
// FIXME(debug): .field("ut_host", &self.ut_host)
564564
.field("ut_unused", &self.ut_unused)
565565
.field("ut_session", &self.ut_session)
566566
.field("ut_type", &self.ut_type)
@@ -639,7 +639,7 @@ cfg_if! {
639639
.field("d_type", &self.d_type)
640640
// Ignore __unused1
641641
// Ignore __unused2
642-
// FIXME: .field("d_name", &self.d_name)
642+
// FIXME(debug): .field("d_name", &self.d_name)
643643
.finish()
644644
}
645645
}
@@ -701,10 +701,10 @@ cfg_if! {
701701
.field("f_flags", &self.f_flags)
702702
.field("f_syncwrites", &self.f_syncwrites)
703703
.field("f_asyncwrites", &self.f_asyncwrites)
704-
// FIXME: .field("f_mntonname", &self.f_mntonname)
704+
// FIXME(debug): .field("f_mntonname", &self.f_mntonname)
705705
.field("f_syncreads", &self.f_syncreads)
706706
.field("f_asyncreads", &self.f_asyncreads)
707-
// FIXME: .field("f_mntfromname", &self.f_mntfromname)
707+
// FIXME(debug): .field("f_mntfromname", &self.f_mntfromname)
708708
.finish()
709709
}
710710
}

src/unix/bsd/freebsdlike/freebsd/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ s_no_extra_traits! {
16391639
pub kf_flags: c_int,
16401640
_kf_pad0: c_int,
16411641
pub kf_offset: i64,
1642-
_priv: [u8; 304], // FIXME: this is really a giant union
1642+
_priv: [u8; 304], // FIXME(freebsd): this is really a giant union
16431643
pub kf_status: u16,
16441644
_kf_pad1: u16,
16451645
_kf_ispare0: c_int,
@@ -1690,8 +1690,8 @@ cfg_if! {
16901690
.field("ut_pid", &self.ut_pid)
16911691
.field("ut_user", &self.ut_user)
16921692
.field("ut_line", &self.ut_line)
1693-
// FIXME: .field("ut_host", &self.ut_host)
1694-
// FIXME: .field("__ut_spare", &self.__ut_spare)
1693+
// FIXME(debug): .field("ut_host", &self.ut_host)
1694+
// FIXME(debug): .field("__ut_spare", &self.__ut_spare)
16951695
.finish()
16961696
}
16971697
}
@@ -1778,7 +1778,7 @@ cfg_if! {
17781778
.field("sdl_nlen", &self.sdl_nlen)
17791779
.field("sdl_alen", &self.sdl_alen)
17801780
.field("sdl_slen", &self.sdl_slen)
1781-
// FIXME: .field("sdl_data", &self.sdl_data)
1781+
// FIXME(debug): .field("sdl_data", &self.sdl_data)
17821782
.finish()
17831783
}
17841784
}
@@ -2286,7 +2286,7 @@ cfg_if! {
22862286
f.debug_struct("sctp_gen_error_cause")
22872287
.field("code", &{ self.code })
22882288
.field("length", &{ self.length })
2289-
// FIXME: .field("info", &{self.info})
2289+
// FIXME(debug): .field("info", &{self.info})
22902290
.finish()
22912291
}
22922292
}
@@ -2358,7 +2358,7 @@ cfg_if! {
23582358
f.debug_struct("sctp_error_missing_param")
23592359
.field("cause", &{ self.cause })
23602360
.field("num_missing_params", &{ self.num_missing_params })
2361-
// FIXME: .field("tpe", &{self.tpe})
2361+
// FIXME(debug): .field("tpe", &{self.tpe})
23622362
.finish()
23632363
}
23642364
}
@@ -5689,7 +5689,7 @@ extern "C" {
56895689
pub fn pidfile_close(path: *mut crate::pidfh) -> c_int;
56905690
pub fn pidfile_remove(path: *mut crate::pidfh) -> c_int;
56915691
pub fn pidfile_fileno(path: *const crate::pidfh) -> c_int;
5692-
// FIXME: pidfile_signal in due time (both manpage present and updated image snapshot)
5692+
// FIXME(freebsd): pidfile_signal in due time (both manpage present and updated image snapshot)
56935693
}
56945694

56955695
#[link(name = "procstat")]

src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ cfg_if! {
344344
.field("mc_len", &self.mc_len)
345345
.field("mc_fpformat", &self.mc_fpformat)
346346
.field("mc_ownedfp", &self.mc_ownedfp)
347-
// FIXME: .field("mc_fpstate", &self.mc_fpstate)
347+
// FIXME(debug): .field("mc_fpstate", &self.mc_fpstate)
348348
.field("mc_fsbase", &self.mc_fsbase)
349349
.field("mc_gsbase", &self.mc_gsbase)
350350
.field("mc_xfpustate", &self.mc_xfpustate)

src/unix/bsd/freebsdlike/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ cfg_if! {
418418
.field("ss_family", &self.ss_family)
419419
.field("__ss_pad1", &self.__ss_pad1)
420420
.field("__ss_align", &self.__ss_align)
421-
// FIXME: .field("__ss_pad2", &self.__ss_pad2)
421+
// FIXME(debug): .field("__ss_pad2", &self.__ss_pad2)
422422
.finish()
423423
}
424424
}

src/unix/bsd/netbsdlike/netbsd/mod.rs

+11-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub type fsfilcnt_t = u64;
1010
pub type idtype_t = c_int;
1111
pub type mqd_t = c_int;
1212
type __pthread_spin_t = __cpu_simple_lock_nv_t;
13-
pub type vm_size_t = crate::uintptr_t; // FIXME: deprecated since long time
13+
pub type vm_size_t = crate::uintptr_t; // FIXME(deprecated): deprecated since long time
1414
pub type lwpid_t = c_uint;
1515
pub type shmatt_t = c_uint;
1616
pub type cpuid_t = c_ulong;
@@ -297,7 +297,8 @@ s! {
297297
pub flags: u32,
298298
pub fflags: u32,
299299
pub data: i64,
300-
pub udata: intptr_t, /* FIXME: NetBSD 10.0 will finally have same layout as other BSD */
300+
// FIXME(netbsd): NetBSD 10.0 will finally have same layout as other BSD
301+
pub udata: intptr_t,
301302
}
302303

303304
pub struct dqblk {
@@ -799,7 +800,7 @@ s_no_extra_traits! {
799800
pub ut_session: u16,
800801
pub ut_type: u16,
801802
pub ut_pid: crate::pid_t,
802-
pub ut_exit: __exit_status, // FIXME: when anonymous struct are supported
803+
pub ut_exit: __exit_status, // FIXME(netbsd): when anonymous struct are supported
803804
pub ut_ss: sockaddr_storage,
804805
pub ut_tv: crate::timeval,
805806
pub ut_pad: [u8; _UTX_PADSIZE],
@@ -945,14 +946,14 @@ cfg_if! {
945946
.field("ut_name", &self.ut_name)
946947
.field("ut_id", &self.ut_id)
947948
.field("ut_line", &self.ut_line)
948-
// FIXME .field("ut_host", &self.ut_host)
949+
// FIXME(debug) .field("ut_host", &self.ut_host)
949950
.field("ut_session", &self.ut_session)
950951
.field("ut_type", &self.ut_type)
951952
.field("ut_pid", &self.ut_pid)
952953
.field("ut_exit", &self.ut_exit)
953954
.field("ut_ss", &self.ut_ss)
954955
.field("ut_tv", &self.ut_tv)
955-
// FIXME .field("ut_pad", &self.ut_pad)
956+
// FIXME(debug) .field("ut_pad", &self.ut_pad)
956957
.finish()
957958
}
958959
}
@@ -993,7 +994,7 @@ cfg_if! {
993994
f.debug_struct("lastlogx")
994995
.field("ll_tv", &self.ll_tv)
995996
.field("ll_line", &self.ll_line)
996-
// FIXME.field("ll_host", &self.ll_host)
997+
// FIXME(debug).field("ll_host", &self.ll_host)
997998
.field("ll_ss", &self.ll_ss)
998999
.finish()
9991000
}
@@ -1159,7 +1160,7 @@ cfg_if! {
11591160
.field("d_reclen", &self.d_reclen)
11601161
.field("d_namlen", &self.d_namlen)
11611162
.field("d_type", &self.d_type)
1162-
// FIXME: .field("d_name", &self.d_name)
1163+
// FIXME(debug): .field("d_name", &self.d_name)
11631164
.finish()
11641165
}
11651166
}
@@ -1235,8 +1236,8 @@ cfg_if! {
12351236
.field("f_owner", &self.f_owner)
12361237
.field("f_spare", &self.f_spare)
12371238
.field("f_fstypename", &self.f_fstypename)
1238-
// FIXME: .field("f_mntonname", &self.f_mntonname)
1239-
// FIXME: .field("f_mntfromname", &self.f_mntfromname)
1239+
// FIXME(debug): .field("f_mntonname", &self.f_mntonname)
1240+
// FIXME(debug): .field("f_mntfromname", &self.f_mntfromname)
12401241
.finish()
12411242
}
12421243
}
@@ -1290,7 +1291,7 @@ cfg_if! {
12901291
.field("ss_family", &self.ss_family)
12911292
.field("__ss_pad1", &self.__ss_pad1)
12921293
.field("__ss_pad2", &self.__ss_pad2)
1293-
// FIXME: .field("__ss_pad3", &self.__ss_pad3)
1294+
// FIXME(debug): .field("__ss_pad3", &self.__ss_pad3)
12941295
.finish()
12951296
}
12961297
}

0 commit comments

Comments
 (0)