rust/compiler/rustc_hir_analysis/src/check
Esteban Küber abf92c049d Use more accurate span for addr_of! suggestion
Use a multipart suggestion instead of a single whole-span replacement:

```
error[E0796]: creating a shared reference to a mutable static
  --> $DIR/reference-to-mut-static-unsafe-fn.rs:10:18
   |
LL |         let _y = &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);
   |                  ~~~~~~~~~ +
```
2024-07-18 18:39:20 +00:00
..
compare_impl_item delay bug in RPITIT refinement checking with resolution errors 2024-06-25 21:05:54 +00:00
check.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
compare_impl_item.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
dropck.rs Add blank lines after module-level // comments. 2024-06-20 09:23:20 +10:00
entry.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
errs.rs Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00:00
intrinsic.rs Fix intrinsic const parameter counting with effects 2024-07-07 11:30:03 +00:00
intrinsicck.rs Rollup merge of #126417 - beetrees:f16-f128-inline-asm-x86, r=Amanieu 2024-06-15 14:40:48 +02:00
mod.rs Move rustc_infer::infer::error_reporting to rustc_infer::error_reporting::infer 2024-07-15 20:16:12 -04:00
region.rs tail expression behind terminating scope 2024-06-18 04:14:43 +08:00
wfcheck.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00