about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-16 18:12:36 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-16 18:16:29 +0100
commit3921ed67b20a4541b1fa378de95c1dbe3d5cc5ef (patch)
treeaeaee46019b746fe8843d1d332cfc3cfae15d2eb /tests/codegen/patchable-function-entry
parent8d0c0eb9173723342844b02f7c0a4596168d26c5 (diff)
downloadrust-3921ed67b20a4541b1fa378de95c1dbe3d5cc5ef.tar.gz
rust-3921ed67b20a4541b1fa378de95c1dbe3d5cc5ef.zip
[`path_buf_push_overwrite`]: mark suggestion as `MaybeIncorrect`
Proposing to replace

```rust
let mut x = PathBuf::from("/foo");
x.push("/bar");
```

by

```rust
let mut x = PathBuf::from("/foo");
x.push("bar");
```

changes the content of `x` (`/bar` ⇒ `/foo/bar`).
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions