about summary refs log tree commit diff
path: root/library/std/src/sys/unix/time.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2022-11-20 13:15:59 +0900
committerGitHub <noreply@github.com>2022-11-20 13:15:59 +0900
commit3e937d02a012dbce129cc7773517a9bb24f5bf93 (patch)
treeaf8a1a784bf9297588fe05959ed2757d4bdcfd9d /library/std/src/sys/unix/time.rs
parent785237d3924d4fb7b23803c964972dce82de2161 (diff)
parent3046af0cf652a4ccecd823d7b5cf81fbf026ab38 (diff)
downloadrust-3e937d02a012dbce129cc7773517a9bb24f5bf93.tar.gz
rust-3e937d02a012dbce129cc7773517a9bb24f5bf93.zip
Rollup merge of #104467 - fuzzypixelz:fix/attempt-to-substract-with-overflow, r=compiler-errors
Fix substraction with overflow in `wrong_number_of_generic_args.rs`

Fixes #104287

This issue happens in the `suggest_moving_args_from_assoc_fn_to_trait_for_qualified_path` function, which seems to run before the error checking facilities can catch an invalid use of generic arguments. Thus we get a subtraction with overflow because the code implicitly assumes that the source program makes sense (or is this assumption not true even if the program is correct?).
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
0 files changed, 0 insertions, 0 deletions