]> git.lizzy.rs Git - rust.git/commit
Merge #10105
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 24 Sep 2021 15:12:17 +0000 (15:12 +0000)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 15:12:17 +0000 (15:12 +0000)
commiteb17e90eba1113702349af93c0ff51269123b922
treebaabf607f7b1bb100a9cd32d3f2b69b8498389fe
parent377476ac458a24c2bb2f02917afe023f4b099b94
parentc87b860d3db771cbe3649956113d64697744dd05
Merge #10105

10105: RfC: Use `todo!()` instead of `()` for missing fields r=jonas-schievink a=jo-so

Most commonly a field of a struct can be initialized with its default value than an empty tuple.

Co-authored-by: Jörg Sommer <joerg@jo-so.de>
crates/rust-analyzer/tests/slow-tests/tidy.rs