rust/src/libcore
Ulrik Sverdrup 4594f0f67a Fix panic on string slicing error to truncate the string
The string may be arbitrarily long, but we want to limit the panic
message to a reasonable length. Truncate the string if it is too long
(simply to char boundary).

Also add details to the start <= end message. I think it's ok to flesh
out the code here, since it's in a cold function.
2016-03-05 18:11:52 +01:00
..
fmt fmt: Make sure write_fmt's implementation can use write_char 2016-02-17 22:26:44 +01:00
hash doc: insert missing chars 2016-01-27 20:56:18 +02:00
num Rollup merge of #31965 - miqid:doc, r=steveklabnik 2016-03-01 13:39:41 -05:00
prelude Add missing annotations and some tests 2015-11-18 01:24:21 +03:00
str Fix panic on string slicing error to truncate the string 2016-03-05 18:11:52 +01:00
sync Add compare_exchange and compare_exchange_weak to atomic types 2016-02-18 22:38:25 +00:00
any.rs Implement Any for unsized types 2016-01-14 23:02:32 -08:00
array.rs Fix broken links for core primitives 2016-03-01 20:44:48 +08:00
borrow.rs Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
Cargo.toml bootstrap: Add a bunch of Cargo.toml files 2016-02-11 11:12:32 -08:00
cell.rs Explicitly opt out of Sync for cell and mpsc types 2016-03-01 18:51:46 -05:00
char.rs Auto merge of #30624 - Ticki:specialization, r=alexcrichton 2016-01-16 21:38:39 +00:00
clone.rs Make note about traits that can be derived 2015-11-16 18:50:40 -05:00
cmp.rs Clarifying behavior of #[derive(Ord, PartialOrd)] in doc comments. 2016-02-09 08:01:28 -07:00
convert.rs Minor spelling fixes 2016-02-09 11:52:39 -05:00
default.rs libcore: deny warnings in doctests 2015-11-12 05:16:08 +00:00
intrinsics.rs std: Stabilize APIs for the 1.8 release 2016-02-29 09:05:33 -08:00
iter.rs Make for loop desugaring for iterators more precise 2016-02-27 17:33:20 +01:00
lib.rs mk: Move from -D warnings to #![deny(warnings)] 2016-01-24 20:35:55 -08:00
macros.rs Correct the documentation of debug_assert_eq 2015-12-29 11:01:35 -05:00
marker.rs Fix spacing style of T: Bound in docs 2016-01-17 23:44:33 +01:00
mem.rs Improve 'std::mem::transmute_copy' doc example. 2016-02-16 21:48:50 -05:00
nonzero.rs Register new snapshots 2015-12-21 09:26:21 -08:00
ops.rs std: Stabilize APIs for the 1.8 release 2016-02-29 09:05:33 -08:00
option.rs Register new snapshots 2016-02-23 07:31:16 -08:00
panicking.rs Mark all extern functions as nounwind 2015-09-14 11:36:09 +02:00
ptr.rs Rollup merge of #31965 - miqid:doc, r=steveklabnik 2016-03-01 13:39:41 -05:00
raw.rs Correct spelling in docs 2015-10-13 09:44:11 -04:00
result.rs Register new snapshots 2016-02-23 07:31:16 -08:00
slice.rs Use raw pointer casts for slice, str's .as_ptr() 2016-03-01 22:30:18 +01:00
tuple.rs Properly document tuples 2016-02-09 16:00:50 -05:00