Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
6e355ae44c319d42ffdff6a1ed175b41b1525507
rust/tests/ui/lint/lint-non-snake-case-crate-cdylib.rs

7 lines
159 B
Rust
Raw Normal View History

Don't lint snake-case on executable crate name Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2023-05-03 14:53:54 +03:00
#![crate_type = "cdylib"]
Lint non-snake-case crate names Passing a non-snake-case name to #![crate_name] or --crate-name will now yield a warning from the `non_snake_case` lint.
2015-04-18 13:39:10 +12:00
#![crate_name = "NonSnakeCase"]
improve non_snake_case diagnostics Use a structured suggestion and tighten the span to just the identifier.
2019-01-04 10:19:52 -05:00
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Lint non-snake-case crate names Passing a non-snake-case name to #![crate_name] or --crate-name will now yield a warning from the `non_snake_case` lint.
2015-04-18 13:39:10 +12:00
#![deny(non_snake_case)]
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2921ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API