Skip to content

Commit 86ec48e

Browse files
committed
---
yaml --- r: 85696 b: refs/heads/dist-snap c: fe1beac h: refs/heads/master v: v3
1 parent 768d2ea commit 86ec48e

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
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 744c46225e09bad815b7807ca660cbdbcf187443
9+
refs/heads/dist-snap: fe1beac45e6d2e84e87a95dbf38c2cdef62bf064
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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)