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
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
rust/tests/ui/cfg/crate-attributes-using-cfg_attr.rs

12 lines
271 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ check-fail
compiletest: add enable-by-default check-cfg
2024-04-07 00:33:37 +02:00
//@ compile-flags:--cfg foo --check-cfg=cfg(foo)
Future compatibility warning on cfg_attr on crate_type and crate_name
2021-04-01 11:34:39 +02:00
#![cfg_attr(foo, crate_type="bin")]
//~^ERROR `crate_type` within
Remove deduplication of early lints We already have a general mechanism for deduplicating reported lints, so there's no need to have an additional one for early lints specifically. This allows us to remove some `PartialEq` impls.
2022-01-23 17:05:48 -05:00
//~|ERROR `crate_type` within
Future compatibility warning on cfg_attr on crate_type and crate_name
2021-04-01 11:34:39 +02:00
#![cfg_attr(foo, crate_name="bar")]
//~^ERROR `crate_name` within
Remove deduplication of early lints We already have a general mechanism for deduplicating reported lints, so there's no need to have an additional one for early lints specifically. This allows us to remove some `PartialEq` impls.
2022-01-23 17:05:48 -05:00
//~|ERROR `crate_name` within
Future compatibility warning on cfg_attr on crate_type and crate_name
2021-04-01 11:34:39 +02:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1197ms Template: 3ms
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