diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-08-19 19:42:00 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 19:42:00 +0800 | 
| commit | c1a1222ece507bbf5e931da35c17457be9c5b81e (patch) | |
| tree | a0f2b4b39dae3048db1f92047aec8075b50b7129 /compiler/rustc_session/src/errors.rs | |
| parent | 8365fcb2b840c95eeb0bc377af8bd498fad22245 (diff) | |
| parent | 3b0ff9cb6962c91e9ce71f3224da9bae5b193538 (diff) | |
| download | rust-c1a1222ece507bbf5e931da35c17457be9c5b81e.tar.gz rust-c1a1222ece507bbf5e931da35c17457be9c5b81e.zip | |
Rollup merge of #139345 - smoelius:into-iter-stability, r=lcnr
Extend `QueryStability` to handle `IntoIterator` implementations This PR extends the `rustc::potential_query_instability` lint to check values passed as `IntoIterator` implementations. Full disclosure: I want the lint to warn about this line (please see #138871 for why): https://github.com/rust-lang/rust/blob/aa8f0fd7163a2f23aa958faed30c9c2b77b934a5/src/librustdoc/json/mod.rs#L261 However, the lint warns about several other lines as well. Final note: the functions `get_callee_generic_args_and_args` and `get_input_traits_and_projections` were copied directly from [Clippy's source code](https://github.com/rust-lang/rust/blob/4fd8c04da0674af2c51310c9982370bfadfa1b98/src/tools/clippy/clippy_lints/src/methods/unnecessary_to_owned.rs#L445-L496).
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
