Jason Newcomb
60af2585f7
Refactor disallowed_methods
:
...
* Simplify `def_id` extraction.
* Use the span of the method name instead of the call.
2024-07-05 02:37:09 -04:00
Philipp Krones
89037ea18f
Merge remote-tracking branch 'upstream/master' into rustup
2024-05-30 09:44:14 +02:00
León Orell Valerian Liehr
0c653d9f91
Remove LintDiagnostic::msg
...
* instead simply set the primary message inside the lint decorator functions
* it used to be this way before [#]101986 which introduced `msg` to prevent
good path delayed bugs (which no longer exist) from firing under certain
circumstances when lints were suppressed / silenced
* this is no longer necessary for various reasons I presume
* it shaves off complexity and makes further changes easier to implement
2024-05-23 04:08:35 +02:00
Philipp Krones
0e62b18435
Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into clippy-subtree-update
2024-03-21 22:20:40 +01:00
y21
eb5ce85932
mention span_lint_hir
in span_lint
and add a reason to disallowed_methods
2024-03-09 19:40:39 +01:00
Philipp Krones
7e83df4068
Merge commit '93f0a9a91f58c9b2153868f458402155fb6265bb' into clippy-subtree-update
2024-03-07 17:19:29 +01:00
Philipp Krones
a6df0277ea
Merge remote-tracking branch 'upstream/master' into rustup
2024-03-07 17:14:36 +01:00
Philipp Krones
7be6e2178e
Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update
2024-02-27 15:50:17 +01:00
Alex Macleod
1d107ab2be
Remove $DIR replacement in test output
2024-02-17 12:34:54 +00:00
Philipp Krones
798865c593
Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update
2024-01-25 19:17:36 +01:00
Philipp Krones
1534e08250
Merge remote-tracking branch 'upstream/master' into rustup
2024-01-25 18:39:39 +01:00
Nicholas Nethercote
6b359b7e1b
Rename TyCtxt::struct_span_lint_hir
as TyCtxt::node_span_lint
.
2024-01-23 08:09:01 +11:00
Nicholas Nethercote
cf355c6e9d
Rename LintContext::struct_span_lint
as LintContext::span_lint
.
2024-01-23 07:59:45 +11:00