diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-12-17 05:37:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-17 05:37:11 -0500 |
| commit | 40ce4e0ccfd9d29d992591e3285829c6ee9f1612 (patch) | |
| tree | b236910179af5bca7c174dc38d34571e75ccfece /compiler/rustc_interface/src/interface.rs | |
| parent | 68c56f627495904f51ff805a4c5799242f2ef510 (diff) | |
| parent | 70a0dc1f7e964e249c4bc7c08bfeb0e96ba5deb7 (diff) | |
| download | rust-40ce4e0ccfd9d29d992591e3285829c6ee9f1612.tar.gz rust-40ce4e0ccfd9d29d992591e3285829c6ee9f1612.zip | |
Rollup merge of #134397 - Enselic:raw-mut, r=compiler-errors
rustc_borrowck: Suggest changing `&raw const` to `&raw mut` if applicable
Closes #127562
For reference, here is the diff compared to the original error reported in that issue before #134244 stopped suggesting the invalid syntax:
```
diff --git a/tests/ui/borrowck/no-invalid-mut-suggestion-for-raw-pointer-issue-127562.stderr b/tests/ui/borrowck/no-invalid-mut-suggestion-for-raw-pointer-issue-127562.stderr
index 0da5d15cf7f..dbe834b6b78 100644
--- a/tests/ui/borrowck/no-invalid-mut-suggestion-for-raw-pointer-issue-127562.stderr
+++ b/tests/ui/borrowck/no-invalid-mut-suggestion-for-raw-pointer-issue-127562.stderr
``@@`` -6,8 +6,8 ``@@`` LL | unsafe { *ptr = 3; }
|
help: consider changing this to be a mutable pointer
|
-LL | let ptr = &mut raw const val;
- | +++
+LL | let ptr = &raw mut val;
+ | ~~~
error: aborting due to 1 previous error
```
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
0 files changed, 0 insertions, 0 deletions
