Skip to content

Commit 40852a1

Browse files
toddaarothestinger
authored andcommitted
---
yaml --- r: 65009 b: refs/heads/snap-stage3 c: eab749a h: refs/heads/master i: 65007: 09ee8a9 v: v3
1 parent 6542267 commit 40852a1

File tree

10 files changed

+19
-9
lines changed

10 files changed

+19
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: deddb009f0003734d3c73fa859826d57ec600270
4+
refs/heads/snap-stage3: eab749a5f326b0cab3a1f71f260a35c96d263758
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/logging.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ pub fn log_type<T>(level: u32, object: &T) {
8585
fn newsched_log_str(msg: ~str) {
8686
use rt::task::Task;
8787
use rt::local::Local;
88+
use str::StrSlice;
89+
use container::Container;
90+
91+
// Truncate the string
92+
let buf_bytes = 2048;
93+
let msg = if msg.len() > buf_bytes {
94+
msg.slice(0, buf_bytes) + "[...]"
95+
} else {
96+
msg
97+
};
8898

8999
unsafe {
90100
match Local::try_unsafe_borrow::<Task>() {

branches/snap-stage3/src/test/run-fail/assert-macro-explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'assertion failed: false'
11+
// error-pattern:failed at 'assertion failed: false'
1212

1313
fn main() {
1414
assert!(false);

branches/snap-stage3/src/test/run-fail/assert-macro-fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-assert-fmt 42 rust'
11+
// error-pattern:failed at 'test-assert-fmt 42 rust'
1212

1313
fn main() {
1414
assert!(false, "test-assert-fmt %d %s", 42, "rust");

branches/snap-stage3/src/test/run-fail/assert-macro-owned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-assert-owned'
11+
// error-pattern:failed at 'test-assert-owned'
1212

1313
fn main() {
1414
assert!(false, ~"test-assert-owned");

branches/snap-stage3/src/test/run-fail/assert-macro-static.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-assert-static'
11+
// error-pattern:failed at 'test-assert-static'
1212

1313
fn main() {
1414
assert!(false, "test-assert-static");

branches/snap-stage3/src/test/run-fail/fail-macro-explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'explicit failure'
11+
// error-pattern:failed at 'explicit failure'
1212

1313
fn main() {
1414
fail!();

branches/snap-stage3/src/test/run-fail/fail-macro-fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-fail-fmt 42 rust'
11+
// error-pattern:failed at 'test-fail-fmt 42 rust'
1212

1313
fn main() {
1414
fail!("test-fail-fmt %d %s", 42, "rust");

branches/snap-stage3/src/test/run-fail/fail-macro-owned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-fail-owned'
11+
// error-pattern:failed at 'test-fail-owned'
1212

1313
fn main() {
1414
fail!("test-fail-owned");

branches/snap-stage3/src/test/run-fail/fail-macro-static.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:task failed at 'test-fail-static'
11+
// error-pattern:failed at 'test-fail-static'
1212

1313
fn main() {
1414
fail!("test-fail-static");

0 commit comments

Comments
 (0)