about summary refs log tree commit diff
path: root/src/test/ui/invalid
AgeCommit message (Collapse)AuthorLines
2022-02-16MemTagSanitizer SupportIvan Lozano-1/+1
Adds support for the LLVM MemTagSanitizer.
2021-09-25Check for macros in built-in attributes that don't support them.Eric Huss-0/+15
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-10/+3
Instead of updating global state to mark attributes as used, we now explicitly emit a warning when an attribute is used in an unsupported position. As a side effect, we are to emit more detailed warning messages (instead of just a generic "unused" message). `Session.check_name` is removed, since its only purpose was to mark the attribute as used. All of the callers are modified to use `Attribute.has_name` Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed used' attribute is implemented by simply not performing any checks in `CheckAttrVisitor` for a particular attribute. We no longer emit unused attribute warnings for the `#[rustc_dummy]` attribute - it's an internal attribute used for tests, so it doesn't mark sense to treat it as 'unused'. With this commit, a large source of global untracked state is removed.
2021-05-12entirely remove rustc_args_required_const attributeRalf Jung-92/+0
2021-05-08Support -C passes in NewPMNikita Popov-0/+8
And report an error if parsing the additional pass pipeline fails. Threading through the error accounts for most of the changes here.
2021-03-16Use delay_span_bug instead of panic in layout_scalar_valid_rangeTomasz Miąsko-1/+14
83054 introduced validation of scalar range attributes, but panicking code that uses the attribute remained reachable. Use `delay_span_bug` instead to avoid the ICE.
2021-03-11Validate rustc_layout_scalar_valid_range_{start,end} attributesTomasz Miąsko-0/+54
2021-02-25Improve checking for attributeAmanieu d'Antras-16/+29
2021-02-25Fix testsAmanieu d'Antras-4/+12
2021-02-25Address review commentsAmanieu d'Antras-0/+3
2021-02-23Move tests to subdirectoryAmanieu d'Antras-0/+193
2021-02-07HWASan supportTri Vo-1/+1
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