Skip to content

Commit c894567

Browse files
committed
Address key-value pairs
1 parent 831091c commit c894567

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

text/0000-portability-lint.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,13 @@ fn linux_only() {
342342
}
343343
```
344344

345-
The precise details of how these implications are specified---and what
346-
implications are desired---are left as implementation details.
345+
Of course, primitive portabilities in practice are key-value pairs (like
346+
`target_os = "unix"`). This RFC proposes to treat *all* keys as multimaps, that
347+
is, to not introduce assumptions like `nand(target_os = "unix", target_os =
348+
"windows")` for simplicity's sake; uses of `cfg` in practice will not produce
349+
such nonsensical situations. However, the precise details of how these
350+
implications are specified---and what implications are desired---are left as
351+
implementation details that need to be worked out with real-world experience.
347352

348353
### Determining the portability of referenced items
349354

0 commit comments

Comments
 (0)