Skip to content

Commit 0ad0b0e

Browse files
committed
---
yaml --- r: 81945 b: refs/heads/master c: ca66b81 h: refs/heads/master i: 81943: 4f0f55c v: v3
1 parent 6fec29b commit 0ad0b0e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e02d1eb1717fee3c513baa0cb5fc39b8fa630335
2+
refs/heads/master: ca66b8128391a2423123a873f800139a55e194bf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/libstd/c_str.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ impl<'self> ToCStr for &'self [u8] {
277277
}
278278
}
279279

280-
/// WARNING: This function uses an optimization to only malloc a temporary
281-
/// CString when the source string is small. Do not save a reference to
282-
/// the `*libc::c_char` as it may be invalid after this function call.
283280
fn with_c_str<T>(&self, f: &fn(*libc::c_char) -> T) -> T {
284281
if self.len() < BUF_LEN {
285282
do self.as_imm_buf |self_buf, self_len| {

0 commit comments

Comments
 (0)