diff options
| author | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-07-10 14:17:10 +0800 |
|---|---|---|
| committer | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-07-16 23:40:49 +0800 |
| commit | af39c0c57cb23678daaeb75ea729edd71aba14b8 (patch) | |
| tree | e1af792a631447d401ec241303b431849e7b3946 /compiler/rustc_session/src | |
| parent | 0d11be5aabe0cd49609fff5fce57c4691a22fe55 (diff) | |
| download | rust-af39c0c57cb23678daaeb75ea729edd71aba14b8.tar.gz rust-af39c0c57cb23678daaeb75ea729edd71aba14b8.zip | |
Emit warning when there is no space between `-o` and confusing arg
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 4627c2978fc..7f2f5f1c5a4 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -1653,6 +1653,11 @@ impl RustcOptGroup { OptionKind::FlagMulti => options.optflagmulti(short_name, long_name, desc), }; } + + /// This is for diagnostics-only. + pub fn long_name(&self) -> &str { + self.long_name + } } pub fn make_opt( |
