rust/tests
bors 496c11005c Auto merge of #10679 - y21:better-const-ctx-check, r=Jarcho
use `is_inside_const_context` for `in_constant` util fn

Fixes #10452.

This PR improves the `in_constant` util function to detect more cases of const contexts. Previously this function would not detect cases like expressions in array length position or expression in an inline const block `const { .. }`.

changelog: [`bool_to_int_with_if`]: recognize array length operand as being in a const context and don't suggest `usize::from` there
2023-04-23 13:33:51 +00:00
..
test_utils
ui Auto merge of #10679 - y21:better-const-ctx-check, r=Jarcho 2023-04-23 13:33:51 +00:00
ui-cargo Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
ui-internal Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
ui-toml Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
dogfood.rs Fix dogfood test 2023-04-23 03:44:24 -07:00
integration.rs
lint_message_convention.rs Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00
missing-test-files.rs
versioncheck.rs
workspace.rs Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00