diff options
| author | Richo Healey <richo@psych0tik.net> | 2014-04-15 18:17:48 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-04-18 17:25:34 -0700 |
| commit | 919889a1d688a6bbe2edac8705f048f06b1b455c (patch) | |
| tree | 322a69fa39bdaf37bbfffc84020acbd4c87871d0 /src/libstd/repr.rs | |
| parent | b75683cadf6c4c55360202cd6a0106be80532451 (diff) | |
| download | rust-919889a1d688a6bbe2edac8705f048f06b1b455c.tar.gz rust-919889a1d688a6bbe2edac8705f048f06b1b455c.zip | |
Replace all ~"" with "".to_owned()
Diffstat (limited to 'src/libstd/repr.rs')
| -rw-r--r-- | src/libstd/repr.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/repr.rs b/src/libstd/repr.rs index 61238f508c1..668edbcc42f 100644 --- a/src/libstd/repr.rs +++ b/src/libstd/repr.rs @@ -636,7 +636,8 @@ fn test_repr() { exact_test(&false, "false"); exact_test(&1.234, "1.234f64"); exact_test(&(&"hello"), "\"hello\""); - exact_test(&(~"he\u10f3llo"), "~\"he\\u10f3llo\""); + // FIXME What do I do about this one? + exact_test(&("he\u10f3llo".to_owned()), "~\"he\\u10f3llo\""); exact_test(&(@10), "@10"); exact_test(&(~10), "~10"); @@ -658,13 +659,13 @@ fn test_repr() { "@repr::P{a: 10, b: 1.234f64}"); exact_test(&(~P{a:10, b:1.234}), "~repr::P{a: 10, b: 1.234f64}"); - exact_test(&(10u8, ~"hello"), + exact_test(&(10u8, "hello".to_owned()), "(10u8, ~\"hello\")"); - exact_test(&(10u16, ~"hello"), + exact_test(&(10u16, "hello".to_owned()), "(10u16, ~\"hello\")"); - exact_test(&(10u32, ~"hello"), + exact_test(&(10u32, "hello".to_owned()), "(10u32, ~\"hello\")"); - exact_test(&(10u64, ~"hello"), + exact_test(&(10u64, "hello".to_owned()), "(10u64, ~\"hello\")"); exact_test(&(&[1, 2]), "&[1, 2]"); |
