We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4967fd2 + c0978c4 commit aa0d277Copy full SHA for aa0d277
src/doc/rustc-dev-guide/src/git.md
@@ -142,7 +142,8 @@ The most common cause is that you rebased after a change and ran `git add .` wit
142
`x` to update the submodules. Alternatively, you might have run `cargo fmt` instead of `x fmt`
143
and modified files in a submodule, then committed the changes.
144
145
-To fix it, do the following things:
+To fix it, do the following things (if you changed a submodule other than cargo,
146
+replace `src/tools/cargo` with the path to that submodule):
147
148
1. See which commit has the accidental changes: `git log --stat -n1 src/tools/cargo`
149
2. Revert the changes to that commit: `git checkout <my-commit>~ src/tools/cargo`. Type `~`
0 commit comments