@@ -69,7 +69,13 @@ mod point {
69
69
}
70
70
}
71
71
72
- /// A fn item that calls (public) methods on `Point` from the same impl which changed
72
+ /// A fn that has the changed type in its signature; must currently be
73
+ /// rebuilt.
74
+ ///
75
+ /// You could imagine that, in the future, if the change were
76
+ /// sufficiently "private", we might not need to type-check again.
77
+ /// Rebuilding is probably always necessary since the layout may be
78
+ /// affected.
73
79
mod fn_with_type_in_sig {
74
80
use point:: Point ;
75
81
@@ -79,6 +85,13 @@ mod fn_with_type_in_sig {
79
85
}
80
86
}
81
87
88
+ /// Call a fn that has the changed type in its signature; this
89
+ /// currently must also be rebuilt.
90
+ ///
91
+ /// You could imagine that, in the future, if the change were
92
+ /// sufficiently "private", we might not need to type-check again.
93
+ /// Rebuilding is probably always necessary since the layout may be
94
+ /// affected.
82
95
mod call_fn_with_type_in_sig {
83
96
use fn_with_type_in_sig;
84
97
@@ -88,7 +101,13 @@ mod call_fn_with_type_in_sig {
88
101
}
89
102
}
90
103
91
- /// A fn item that calls (public) methods on `Point` from the same impl which changed
104
+ /// A fn that uses the changed type, but only in its body, not its
105
+ /// signature.
106
+ ///
107
+ /// You could imagine that, in the future, if the change were
108
+ /// sufficiently "private", we might not need to type-check again.
109
+ /// Rebuilding is probably always necessary since the layout may be
110
+ /// affected.
92
111
mod fn_with_type_in_body {
93
112
use point:: Point ;
94
113
@@ -98,7 +117,10 @@ mod fn_with_type_in_body {
98
117
}
99
118
}
100
119
101
- /// A fn item that calls (public) methods on `Point` from the same impl which changed
120
+ /// A fn X that calls a fn Y, where Y uses the changed type in its
121
+ /// body. In this case, the effects of the change should be contained
122
+ /// to Y; X should not have to be rebuilt, nor should it need to be
123
+ /// typechecked again.
102
124
mod call_fn_with_type_in_body {
103
125
use fn_with_type_in_body;
104
126
0 commit comments