@@ -182,17 +182,17 @@ pub fn trans_static_method_callee<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
182182 // fn from<U:Foo>(n: U) -> Option<Self>;
183183 // }
184184 // ...
185- // let f = <Vec<int > as Convert>::from::<String>(...)
185+ // let f = <Vec<i32 > as Convert>::from::<String>(...)
186186 //
187187 // Here, in this call, which I've written with explicit UFCS
188188 // notation, the set of type parameters will be:
189189 //
190190 // rcvr_type: [] <-- nothing declared on the trait itself
191- // rcvr_self: [Vec<int >] <-- the self type
191+ // rcvr_self: [Vec<i32 >] <-- the self type
192192 // rcvr_method: [String] <-- method type parameter
193193 //
194194 // So we create a trait reference using the first two,
195- // basically corresponding to `<Vec<int > as Convert>`.
195+ // basically corresponding to `<Vec<i32 > as Convert>`.
196196 // The remaining type parameters (`rcvr_method`) will be used below.
197197 let trait_substs =
198198 Substs :: erased ( VecPerParamSpace :: new ( rcvr_type,
@@ -223,13 +223,13 @@ pub fn trans_static_method_callee<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
223223 // fn from<U:Foo>(n: U) { ... }
224224 // }
225225 //
226- // Recall that we matched `<Vec<int > as Convert>`. Trait
226+ // Recall that we matched `<Vec<i32 > as Convert>`. Trait
227227 // resolution will have given us a substitution
228- // containing `impl_substs=[[T=int ],[],[]]` (the type
228+ // containing `impl_substs=[[T=i32 ],[],[]]` (the type
229229 // parameters defined on the impl). We combine
230230 // that with the `rcvr_method` from before, which tells us
231231 // the type parameters from the *method*, to yield
232- // `callee_substs=[[T=int ],[],[U=String]]`.
232+ // `callee_substs=[[T=i32 ],[],[U=String]]`.
233233 let subst:: SeparateVecsPerParamSpace {
234234 types : impl_type,
235235 selfs : impl_self,
@@ -456,7 +456,7 @@ fn trans_trait_callee_from_llval<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
456456/// Generate a shim function that allows an object type like `SomeTrait` to
457457/// implement the type `SomeTrait`. Imagine a trait definition:
458458///
459- /// trait SomeTrait { fn get(&self) -> isize ; ... }
459+ /// trait SomeTrait { fn get(&self) -> i32 ; ... }
460460///
461461/// And a generic bit of code:
462462///
@@ -468,7 +468,7 @@ fn trans_trait_callee_from_llval<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
468468/// What is the value of `x` when `foo` is invoked with `T=SomeTrait`?
469469/// The answer is that it is a shim function generated by this routine:
470470///
471- /// fn shim(t: &SomeTrait) -> isize {
471+ /// fn shim(t: &SomeTrait) -> i32 {
472472/// // ... call t.get() virtually ...
473473/// }
474474///
0 commit comments