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-fulldeps/lint-plugin.rs

14 lines
283 B
Rust
Raw Normal View History

Introduce 'run-pass' header to 'ui' tests in compiletest. Fix issue #36516. The 'run-pass' header cause a 'ui' test to execute the result. It is used to test the lint output, at the same time ensure those lints won't cause the source code to become compile-fail. 12 run-pass/run-pass-fulldeps tests gained the header and are moved to ui/ui-fulldeps. After this move, no run-pass/run-pass-fulldeps tests should rely on the compiler's JSON message. This allows us to stop passing `--error-format json` in run-pass tests, thus fixing #36516.
2017-05-13 17:54:50 +08:00
// run-pass
Moved issue tests to subdirs and normalised names.
2019-03-12 00:49:17 +00:00
// aux-build:lint-plugin-test.rs
Test lint plugins
2014-06-18 13:46:48 -07:00
// ignore-stage1
Replace #[phase] with #[plugin] / #[macro_use] / #[no_link]
2014-12-31 20:43:46 -08:00
#![feature(plugin)]
Update error annotations in ui-fulldeps tests that successfully compile
2019-10-24 00:00:00 +00:00
#![plugin(lint_plugin_test)] //~ WARNING use of deprecated attribute
Fix compiletest so it respects warnings for run-pass.
2016-08-22 16:51:37 -07:00
#![allow(dead_code)]
Test lint plugins
2014-06-18 13:46:48 -07:00
fn lintme() { } //~ WARNING item is named 'lintme'
#[allow(test_lint)]
pub fn main() {
fn lintme() { }
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1576ms 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