diff options
| author | bors <bors@rust-lang.org> | 2023-04-23 13:34:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-23 13:34:31 +0000 |
| commit | 4ed48698f9a1e0d4a2d25987c5b0a0ed1aa00e83 (patch) | |
| tree | 074ef757572661fad3d163f10e1f67ed8b3f1c53 | |
| parent | f30fc0a5e2e1d2e816c264354c45a6d7da576107 (diff) | |
| parent | 7f13e6d8a54f58d51f159ddb97eb94b14a72ac79 (diff) | |
| download | rust-4ed48698f9a1e0d4a2d25987c5b0a0ed1aa00e83.tar.gz rust-4ed48698f9a1e0d4a2d25987c5b0a0ed1aa00e83.zip | |
Auto merge of #108118 - oli-obk:lazy_typeck, r=cjgillot
Run various queries from other queries instead of explicitly in phases These are just legacy leftovers from when rustc didn't have a query system. While there are more cleanups of this sort that can be done here, I want to land them in smaller steps. This phased order of query invocations was already a lie, as any query that looks at types (e.g. the wf checks run before) can invoke e.g. const eval which invokes borrowck, which invokes typeck, ...
| -rw-r--r-- | clippy_lints/src/default_union_representation.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/trailing_empty_array.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/default_union_representation.rs b/clippy_lints/src/default_union_representation.rs index dec357ab75c..03b5a2d6d08 100644 --- a/clippy_lints/src/default_union_representation.rs +++ b/clippy_lints/src/default_union_representation.rs @@ -61,7 +61,7 @@ impl<'tcx> LateLintPass<'tcx> for DefaultUnionRepresentation { None, &format!( "consider annotating `{}` with `#[repr(C)]` to explicitly specify memory layout", - cx.tcx.def_path_str(item.owner_id.to_def_id()) + cx.tcx.def_path_str(item.owner_id) ), ); } diff --git a/clippy_lints/src/trailing_empty_array.rs b/clippy_lints/src/trailing_empty_array.rs index 1382c1a40da..98f5b47f7a0 100644 --- a/clippy_lints/src/trailing_empty_array.rs +++ b/clippy_lints/src/trailing_empty_array.rs @@ -46,7 +46,7 @@ impl<'tcx> LateLintPass<'tcx> for TrailingEmptyArray { None, &format!( "consider annotating `{}` with `#[repr(C)]` or another `repr` attribute", - cx.tcx.def_path_str(item.owner_id.to_def_id()) + cx.tcx.def_path_str(item.owner_id) ), ); } |
