Searched refs:panic (Results 1 – 16 of 16) sorted by relevance
/rust/macros/ |
D | helpers.rs | 26 panic!("Escape sequences in string literals not yet handled"); in try_string() 30 panic!("Raw string literals are not yet handled"); in try_string() 45 panic!("Expected Punct"); in expect_punct() 63 panic!("Expected Group"); in expect_group() 69 panic!("Expected end"); in expect_end()
|
D | module.rs | 19 _ => panic!("Expected ',' or end of array"), in expect_string_array() 114 Some(_) => panic!("Expected Ident or end"), in parse() 119 panic!( in parse() 134 _ => panic!( in parse() 149 panic!("Missing required key \"{}\".", key); in parse() 161 panic!( in parse()
|
D | paste.rs | 22 panic!("expected identifier as modifier"); in concat() 37 v => panic!("unknown modifier `{v}`"), in concat() 41 _ => panic!("unexpected token in paste segments"), in concat()
|
D | concat_idents.rs | 11 panic!("Expected Ident") in expect_ident()
|
D | pinned_drop.rs | 36 .unwrap_or_else(|| panic!("Expected an `impl` block implementing `PinnedDrop`.")); in pinned_drop()
|
D | vtable.rs | 26 _ => panic!("cannot locate main body of trait or impl block"), in vtable()
|
/rust/kernel/ |
D | lib.rs | 94 fn panic(info: &core::panic::PanicInfo<'_>) -> ! { in panic() function
|
D | str.rs | 351 Err(_) => panic!("string contains interior NUL"),
|
/rust/kernel/sync/ |
D | locked_by.rs | 124 panic!("mismatched owners"); in access() 150 panic!("mismatched owners"); in access_mut()
|
/rust/ |
D | build_error.rs | 30 panic!("{}", msg); in build_error()
|
D | compiler_builtins.rs | 33 panic!($reason);
|
/rust/alloc/ |
D | alloc.rs | 386 panic!("allocation failed"); in handle_alloc_error() 419 panic!("memory allocation of {size} bytes failed") in __rdl_oom()
|
D | lib.rs | 279 std::panic::Location::caller().hash(&mut hasher); in test_rng()
|
D | raw_vec.rs | 563 panic!("capacity overflow"); in capacity_overflow()
|
/rust/alloc/vec/ |
D | mod.rs | 1516 panic!("swap_remove index (is {index}) should be < len (is {len})"); in swap_remove() 1557 panic!("insertion index (is {index}) should be <= len (is {len})"); in insert() 1619 panic!("removal index (is {index}) should be < len (is {len})"); in remove() 2250 panic!("`at` split index (is {at}) should be <= len (is {len})"); in split_off() 3130 panic!("capacity overflow"); in extend_trusted()
|
/rust/kernel/init/ |
D | macros.rs | 1332 @acc($($acc)* $field: ::core::panic!(),), 1345 @acc($($acc)* $field: ::core::panic!(),),
|