about summary refs log tree commit diff
path: root/src/test/ui/invalid
AgeCommit message (Collapse)AuthorLines
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-02-05Selectively disable sanitizer instrumentationTomasz Miąsko-0/+15
Add `no_sanitize` attribute that allows to opt out from sanitizer instrumentation in an annotated function.
2020-01-24Normalise notes with the/isvarkor-1/+1
2019-12-12Move `allow_c_varadic` logic to `ast_validation`.Mazdak Farrokhzad-18/+0
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-1/+1
2019-10-31Update ui testsGuillaume Gomez-1/+2
2019-10-17Plugins deprecation: don’t suggest simply removing the attributeSimon Sapin-2/+2
Building Servo with a recent Nightly produces: ```rust warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597 --> components/script/lib.rs:14:1 | 14 | #![plugin(script_plugins)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute | = note: `#[warn(deprecated)]` on by default ``` First, linking to https://github.com/rust-lang/rust/issues/29597 is not ideal since there is pretty much no discussion there of the deprecation and what can be used instead. This PR changes the link to the deprecation PR which does have more discussion. Second, the “remove this attribute” suggestion is rather unhelpful. Just because a feature is deprecated doesn’t mean that simply removing its use without a replacement is acceptable. In the case of custom lint, there is no replacement available. Prefixing a message with “help:” when telling users that they’re screwed honestly feels disrespectful. This PR also changes the message to be more factual.
2019-10-03plugin_registrary: use normal deprecation instead of hard coded warning.Mazdak Farrokhzad-8/+6
2019-10-03Deprecate `#![plugin]` and `#[plugin_registrar]`.Mazdak Farrokhzad-3/+14
2019-07-21normalize use of backticks in compiler messages for librustc_lintSamy Kacimi-1/+1
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-23Tweak spans for E0599Esteban Küber-3/+1
2019-03-11Update testsVadim Petrochenkov-7/+7
2019-02-27Rename variadic to c_variadicDan Robertson-2/+2
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
2018-12-26Fixed more tests.Alexander Regueiro-2/+4
2018-12-25Remove licensesMark Rousskov-78/+19
2018-09-13Suggest valid crate type if invalidPhilipp Hansch-3/+93
This adds a suggestion to the `invalid_crate_types` lint. The suggestion is based on the Levenshtein distance to existing crate types. If no suggestion is found it will show the lint without any suggestions.
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+189