Files
codex/tools/argument-comment-lint/ui/uncommented_literal.rs
T
Tamir Duberstein 17e5a4dbcb Upgrade the argument comment lint toolchain and Dylint (#49706)
## What changed

- Move the lint to `nightly-2026-08-20` and Dylint `6.1.0`, updating CI, release artifacts, Bazel configuration, and installation instructions.
- Adapt to the updated rustc and Clippy APIs, including resolving `Option::None` through type aliases when checking for uncommented arguments.
- Set the `chatgpt` crate's `recursion_limit` to `256`.

## Testing

Extend the UI fixture to expect an uncommented-argument warning for `OptionalString::None`, where `OptionalString` aliases `Option<String>`.

GitOrigin-RevId: 34e1b173972f0bfa9b6c8fd3342ca652539efe2f
2026-09-30 18:49:29 +00:00

22 lines
482 B
Rust

#![warn(uncommented_anonymous_literal_argument)]
struct Client;
impl Client {
fn set_flag(&self, enabled: bool) {}
}
fn create_openai_url(base_url: Option<String>, retry_count: usize) -> String {
let _ = (base_url, retry_count);
String::new()
}
fn main() {
let client = Client;
let _ = create_openai_url(None, 3);
client.set_flag(true);
type OptionalString = Option<String>;
let _ = create_openai_url(OptionalString::None, /*retry_count*/ 3);
}