diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2024-10-26 10:18:42 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2024-10-26 10:19:07 +0800 |
| commit | f6fea8334271e05f1e00e95cdcc4ca7b3558d130 (patch) | |
| tree | e662fc015d592ff2bc2b3337f71df61b6ec2815c /compiler/rustc_mir_transform | |
| parent | c1db4dc24267a707409c9bf2e67cf3c7323975c8 (diff) | |
| download | rust-f6fea8334271e05f1e00e95cdcc4ca7b3558d130.tar.gz rust-f6fea8334271e05f1e00e95cdcc4ca7b3558d130.zip | |
Effects cleanup
- removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index c9f24764cc2..42d6bdf6cee 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -439,12 +439,7 @@ impl<'tcx> Inliner<'tcx> { // Reachability pass defines which functions are eligible for inlining. Generally inlining // other functions is incorrect because they could reference symbols that aren't exported. - let is_generic = callsite - .callee - .args - .non_erasable_generics(self.tcx, callsite.callee.def_id()) - .next() - .is_some(); + let is_generic = callsite.callee.args.non_erasable_generics().next().is_some(); if !is_generic && !cross_crate_inlinable { return Err("not exported"); } |
