We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8ecc6 commit 2f953bbCopy full SHA for 2f953bb
src/librustdoc/clean/utils.rs
@@ -81,6 +81,11 @@ pub(crate) fn ty_args_to_args<'tcx>(
81
has_self: bool,
82
owner: DefId,
83
) -> Vec<GenericArg> {
84
+ // Fast path which avoids executing the query `generics_of`.
85
+ if ty_args.skip_binder().is_empty() {
86
+ return Vec::new();
87
+ }
88
+
89
let params = &cx.tcx.generics_of(owner).params;
90
let mut elision_has_failed_once_before = false;
91
0 commit comments