Skip to content

Commit 2d74c30

Browse files
committed
---
yaml --- r: 83507 b: refs/heads/try c: ca66b81 h: refs/heads/master i: 83505: 2ea4578 83503: 57527a7 v: v3
1 parent f6e6d20 commit 2d74c30

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: e02d1eb1717fee3c513baa0cb5fc39b8fa630335
5+
refs/heads/try: ca66b8128391a2423123a873f800139a55e194bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)