@@ -770,28 +770,28 @@ impl Datum {
770
770
DatumBlock { bcx : bcx, datum : datum }
771
771
}
772
772
773
- pub fn get_vec_base_and_len ( & self ,
774
- mut bcx : @mut Block ,
775
- span : Span ,
776
- expr_id : ast:: NodeId ,
777
- derefs : uint )
778
- -> ( @mut Block , ValueRef , ValueRef ) {
773
+ pub fn get_vec_base_and_byte_len ( & self ,
774
+ mut bcx : @mut Block ,
775
+ span : Span ,
776
+ expr_id : ast:: NodeId ,
777
+ derefs : uint )
778
+ -> ( @mut Block , ValueRef , ValueRef ) {
779
779
//! Converts a vector into the slice pair. Performs rooting
780
780
//! and write guards checks.
781
781
782
782
// only imp't for @[] and @str, but harmless
783
783
bcx = write_guard:: root_and_write_guard ( self , bcx, span, expr_id, derefs) ;
784
- let ( base, len) = self . get_vec_base_and_len_no_root ( bcx) ;
784
+ let ( base, len) = self . get_vec_base_and_byte_len_no_root ( bcx) ;
785
785
( bcx, base, len)
786
786
}
787
787
788
- pub fn get_vec_base_and_len_no_root ( & self , bcx : @mut Block )
789
- -> ( ValueRef , ValueRef ) {
788
+ pub fn get_vec_base_and_byte_len_no_root ( & self , bcx : @mut Block )
789
+ -> ( ValueRef , ValueRef ) {
790
790
//! Converts a vector into the slice pair. Des not root
791
791
//! nor perform write guard checks.
792
792
793
793
let llval = self . to_appropriate_llval ( bcx) ;
794
- tvec:: get_base_and_len ( bcx, llval, self . ty )
794
+ tvec:: get_base_and_byte_len ( bcx, llval, self . ty )
795
795
}
796
796
797
797
pub fn root_and_write_guard ( & self ,
0 commit comments