1
Fork 0

Rename external_typarams to external_param_names

Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
This commit is contained in:
varkor 2019-03-13 23:37:43 +00:00
parent ec6f983e24
commit c915fe0245
2 changed files with 4 additions and 4 deletions

View file

@ -1045,7 +1045,7 @@ impl GenericBound {
GenericBound::TraitBound(PolyTrait {
trait_: ResolvedPath {
path,
typarams: None,
param_names: None,
did,
is_generic: false,
},
@ -1469,7 +1469,7 @@ impl<'tcx> Clean<GenericParamDef> for ty::GenericParamDef {
(self.name.to_string(), GenericParamDefKind::Lifetime)
}
ty::GenericParamDefKind::Type { has_default, .. } => {
cx.renderinfo.borrow_mut().external_typarams
cx.renderinfo.borrow_mut().external_param_names
.insert(self.def_id, self.name.clean(cx));
let default = if has_default {
Some(cx.tcx.type_of(self.def_id).clean(cx))

View file

@ -368,7 +368,7 @@ pub struct Cache {
pub struct RenderInfo {
pub inlined: FxHashSet<DefId>,
pub external_paths: crate::core::ExternalPaths,
pub external_typarams: FxHashMap<DefId, String>,
pub external_param_names: FxHashMap<DefId, String>,
pub exact_paths: FxHashMap<DefId, Vec<String>>,
pub access_levels: AccessLevels<DefId>,
pub deref_trait_did: Option<DefId>,
@ -601,7 +601,7 @@ pub fn run(mut krate: clean::Crate,
let RenderInfo {
inlined: _,
external_paths,
external_typarams,
external_param_names,
exact_paths,
access_levels,
deref_trait_did,