@@ -182,17 +182,17 @@ pub fn trans_static_method_callee<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
182
182
// fn from<U:Foo>(n: U) -> Option<Self>;
183
183
// }
184
184
// ...
185
- // let f = <Vec<int > as Convert>::from::<String>(...)
185
+ // let f = <Vec<i32 > as Convert>::from::<String>(...)
186
186
//
187
187
// Here, in this call, which I've written with explicit UFCS
188
188
// notation, the set of type parameters will be:
189
189
//
190
190
// rcvr_type: [] <-- nothing declared on the trait itself
191
- // rcvr_self: [Vec<int >] <-- the self type
191
+ // rcvr_self: [Vec<i32 >] <-- the self type
192
192
// rcvr_method: [String] <-- method type parameter
193
193
//
194
194
// 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>`.
196
196
// The remaining type parameters (`rcvr_method`) will be used below.
197
197
let trait_substs =
198
198
Substs :: erased ( VecPerParamSpace :: new ( rcvr_type,
@@ -223,13 +223,13 @@ pub fn trans_static_method_callee<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
223
223
// fn from<U:Foo>(n: U) { ... }
224
224
// }
225
225
//
226
- // Recall that we matched `<Vec<int > as Convert>`. Trait
226
+ // Recall that we matched `<Vec<i32 > as Convert>`. Trait
227
227
// resolution will have given us a substitution
228
- // containing `impl_substs=[[T=int ],[],[]]` (the type
228
+ // containing `impl_substs=[[T=i32 ],[],[]]` (the type
229
229
// parameters defined on the impl). We combine
230
230
// that with the `rcvr_method` from before, which tells us
231
231
// the type parameters from the *method*, to yield
232
- // `callee_substs=[[T=int ],[],[U=String]]`.
232
+ // `callee_substs=[[T=i32 ],[],[U=String]]`.
233
233
let subst:: SeparateVecsPerParamSpace {
234
234
types : impl_type,
235
235
selfs : impl_self,
@@ -456,7 +456,7 @@ fn trans_trait_callee_from_llval<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
456
456
/// Generate a shim function that allows an object type like `SomeTrait` to
457
457
/// implement the type `SomeTrait`. Imagine a trait definition:
458
458
///
459
- /// trait SomeTrait { fn get(&self) -> isize ; ... }
459
+ /// trait SomeTrait { fn get(&self) -> i32 ; ... }
460
460
///
461
461
/// And a generic bit of code:
462
462
///
@@ -468,7 +468,7 @@ fn trans_trait_callee_from_llval<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
468
468
/// What is the value of `x` when `foo` is invoked with `T=SomeTrait`?
469
469
/// The answer is that it is a shim function generated by this routine:
470
470
///
471
- /// fn shim(t: &SomeTrait) -> isize {
471
+ /// fn shim(t: &SomeTrait) -> i32 {
472
472
/// // ... call t.get() virtually ...
473
473
/// }
474
474
///
0 commit comments