about summary refs log tree commit diff
path: root/src/test/ui/malformed
AgeCommit message (Collapse)AuthorLines
2021-02-07expand/resolve: Turn `#[derive]` into a regular macro attributeVadim Petrochenkov-24/+8
2020-12-09Accept arbitrary expressions in key-value attributes at parse timeVadim Petrochenkov-21/+10
2020-11-19expand: Stop derive expansion un unexpected targets earlyVadim Petrochenkov-9/+2
Collect derive placeholders using `collect` instead of `push`
2020-09-08Update testsGuillaume Gomez-1/+2
2020-09-02pretty: trim paths of unique symbolsDan Aloni-6/+6
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-07-27mv std libs to library/mark-2/+2
2020-04-18Do not emit note for projected derived obligationsEsteban Küber-2/+0
2020-04-18Maintain chain of derived obligationsEsteban Küber-0/+12
When evaluating the derived obligations from super traits, maintain a reference to the original obligation in order to give more actionable context in the output.
2020-04-11rustc: Add a warning count upon completionRoccoDev-3/+3
2020-03-29#[link]: mention wasm_import_module instead of cfgJonas Schievink-2/+2
2020-02-27error_derive_forbidden_on_non_adt: be more gracefulMazdak Farrokhzad-0/+36
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+8
2020-01-12Add backticks in appropriate placesvarkor-1/+1
2019-12-06parse_meta: ditch parse_in_attrMazdak Farrokhzad-0/+35
2019-12-06derive: avoid parse_in_attrMazdak Farrokhzad-9/+26
2019-12-06cfg_attr: avoid .outer_tokensMazdak Farrokhzad-4/+6
2019-12-01rustc_plugin: Remove support for plugin argumentsVadim Petrochenkov-4/+4
2019-11-08Rollup merge of #66007 - estebank:remove-here, r=CentrilMazdak Farrokhzad-2/+2
Remove "here" from "expected one of X here"
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-2/+2
2019-11-06ill_formed_attribute_input -> denyMazdak Farrokhzad-27/+23
2019-11-02Update error annotations in tests that successfully compileTomasz Miąsko-9/+19
Those annotation are silently ignored rather than begin validated against compiler output. Update them before validation is enabled, to avoid test failures.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+2
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-17Plugins deprecation: don’t suggest simply removing the attributeSimon Sapin-6/+6
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-18/+12
2019-10-03Deprecate `#![plugin]` and `#[plugin_registrar]`.Mazdak Farrokhzad-3/+36
2019-08-23`--bless` some tests due to message format change.Mazdak Farrokhzad-4/+2
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-22Lint empty 'derive()' as unused attribute.Mazdak Farrokhzad-10/+1
2019-06-08Introduce `#[rustc_dummy]` attribute and use it in testsVadim Petrochenkov-9/+9
Unlike other built-in attributes, this attribute accepts any input
2019-05-25Reword malformed attribute input diagnosticsEsteban Küber-36/+48
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
2019-05-24Revert changes that belong to separate PREsteban Küber-21/+12
2019-05-24review commentsEsteban Küber-1/+1
2019-05-24Tweak macro parse errors when reaching EOF during macro call parseEsteban Küber-25/+31
- Add detail on origin of current parser when reaching EOF and stop saying "found <eof>" and point at the end of macro calls - Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error
2019-05-11Move literal parsing code into a separate fileVadim Petrochenkov-4/+4
Remove some dead code
2019-05-11Simplify conversions between tokens and semantic literalsVadim Petrochenkov-9/+5
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+0
2019-04-15Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of loopingJohn Kåre Alsaker-2/+2
2019-03-11Update testsVadim Petrochenkov-15/+15
2019-02-27Mention `unwind(aborts)` in diagnostics for `#[unwind]`Vadim Petrochenkov-0/+51
Simplify input validation for `#[unwind]`, add tests
2019-02-25Stabilize `unrestricted_attribute_tokens`Vadim Petrochenkov-4/+0
2019-02-25Restrict value in key-value attributes to literalsVadim Petrochenkov-0/+53
2019-01-13Address review commentsVadim Petrochenkov-5/+5
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-11/+103
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-0/+2
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-47/+7
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+120