<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/static/reference-to-mut-static.e2021.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-09-13T11:10:56+00:00</updated>
<entry>
<title>Update tests for hidden references to mutable static</title>
<updated>2024-09-13T11:10:56+00:00</updated>
<author>
<name>Obei Sideg</name>
<email>obei.sideg@gmail.com</email>
</author>
<published>2024-08-24T03:49:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b0ce1bc33d30d7d116ee9af60df873e04bd74dc'/>
<id>urn:sha1:3b0ce1bc33d30d7d116ee9af60df873e04bd74dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use more accurate span for `addr_of!` suggestion</title>
<updated>2024-07-18T18:39:20+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-11T20:12:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=abf92c049dcdacdadb0a7f45426df30f2dbdb0dc'/>
<id>urn:sha1:abf92c049dcdacdadb0a7f45426df30f2dbdb0dc</id>
<content type='text'>
Use a multipart suggestion instead of a single whole-span replacement:

```
error[E0796]: creating a shared reference to a mutable static
  --&gt; $DIR/reference-to-mut-static-unsafe-fn.rs:10:18
   |
LL |         let _y = &amp;X;
   |                  ^^ shared reference to mutable static
   |
   = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior
help: use `addr_of!` instead to create a raw pointer
   |
LL |         let _y = addr_of!(X);
   |                  ~~~~~~~~~ +
```
</content>
</entry>
<entry>
<title>Improve wording of static_mut_ref</title>
<updated>2024-02-18T03:01:40+00:00</updated>
<author>
<name>Obei Sideg</name>
<email>obei.sideg@gmail.com</email>
</author>
<published>2024-02-17T19:01:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=408eeae59d35cbcaab2cfb345d24373954e74fc5'/>
<id>urn:sha1:408eeae59d35cbcaab2cfb345d24373954e74fc5</id>
<content type='text'>
Rename `static_mut_ref` lint to `static_mut_refs`.
</content>
</entry>
</feed>
