diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-12 10:43:34 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-12 13:24:25 +1000 |
| commit | 6568ef338efe046f23d3c9e2623ba0a392c85def (patch) | |
| tree | 90a798eedb8027878a512813a9dd56e17bc35e74 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | 59e7a308e40fbc6b0901c9a8ee8ed51b17f9e772 (diff) | |
| download | rust-6568ef338efe046f23d3c9e2623ba0a392c85def.tar.gz rust-6568ef338efe046f23d3c9e2623ba0a392c85def.zip | |
Remove `path_span` argument to the `visit_path_segment` methods.
The `visit_path_segment` method of both the AST and HIR visitors has a `path_span` argument that isn't necessary. This commit removes it. There are two very small and inconsequential functional changes. - One call to `NodeCollector::insert` now is passed a path segment identifier span instead of a full path span. This span is only used in a panic message printed in the case of an internal compiler bug. - Likewise, one call to `LifetimeCollectVisitor::record_elided_anchor` now uses a path segment identifier span instead of a full path span. This span is used to make some `'_` lifetimes.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions
