diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-05-12 07:18:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-12 07:18:03 +0900 |
| commit | 9ad5c4d8ea514a7685c2c9f7ee2e96206d477311 (patch) | |
| tree | f5ef49c225c050982e925015cdd781167262eb9c | |
| parent | 6ec4f91610901a023a6503bf0b4c1c40f4b00bf2 (diff) | |
| parent | 41779f60ecdc96bddc88cd0d7184fa67e411b894 (diff) | |
| download | rust-9ad5c4d8ea514a7685c2c9f7ee2e96206d477311.tar.gz rust-9ad5c4d8ea514a7685c2c9f7ee2e96206d477311.zip | |
Rollup merge of #85162 - LingMan:patch-1, r=varkor
Fix typo in variable name All other sibling functions call this variable "slot", so "slote" was most likely a typo.
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 10e195f4f25..ca8bb3af2ba 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -621,9 +621,9 @@ mod parse { true } - crate fn parse_linker_flavor(slote: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool { + crate fn parse_linker_flavor(slot: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool { match v.and_then(LinkerFlavor::from_str) { - Some(lf) => *slote = Some(lf), + Some(lf) => *slot = Some(lf), _ => return false, } true |
