about summary refs log tree commit diff
path: root/src/test/compile-fail/integral-indexing.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-26/+0
2018-03-02Update compile fail test error messagesJonathan Behrens-4/+4
2017-03-22Fix the testsSimonas Kazlauskas-4/+4
2016-11-26Overload get{,_mut}{,_unchecked}Steven Fackler-4/+4
2016-10-31Changed most vec! invocations to use square bracesiirelu-1/+1
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-04-05suggest adding a where-clause when that can helpAriel Ben-Yehuda-8/+8
suggest adding a where-clause when there is an unmet trait-bound that can be satisfied if some type can implement it.
2016-03-30Fix fallout in testsJeffrey Seyfried-8/+8
2015-09-26deduplicate trait errors before they are displayedAriel Ben-Yehuda-8/+0
Because of type inference, duplicate obligations exist and cause duplicate errors. To avoid this, only display the first error for each (predicate,span). The inclusion of the span is somewhat bikesheddy, but *is* the more conservative option (it does not remove some instability, as duplicate obligations are ignored by `duplicate_set` under some inference conditions). Fixes #28098 cc #21528 (is it a dupe?)
2015-03-16Consistent spacingTamir Duberstein-4/+4
2015-02-18Update suffixes en masse in tests using `perl -p -i -e`Niko Matsakis-2/+2
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-6/+6
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-2/+2
2015-01-08Update compile fail tests to use isize.Huon Wilson-1/+1
2015-01-07falloutNick Cameron-12/+20
2014-07-01rustc: Remove `&str` indexing from the language.Brian Anderson-6/+6
Being able to index into the bytes of a string encourages poor UTF-8 hygiene. To get a view of `&[u8]` from either a `String` or `&str` slice, use the `as_bytes()` method. Closes #12710. [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-1/+1
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-7/+7
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2014-04-02Fix fallout of requiring uint indicesAlex Crichton-0/+26