File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ std::string LifetimeDependenceInfo::getString() const {
35
35
}
36
36
return result;
37
37
};
38
- if (!inheritLifetimeParamIndices->isEmpty ()) {
38
+ if (inheritLifetimeParamIndices && !inheritLifetimeParamIndices->isEmpty ()) {
39
39
lifetimeDependenceString =
40
40
" _inherit(" + getOnIndices (inheritLifetimeParamIndices) + " )" ;
41
41
}
42
- if (!borrowLifetimeParamIndices->isEmpty ()) {
42
+ if (borrowLifetimeParamIndices && !borrowLifetimeParamIndices->isEmpty ()) {
43
43
lifetimeDependenceString +=
44
44
" _borrow(" + getOnIndices (borrowLifetimeParamIndices) + " )" ;
45
45
}
46
- if (!mutateLifetimeParamIndices->isEmpty ()) {
46
+ if (mutateLifetimeParamIndices && !mutateLifetimeParamIndices->isEmpty ()) {
47
47
lifetimeDependenceString +=
48
48
" _mutate(" + getOnIndices (mutateLifetimeParamIndices) + " )" ;
49
49
}
You can’t perform that action at this time.
0 commit comments