about summary refs log tree commit diff
path: root/src/test/ui/deprecation
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-2013/+0
2022-10-13fix small word dupe typosRageking8-1/+1
2022-08-27use smaller span for suggestionsTakayuki Maeda-1/+3
2022-06-29Use verbose help for deprecation suggestionChris Denton-5/+27
2022-06-16diagnostics: fix trailing spaceklensy-1/+1
2022-06-14Remove `rustc_deprecated` diagnosticsJacob Pratt-34/+0
2022-04-14Use native duplicate attribute checkJacob Pratt-10/+14
2022-04-14Error on `#[rustc_deprecated]`Jacob Pratt-2/+36
2022-04-14Remove use of `#[rustc_deprecated]`Jacob Pratt-1/+1
2022-03-15Include tracking issue in diagnosticJacob Pratt-1/+1
2022-03-09Permit `#[deprecated]` in stdlibJacob Pratt-25/+13
2022-03-09New `deprecated_suggestion` feature, use in testsJacob Pratt-3/+22
2022-03-04Change `rustc_deprecated` to use `note`Jacob Pratt-2/+2
This keeps `reason` around for the time being. This is necessary to avoid breakage during the bootstrap process. This change, as a whole, brings `#[rustc_deprecated]` more in line with `#[deprecated]`.
2022-03-03Gate stability attrs with other attributes.Camille GILLOT-2/+0
2022-02-24don't special case `DefKind::Ctor` in encodinglcnr-18/+18
2021-11-09Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995bors-37/+45
Don't abort compilation after giving a lint error The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors. Closes https://github.com/rust-lang/rust/issues/82761. This is a WIP because I have a feeling it will exit with 0 even if there were lint errors; I don't have a computer that can build rustc locally at the moment.
2021-11-08Don't abort compilation after giving a lint errorJoshua Nelson-37/+45
The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors.
2021-11-06Move some tests to more reasonable directoriesCaio-0/+40
2021-10-24Always sort suggestions before emitting themEsteban Kuber-4/+4
2021-10-15Bless testsCameron Steffen-1/+1
2021-08-11Modify structured suggestion outputEsteban Küber-3/+3
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-06-15Use last segmenthi-rustin-3/+2
2021-06-15shrinking the deprecated method spanhi-rustin-59/+93
2021-06-04Added a new test demonstrating the issue requiring revertRich Kadel-0/+18
Note, the `Debug` impl is required.
2021-06-04Revert "shrinking the deprecated method span"Rich Kadel-94/+66
2021-05-24shrinking the deprecated method spanhi-rustin-66/+94
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-2/+2
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
2021-05-07shrinking the deprecated method spanhi-rustin-32/+70
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-129/+126
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2021-02-10Inherit `#[stable(..)]` annotations in enum variants and fields from its itemEsteban Küber-10/+8
2020-12-16Allow `since="TBD"` for rustc_deprecatedbstrie-7/+18
2020-11-02Improve deprecation attribute diagnostic messages.Mara Bos-9/+5
(From the PR feedback.) Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
2020-11-01Add test for #[deprecated] attribute on trait impl block.Mara Bos-1/+18
2020-11-01Use the right span for errors about #[deprecated] attributes.Mara Bos-5/+11
2020-09-25Move from {{closure}}#0 syntax to {closure#0} for (def) path componentsmarmeladema-2/+2
2020-07-26report kind of deprecated item in messageAndy Russell-309/+309
This is important for fields, which are incorrectly referred to as "items".
2020-04-23Moving more build-pass tests to check-passVal Markovic-2/+2
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-04-11rustc: Add a warning count upon completionRoccoDev-0/+8
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-2/+2
2020-02-06rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.Eduard-Mihai Burtescu-2/+2
2020-01-24Normalise notes with the/isvarkor-6/+6
2020-01-12Fix formatting ellipses at the end of some diagnosticsvarkor-1/+1
2020-01-12Add backticks in appropriate placesvarkor-8/+6
2019-11-15find_deprecation: deprecation attr may be ill-formed meta.Mazdak Farrokhzad-0/+19
2019-11-10Make error and warning annotations mandatory in UI testsTomasz Miąsko-0/+1
This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+1
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-11test: extend derive_on_deprecated to include more derivationsDan Aloni-0/+6
2019-10-01Update ui testsGuillaume Gomez-1/+1
2019-09-30update ui testsGuillaume Gomez-1/+1
2019-09-08Update test stderr with results of enabling unused lintsMark Rousskov-1/+1