diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-13 10:37:19 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-14 15:36:39 +0000 |
| commit | 0fe86aa977f8e8f2ebd2e6a6bd9b1a51c959cd4f (patch) | |
| tree | 50af45bb6ae9cda6d08c56370b4d48e83a759798 /compiler/rustc_mir_build/src/build | |
| parent | 7fd9beedc230d0b0fc0b98e1db7855f88122df30 (diff) | |
| download | rust-0fe86aa977f8e8f2ebd2e6a6bd9b1a51c959cd4f.tar.gz rust-0fe86aa977f8e8f2ebd2e6a6bd9b1a51c959cd4f.zip | |
Let `mk_fn_def` take an iterator instead to simplify some call sites
Diffstat (limited to 'compiler/rustc_mir_build/src/build')
| -rw-r--r-- | compiler/rustc_mir_build/src/build/matches/test.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/build/matches/test.rs b/compiler/rustc_mir_build/src/build/matches/test.rs index 6d5a98342d2..de6a48f7cc4 100644 --- a/compiler/rustc_mir_build/src/build/matches/test.rs +++ b/compiler/rustc_mir_build/src/build/matches/test.rs @@ -838,8 +838,6 @@ fn trait_method<'tcx>( method_name: Symbol, substs: impl IntoIterator<Item = impl Into<GenericArg<'tcx>>>, ) -> ConstantKind<'tcx> { - let substs = tcx.mk_substs(substs.into_iter().map(Into::into)); - // The unhygienic comparison here is acceptable because this is only // used on known traits. let item = tcx |
