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
5d26f58423f72e300ef48df591c08e3d446b51aa
rust/tests/ui/lint/lint-non-snake-case-crate-bin.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
121 B
Rust
Raw Normal View History

Only run lint tests on x86_64-unknown-linux-gnu We're trying to test lint behavior, not per-target crate-type support.
2024-03-03 13:24:28 +00:00
//@ only-x86_64-unknown-linux-gnu
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
//@ check-pass
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"]
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
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: 3828ms Template: 4ms
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