fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
600 B12 linesraw
1error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
2  --> $DIR/mem_replace_macro.rs:10:13
3   |
4LL |     inline!(std::mem::replace($s, Default::default()));
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::mem_replace_with_default)]`
9   = note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11error: aborting due to previous error
12