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
cc12a1b5119b003132a16e83c19642bb6584f2df
rust/tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs

8 lines
197 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
#![crate_type = "proc-macro"]
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: 3857ms 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