Lines Matching refs:code
272 ($s:ident, $code:expr, $name:ident, $str:expr, $iters:expr) => {
279 black_box($code);
287 ($name:ident, $s:ident, $code:expr) => {
288 make_test!($name, $s, $code, 1);
290 ($name:ident, $s:ident, $code:expr, $iters:expr) => {
296 make_test_inner!($s, $code, short_ascii,
298 make_test_inner!($s, $code, short_mixed,
300 make_test_inner!($s, $code, short_pile_of_poo,
302 make_test_inner!($s, $code, long_lorem_ipsum,"\
2049 // sum == 11806, to stop dead code elimination.
3387 // The test code below is identical to that in `rc.rs`.
4438 // original problem code path anymore.)
4546 // on the left- and right-hand sides. In particular, Unicode code points
12181 // This ensures all 6 code paths of `append` are tested.
14023 // (the code expanding that attribute macro generates those functions), or to call
14692 /// code *you* write that relies on the behavior of this function may break.
14770 /// the requested space. This is not really unsafe, but the unsafe code
14828 // generated code run faster. Therefore, this method is carefully written
14829 // so that all of the code that depends on `T` is within it, while as much
14830 // of the code that doesn't depend on `T` as possible is in functions that
14965 // ensure that the code generation related to these panics is minimal as there's
15338 // so hard-code it rather than have a generic "condition" mechanism.
17657 /// boundary of a UTF-8 code point.
17663 /// Panics if `at` is not on a `UTF-8` code point boundary, or if it is beyond the last
17664 /// code point of the string.
18736 // panic code being inserted again.
19467 // to allow code to have `use boxed::Box;` declarations.
19575 //! the meaning of the code. In the example above, this syntax makes it easier to see that
19576 //! this code is creating a new reference rather than copying the whole content of foo.
21416 // Thus we panic here immediately without invoking `Vec` code.
23670 // possible with safe code alone.
24150 // NOTE: this code currently ignores the possibility of overflow
25232 // running this code in that case).
25757 // Thus we panic here immediately without invoking `Vec` code.
26061 //! For example, the following code will always print `1.5` even if the system
26217 //! The purpose of the [`Debug`] trait is to facilitate debugging Rust code. In
29853 /// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
32025 /// the raw pointer code needed to do this without undefined behavior.
32190 /// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
32727 // but the code below is faster (hugely in some cases).
35606 // Panics if the map (or the code navigating it) is corrupted.
35612 // more serious navigation code.
35616 // Check consistency of `length` with what navigation code encounters.
37709 let offset = 165; // somewhat arbitrarily chosen to cover some code paths
38014 /// node, allowing code to act on leaf and internal nodes generically without having to even check
38194 /// of invalidating mutable references that unsafe code has created.
42814 /// order code that indicates whether its argument is `Less`,
44431 /// through `Cell`, `RefCell`, global state, I/O, or unsafe code. The
46187 // This avoids additional codegen for a fallback code path which would eventually
47069 /// by unsafe code. Note that these guarantees refer to an unqualified `Vec<T>`.
47086 /// and use it for something else (either to pass to unsafe code, or to build your
47120 /// * It would make it more difficult for unsafe code to correctly manipulate
47160 /// not break, however: using `unsafe` code to write to the excess capacity,
47985 /// is serving as a buffer for other code, particularly over FFI:
48355 /* This code gets executed when `same_bucket` panics */
48962 // This code generalizes `extend_with_{element,default}`.
49370 /// Using this method is equivalent to the following code:
49379 /// // your code here
49946 // NOTE: some less important impls are omitted to reduce code bloat
50293 //! described in [rust-lang/unsafe-code-guidelines#198][ucg#198].
50295 //! [ucg#198]: https://github.com/rust-lang/unsafe-code-guidelines/issues/198
50562 // That would make code size bigger.
50624 // That would make code size bigger.