<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/unop-move-semantics.stderr, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-05-21T02:55:59+00:00</updated>
<entry>
<title>Move 100 entries from tests/ui into subdirs</title>
<updated>2024-05-21T02:55:59+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-05-19T23:11:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d89500843caf666998619bbc0c88d5857726963d'/>
<id>urn:sha1:d89500843caf666998619bbc0c88d5857726963d</id>
<content type='text'>
- Move super-fast-paren-parsing test into ui/parser
- Move stmt_expr_attrs test into ui/feature-gates
- Move macro tests into ui/macros
- Move global_asm tests into ui/asm
- Move env tests into ui/process
- Move xcrate tests into ui/cross-crate
- Move unop tests into ui/unop
- Move backtrace tests into ui/backtrace
- Move check-static tests into ui/statics
- Move expr tests into ui/expr
- Move optimization fuel tests into ui/fuel
- Move ffi attribute tests into ui/ffi-attrs
- Move suggestion tests into ui/suggestions
- Move main tests into ui/fn-main
- Move lint tests into ui/lint
- Move repr tests into ui/repr
- Move intrinsics tests into ui/intrinsics
- Move tool lint tests into ui/tool-attributes
- Move return tests into ui/return
- Move pattern tests into ui/patttern
- Move range tests into ui/range
- Move foreign-fn tests into ui/foreign
- Move orphan-check tests into ui/coherence
- Move inference tests into ui/inference
- Reduce ROOT_ENTRY_LIMIT
</content>
</entry>
<entry>
<title>Mention when type parameter could be `Clone`</title>
<updated>2024-04-24T22:21:15+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-04-18T22:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d68f2a6b71df3a4524c390f683dbd7a925ed207f'/>
<id>urn:sha1:d68f2a6b71df3a4524c390f683dbd7a925ed207f</id>
<content type='text'>
```
error[E0382]: use of moved value: `t`
  --&gt; $DIR/use_of_moved_value_copy_suggestions.rs:7:9
   |
LL | fn duplicate_t&lt;T&gt;(t: T) -&gt; (T, T) {
   |                   - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL |     (t, t)
   |      -  ^ value used here after move
   |      |
   |      value moved here
   |
help: if `T` implemented `Clone`, you could clone the value
  --&gt; $DIR/use_of_moved_value_copy_suggestions.rs:4:16
   |
LL | fn duplicate_t&lt;T&gt;(t: T) -&gt; (T, T) {
   |                ^ consider constraining this type parameter with `Clone`
...
LL |     (t, t)
   |      - you could clone this value
help: consider restricting type parameter `T`
   |
LL | fn duplicate_t&lt;T: Copy&gt;(t: T) -&gt; (T, T) {
   |                 ++++++
```

The `help` is new. On ADTs, we also extend the output with span labels:

```
error[E0507]: cannot move out of static item `FOO`
  --&gt; $DIR/issue-17718-static-move.rs:6:14
   |
LL |     let _a = FOO;
   |              ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
   |
note: if `Foo` implemented `Clone`, you could clone the value
  --&gt; $DIR/issue-17718-static-move.rs:1:1
   |
LL | struct Foo;
   | ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL |     let _a = FOO;
   |              --- you could clone this value
help: consider borrowing here
   |
LL |     let _a = &amp;FOO;
   |              +
```
</content>
</entry>
<entry>
<title>Account for UnOps in borrowck message</title>
<updated>2024-03-13T23:05:17+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-03-12T17:21:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0953608debfa9d3df955f976e7bc857584ba1ed0'/>
<id>urn:sha1:0953608debfa9d3df955f976e7bc857584ba1ed0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not set up wrong span for adjustments</title>
<updated>2023-07-10T20:09:26+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-06-22T20:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe870424a75aeb4727f9516808b2f5735d014ab6'/>
<id>urn:sha1:fe870424a75aeb4727f9516808b2f5735d014ab6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak E0597</title>
<updated>2023-01-15T19:46:20+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-01-15T03:06:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=656db98bd99caf7e5c5e81ad11ed8922e28c46fb'/>
<id>urn:sha1:656db98bd99caf7e5c5e81ad11ed8922e28c46fb</id>
<content type='text'>
CC #99430
</content>
</entry>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
</feed>
