Josh Stone
fdba8a7c47
update version placeholders
...
(cherry picked from commit e4840ce59bdddb19394df008c5c26d9c493725f8)
2025-02-18 08:50:21 -08:00
bjorn3
1fcae03369
Rustfmt
2025-02-08 22:12:13 +00:00
Waffle Lapkin
491599569c
allow+update deref_into_dyn_supertrait
...
this commit makes `deref_into_dyn_supertrait` lint allow-by-default,
removes future incompatibility (we finally live in a broken world), and
changes the wording in the documentation.
previously documentation erroneously said that it lints against *usage*
of the deref impl, while it actually (since 104742) lints on the impl
itself (oooops, my oversight, should have updated it 2+ years ago...)
2025-02-06 23:44:24 +01:00
Waffle Lapkin
a970a0d77e
change deref_into_dyn_supertrait lint wording
...
(so that it doesn't talk about trait upcasting stabilization in the
future tense)
2025-02-06 23:30:23 +01:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Michael Goulet
93ff86ed7c
Use is_lang_item more aggressively
2024-06-14 16:54:29 -04:00
Nicholas Nethercote
e6b3e20243
Remove extern crate rustc_session from rustc_lint.
2024-04-29 13:57:41 +10:00
bors
0011fac90d
Auto merge of #120017 - nnethercote:lint-api, r=oli-obk
...
Fix naming in the lint API
Methods for emit lints are named very inconsistently. This PR fixes that up.
r? `@compiler-errors`
2024-01-23 00:06:57 +00:00
Nicholas Nethercote
1881bfaa2b
Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint.
2024-01-23 08:08:25 +11:00
Oli Scherer
9a20cf1697
Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin"
...
This reverts commit 6d2b84b3ed , reversing
changes made to 73bc12199e .
2024-01-22 14:24:31 +00:00
Michael Goulet
15fbcc3636
Rework supertrait lint once again
2023-11-22 21:51:39 +00:00
Urgau
4c2d6de70e
Stabilize RFC3324 dyn upcasting coercion
...
Aka trait_upcasting feature.
And also adjust the `deref_into_dyn_supertrait` lint.
2023-11-22 13:56:36 +01:00
Michael Goulet
e6ca8e1d18
Bump future release warning mode
2023-11-20 19:03:47 +00:00
Michael Goulet
63b34cf480
Don't consider regions in deref_into_dyn_supertrait lint
2023-11-20 19:03:46 +00:00
Michael Goulet
232f3146b3
Make sure that non-pretty-printing usages are using the correct elaborator
2023-10-18 03:05:38 +00:00
Michael Goulet
b2d2184ede
Format all the let chains in compiler
2023-10-13 08:59:36 +00:00
Ralf Jung
5586c2a68f
make the reason: field mandatory for @future_incompatible lints
2023-09-22 08:59:32 +02:00
Mahdi Dibaiee
e55583c4b8
refactor(rustc_middle): Substs -> GenericArg
2023-07-14 13:27:35 +01:00
clubby789
eebd31c187
Don't eagerly convert principal to string
2023-02-17 14:44:58 +00:00
Kyle Matsuda
c183110cc2
remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
2023-02-16 17:05:56 -07:00
Kyle Matsuda
d822b97a27
change usages of type_of to bound_type_of
2023-02-16 17:01:52 -07:00
Rejyr
fe09291036
migrate: deref_into_dyn_supertrait.rs
2023-01-09 18:57:02 -05:00
Maybe Waffle
20f3de5ab1
Use nicer spans for deref_into_dyn_supertrait
2022-11-23 16:12:51 +00:00
Maybe Waffle
0d4a5c725a
Make deref_into_dyn_supertrait lint the impl and not the usage
2022-11-23 15:40:27 +00:00