about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-04-07 22:46:53 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-04-07 23:40:32 +0400
commitd5440926e2832f810cadeccff6e2ca5332e11466 (patch)
tree4a3c6a522601fa3a82a38f05382a3d8361661232 /library/std/src/sys/unix/stack_overflow.rs
parentfa723160318fac5f3fa6f4141cfc41c0606a3008 (diff)
downloadrust-d5440926e2832f810cadeccff6e2ca5332e11466.tar.gz
rust-d5440926e2832f810cadeccff6e2ca5332e11466.zip
Suggest replacing typeof(...) with an actual type
This commit suggests replacing typeof(...) with an actual type of "...",
for example in case of `typeof(1)` we suggest replacing it with `i32`.

If the expression
- Is not const (`{ let a = 1; let _: typeof(a); }`)
- Can't be found (`let _: typeof(this_variable_does_not_exist)`)
- Or has non-suggestable type (closure, generator, error, etc)
we don't suggest anything.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions