Lines Matching full:expect
294 On top of that, Rust provides the ``expect`` attribute which takes this further.
301 #[expect(dead_code)]
309 3 | #[expect(dead_code)]
314 This means that ``expect``\ s do not get forgotten when they are not needed, which
328 Thus prefer ``expect`` over ``allow`` unless:
334 a conditional ``expect`` (i.e. ``cfg_attr(..., expect(...))``). Otherwise,
355 ``expect`` here?
359 #[expect(dead_code)]
368 configuration. Therefore, in cases like this, we cannot use ``expect`` as-is.
382 An alternative would be using a conditional ``expect``:
386 #[cfg_attr(not(CONFIG_X), expect(dead_code))]
398 Therefore, it is likely that it is not worth using conditional ``expect``\ s when