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
bors
9b0043095a
Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk
...
Implement simple, unstable lint to suggest turning closure-of-async-block into async-closure
We want to eventually suggest people to turn `|| async {}` to `async || {}`. This begins doing that. It's a pretty rudimentary lint, but I wanted to get something down so I wouldn't lose the code.
Tracking:
* #62290
2024-07-11 06:59:10 +00:00
Michael Goulet
6f3ad0a40b
Only require symbol name for @feature_gate
2024-06-28 18:33:31 -04:00
Michael Goulet
81c2c57519
Make queries more explicit
2024-06-27 12:03:57 -04:00
Michael Goulet
511f1cf7c8
check_is_object_safe -> is_object_safe
2024-06-03 09:49:30 -04:00
Nicholas Nethercote
e6b3e20243
Remove extern crate rustc_session
from rustc_lint
.
2024-04-29 13:57:41 +10:00
Nicholas Nethercote
1881bfaa2b
Rename LintContext::emit_spanned_lint
as LintContext::emit_span_lint
.
2024-01-23 08:08:25 +11:00
Michael Goulet
b2d2184ede
Format all the let chains in compiler
2023-10-13 08:59:36 +00:00
Gary Guo
e617faabe7
Add missing feature gate in multiple_supertrait_upcastable doc
2023-07-31 12:28:53 +01:00
Michael Goulet
fbdef58414
Migrate predicates_of and caller_bounds to Clause
2023-06-26 23:12:03 +00:00
Gary Guo
66f3ab90a1
Reintroduce multiple_supertrait_upcastable lint
2023-01-28 15:08:07 +00:00
David Tolnay
06ec0bf8b0
Revert "Implement allow-by-default multiple_supertrait_upcastable lint"
...
This reverts commit 5e44a65517
.
2022-12-29 00:47:23 -08:00
Gary Guo
5e44a65517
Implement allow-by-default multiple_supertrait_upcastable lint
2022-12-09 02:29:51 +00:00