Skip to content

Commit 44530db

Browse files
committed
---
yaml --- r: 78698 b: refs/heads/try c: fe1beac h: refs/heads/master v: v3
1 parent 1446560 commit 44530db

File tree

12 files changed

+58
-1162
lines changed

12 files changed

+58
-1162
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 25ed29a0edb3d48fef843a0b818ee68faf2252da
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5-
refs/heads/try: 744c46225e09bad815b7807ca660cbdbcf187443
5+
refs/heads/try: fe1beac45e6d2e84e87a95dbf38c2cdef62bf064
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/doc/tutorial-ffi.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,8 @@ prefer using raw pointers (`*`) if that's needed because the compiler can't make
445445
about them.
446446

447447
Vectors and strings share the same basic memory layout, and utilities are available in the `vec` and
448-
`str` modules for working with C APIs. Strings are terminated with `\0` for interoperability with C,
449-
but it should not be assumed because a slice will not always be nul-terminated. Instead, the
450-
`str::as_c_str` function should be used.
448+
`str` modules for working with C APIs. However, strings are not terminated with `\0`. If you need a
449+
NUL-terminated string for interoperability with C, you should use the `c_str::to_c_str` function.
451450

452451
The standard library includes type aliases and function definitions for the C standard library in
453452
the `libc` module, and Rust links against `libc` and `libm` by default.

branches/try/mk/tests.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ tidy:
240240
@$(call E, check: formatting)
241241
$(Q)find $(S)src -name '*.r[sc]' \
242242
| grep '^$(S)src/test' -v \
243-
| grep '^$(S)src/libuv' -v \
244-
| grep '^$(S)src/llvm' -v \
245243
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
246244
$(Q)find $(S)src/etc -name '*.py' \
247245
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py

0 commit comments

Comments
 (0)