Home
last modified time | relevance | path

Searched refs:panic (Results 1 – 16 of 16) sorted by relevance

/rust/macros/
Dhelpers.rs26 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()
Dmodule.rs19 _ => 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()
Dpaste.rs22 panic!("expected identifier as modifier"); in concat()
37 v => panic!("unknown modifier `{v}`"), in concat()
41 _ => panic!("unexpected token in paste segments"), in concat()
Dconcat_idents.rs11 panic!("Expected Ident") in expect_ident()
Dpinned_drop.rs36 .unwrap_or_else(|| panic!("Expected an `impl` block implementing `PinnedDrop`.")); in pinned_drop()
Dvtable.rs26 _ => panic!("cannot locate main body of trait or impl block"), in vtable()
/rust/kernel/
Dlib.rs94 fn panic(info: &core::panic::PanicInfo<'_>) -> ! { in panic() function
Dstr.rs351 Err(_) => panic!("string contains interior NUL"),
/rust/kernel/sync/
Dlocked_by.rs124 panic!("mismatched owners"); in access()
150 panic!("mismatched owners"); in access_mut()
/rust/
Dbuild_error.rs30 panic!("{}", msg); in build_error()
Dcompiler_builtins.rs33 panic!($reason);
/rust/alloc/
Dalloc.rs386 panic!("allocation failed"); in handle_alloc_error()
419 panic!("memory allocation of {size} bytes failed") in __rdl_oom()
Dlib.rs279 std::panic::Location::caller().hash(&mut hasher); in test_rng()
Draw_vec.rs563 panic!("capacity overflow"); in capacity_overflow()
/rust/alloc/vec/
Dmod.rs1516 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/
Dmacros.rs1332 @acc($($acc)* $field: ::core::panic!(),),
1345 @acc($($acc)* $field: ::core::panic!(),),