Rageking8
d1982bd0af
fix small word dupe typos
2022-10-13 00:53:46 +08:00
Takayuki Maeda
b33c3d6cd6
use smaller span for suggestions
2022-08-27 15:22:08 +09:00
Chris Denton
3cbf864d43
Use verbose help for deprecation suggestion
2022-06-29 09:53:15 +01:00
klensy
0ff8ae3111
diagnostics: fix trailing space
2022-06-16 14:40:28 +03:00
Jacob Pratt
fb05b53745
Remove rustc_deprecated
diagnostics
2022-06-14 19:46:13 -04:00
Jacob Pratt
0b3db4e4ee
Use native duplicate attribute check
2022-04-14 21:19:48 -04:00
Jacob Pratt
e46f8b23dd
Error on #[rustc_deprecated]
2022-04-14 21:19:44 -04:00
Jacob Pratt
4fbe73e0b7
Remove use of #[rustc_deprecated]
2022-04-14 01:33:13 -04:00
Jacob Pratt
08fbe3dafa
Include tracking issue in diagnostic
2022-03-15 19:38:57 -04:00
Jacob Pratt
38478ea0cd
Permit #[deprecated]
in stdlib
2022-03-09 16:32:47 -05:00
Jacob Pratt
5636655d0f
New deprecated_suggestion
feature, use in tests
2022-03-09 16:32:47 -05:00
Jacob Pratt
6efc8e34d8
Change rustc_deprecated
to use note
...
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-04 18:15:49 -05:00
Camille GILLOT
3c7947ee43
Gate stability attrs with other attributes.
2022-03-03 18:50:26 +01:00
lcnr
ae45e8a638
don't special case DefKind::Ctor
in encoding
2022-02-24 14:46:11 +01:00
bors
214cd1f228
Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995
...
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-09 08:21:10 +00:00
Joshua Nelson
0ac13bd430
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.
2021-11-08 01:22:28 +00:00
Caio
7fd15f0900
Move some tests to more reasonable directories
2021-11-06 15:35:20 -03:00
Esteban Kuber
881a50c0b7
Always sort suggestions before emitting them
2021-10-24 20:28:44 +00:00
Cameron Steffen
90f4521cfd
Bless tests
2021-10-15 02:36:58 -05:00
Esteban Küber
99f2977031
Modify structured suggestion output
...
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
2021-08-11 09:46:24 +00:00
hi-rustin
8c5938d049
Use last segment
2021-06-15 19:35:03 +08:00
hi-rustin
636d872452
shrinking the deprecated method span
2021-06-15 16:21:58 +08:00
Rich Kadel
1384200b1c
Added a new test demonstrating the issue requiring revert
...
Note, the `Debug` impl is required.
2021-06-04 15:14:32 -07:00
Rich Kadel
2a6dd25265
Revert "shrinking the deprecated method span"
2021-06-04 12:26:36 -07:00
hi-rustin
3efe0174a2
shrinking the deprecated method span
2021-05-24 11:41:39 +08:00
Aaron Hill
0dd9f118d9
Show macro name in 'this error originates in macro' message
...
When there are multiple macros in use, it can be difficult to tell
which one was responsible for producing an error.
2021-05-12 19:03:06 -04:00
hi-rustin
f6dd332820
shrinking the deprecated method span
2021-05-07 10:41:04 +08:00
Simon Jakobi
3ea62cb5d1
Remove redundant ignore-tidy-linelength
annotations
...
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-04-03 22:30:20 +02:00
Esteban Küber
4cb089bb54
Inherit #[stable(..)]
annotations in enum variants and fields from its item
2021-02-10 19:10:14 -08:00
bstrie
1e1ca28f39
Allow since="TBD"
for rustc_deprecated
2020-12-16 13:21:24 -05:00
Mara Bos
9c647d1021
Improve deprecation attribute diagnostic messages.
...
(From the PR feedback.)
Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
2020-11-02 13:21:18 +01:00
Mara Bos
9fc991a0ea
Add test for #[deprecated] attribute on trait impl block.
2020-11-01 20:48:58 +01:00
Mara Bos
706bc33651
Use the right span for errors about #[deprecated] attributes.
2020-11-01 20:48:58 +01:00
marmeladema
f1878d19fa
Move from {{closure}}#0 syntax to {closure#0} for (def) path components
2020-09-25 22:46:14 +01:00
Andy Russell
0b32008642
report kind of deprecated item in message
...
This is important for fields, which are incorrectly referred to as
"items".
2020-07-26 13:58:31 -04:00
Val Markovic
2155adbc3a
Moving more build-pass tests to check-pass
...
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-23 20:21:38 -07:00
RoccoDev
b85c64c3ea
rustc: Add a warning count upon completion
2020-04-11 16:15:24 +02:00
Eduard-Mihai Burtescu
4c7eb59e81
rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.
2020-02-06 21:46:38 +02:00
Eduard-Mihai Burtescu
f6fc80206e
rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.
2020-02-06 21:32:07 +02:00
varkor
24a2929ed1
Normalise notes with the/is
2020-01-24 16:24:50 +00:00
varkor
3de9b8a3b7
Fix formatting ellipses at the end of some diagnostics
2020-01-12 15:37:50 +00:00
varkor
e84248921b
Add backticks in appropriate places
2020-01-12 15:37:50 +00:00
Mazdak Farrokhzad
91aadf0305
find_deprecation: deprecation attr may be ill-formed meta.
2019-11-15 13:24:06 +01:00
Tomasz Miąsko
427952e808
Make error and warning annotations mandatory in UI tests
...
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-11-10 21:01:02 +01:00
Esteban Küber
0baf61bfdb
Increase spacing for suggestions in diagnostics
...
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00
Dan Aloni
e285175b63
test: extend derive_on_deprecated to include more derivations
2019-10-11 16:38:54 +03:00
Guillaume Gomez
62f1fb33ec
Update ui tests
2019-10-01 15:22:37 +02:00
Guillaume Gomez
e67ae0e023
update ui tests
2019-09-30 15:52:47 +02:00
Mark Rousskov
6fdbece55f
Update test stderr with results of enabling unused lints
2019-09-08 11:32:28 -04:00
Samy Kacimi
66815c613a
normalize use of backticks for compiler messages in remaining modules
...
https://github.com/rust-lang/rust/issues/60532
2019-07-23 23:09:59 +02:00