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
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/cfg/expanded-cfg.rs

22 lines
305 B
Rust
Raw Normal View History

compiletest: Validate pass modes harder
2019-06-12 17:56:51 +03:00
// check-pass
Remove unused `#![feature(custom_attribute)]`s
2019-06-08 11:35:30 +03:00
Add regression test
2016-04-08 23:41:27 +00:00
macro_rules! mac {
{} => {
#[cfg(attr)]
mod m {
#[lang_item]
fn f() {}
Test that a feature gated cfg variable in a `cfg_attr` on an unconfigured item is allowed
2016-05-18 01:50:29 +00:00
#[cfg_attr(target_thread_local, custom)]
fn g() {}
Add regression test
2016-04-08 23:41:27 +00:00
}
Test that unconfigured macro-expanded macro invocations are not expanded.
2016-05-18 02:02:04 +00:00
#[cfg(attr)]
unconfigured_invocation!();
Add regression test
2016-04-08 23:41:27 +00:00
}
}
mac! {}
Removed `#[rustc_error]` from tests that are all `// compile-pass`. I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-10-31 13:08:01 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2411ms Template: 5ms
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