(component_data: DefPathData, target: &mut String)
| 284 | // } |
| 285 | |
| 286 | fn push_component_name(component_data: DefPathData, target: &mut String) { |
| 287 | use DefPathData::*; |
| 288 | match component_data { |
| 289 | TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => { |
| 290 | target.push_str(name.as_str()); |
| 291 | } |
| 292 | _ => target.push_str(match component_data { |
| 293 | CrateRoot => "crate_root", |
| 294 | Impl => "implement", |
| 295 | ForeignMod => "foreign", |
| 296 | Use => "use", |
| 297 | GlobalAsm => "global_asm", |
| 298 | Closure => "closure", |
| 299 | Ctor => "ctor", |
| 300 | AnonConst => "constant", |
| 301 | OpaqueTy => "opaque", |
| 302 | _ => unreachable!(), |
| 303 | }), |
| 304 | }; |
| 305 | } |
| 306 | |
| 307 | /// Returns false if any of the generic arguments are themselves generic |
| 308 | pub fn are_concrete(gen_args: GenericArgsRef<'_>) -> bool { |
no outgoing calls
no test coverage detected