Home
last modified time | relevance | path

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

/rust/macros/
A 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()
A Dmodule.rs19 _ => panic!("Expected ',' or end of array"), in expect_string_array()
122 Some(_) => panic!("Expected Ident or end"), in parse()
127 panic!("Duplicated key \"{key}\". Keys can only be specified once."); in parse()
140 _ => panic!("Unknown key \"{key}\". Valid keys are: {EXPECTED_KEYS:?}."), in parse()
152 panic!("Missing required key \"{key}\"."); in parse()
164 panic!("Keys are not ordered as expected. Order them like: {ordered_keys:?}."); in parse()
A Dkunit.rs14 panic!("Missing test name in `#[kunit_tests(test_name)]` macro") in kunit_tests()
18 panic!("The test suite name `{attr}` exceeds the maximum length of 255 bytes") in kunit_tests()
38 _ => panic!("Cannot locate main body of module"), in kunit_tests()
A Dpaste.rs30 panic!("expected identifier as modifier"); in concat_helper()
45 v => panic!("unknown modifier `{v}`"), in concat_helper()
53 token => panic!("unexpected token in paste segments: {token:?}"), in concat_helper()
A Dconcat_idents.rs11 panic!("Expected Ident") in expect_ident()
A Dvtable.rs26 _ => panic!("cannot locate main body of trait or impl block"), in vtable()
/rust/
A Dbuild_error.rs30 panic!("{}", msg); in build_error()
A Dcompiler_builtins.rs34 panic!($reason);
/rust/kernel/sync/
A Dlocked_by.rs134 panic!("mismatched owners"); in access()
163 panic!("mismatched owners"); in access_mut()
/rust/kernel/
A Dlib.rs211 fn panic(info: &core::panic::PanicInfo<'_>) -> ! { in panic() function
328 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
A Dtask.rs417 let loc = core::panic::Location::caller(); in might_sleep()
A Dkunit.rs267 panic!(concat!(
A Derror.rs28 None => panic!("Invalid errno in `declare_err!`"),
A Dstr.rs600 Err(_) => panic!("string contains interior NUL"),
/rust/kernel/block/mq/
A Drequest.rs247 panic!("Request refcount zero on clone") in inc_ref()
264 panic!("Request reached refcount zero in Rust abstractions"); in dec_ref()
/rust/pin-init/internal/src/
A Dpinned_drop.rs38 .unwrap_or_else(|| panic!("Expected an `impl` block implementing `PinnedDrop`.")); in pinned_drop()
/rust/pin-init/src/
A Dmacros.rs1364 @acc($($acc)* $field: ::core::panic!(),),
1377 @acc($($acc)* $field: ::core::panic!(),),

Completed in 25 milliseconds