diff options
| author | bors <bors@rust-lang.org> | 2025-05-07 23:03:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-07 23:03:25 +0000 |
| commit | ae3e8c6191fb2bf9394ea4201adaf7b1ac496120 (patch) | |
| tree | 382cf80145b1f54cbb94e47671ab3cb4f7306108 /compiler/rustc_driver_impl/src | |
| parent | e9f8103f93f8ce2fa2c15c0c6796ec821f8ae15d (diff) | |
| parent | 5e5043d7331f992ad91d199f9f89c4914edad043 (diff) | |
| download | rust-ae3e8c6191fb2bf9394ea4201adaf7b1ac496120.tar.gz rust-ae3e8c6191fb2bf9394ea4201adaf7b1ac496120.zip | |
Auto merge of #140751 - GuillaumeGomez:rollup-eahw4ta, r=GuillaumeGomez
Rollup of 8 pull requests Successful merges: - #140234 (Separate dataflow analysis and results) - #140614 (Correct warning message in restricted visibility) - #140671 (Parser: Recover error from named params while parse_path) - #140700 (Don't crash on error codes passed to `--explain` which exceed our internal limit of 9999 ) - #140706 ([rustdoc] Ensure that temporary doctest folder is correctly removed even if doctests failed) - #140734 (Fix regression from #140393 for espidf / horizon / nuttx / vita) - #140741 (add armv5te-unknown-linux-gnueabi target maintainer) - #140745 (run-make-support: set rustc dylib path for cargo wrapper) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index fdf8053b15a..95cfe221d3f 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -463,6 +463,7 @@ fn handle_explain(early_dcx: &EarlyDiagCtxt, registry: Registry, code: &str, col // Allow "E0123" or "0123" form. let upper_cased_code = code.to_ascii_uppercase(); if let Ok(code) = upper_cased_code.strip_prefix('E').unwrap_or(&upper_cased_code).parse::<u32>() + && code <= ErrCode::MAX_AS_U32 && let Ok(description) = registry.try_find_description(ErrCode::from_u32(code)) { let mut is_in_code_block = false; |
