File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1336,7 +1336,7 @@ extern "rust-intrinsic" {
13361336/// Checks whether `ptr` is properly aligned with respect to
13371337/// `align_of::<T>()`.
13381338pub ( crate ) fn is_aligned_and_not_null < T > ( ptr : * const T ) -> bool {
1339- return !ptr. is_null ( ) && ptr as usize % mem:: align_of :: < T > ( ) == 0 ;
1339+ !ptr. is_null ( ) && ptr as usize % mem:: align_of :: < T > ( ) == 0
13401340}
13411341
13421342/// Checks whether the regions of memory starting at `src` and `dst` of size
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ fn search_meta_section<'a>(of: &'a ObjectFile,
6969 let mut name_buf = None ;
7070 let name_len = llvm:: LLVMRustGetSectionName ( si. llsi , & mut name_buf) ;
7171 let name = name_buf. map_or (
72- String :: new ( ) , // we got a NULL ptr, ignore `name_len`
72+ String :: new ( ) , // We got a NULL ptr, ignore `name_len`.
7373 |buf| String :: from_utf8 (
7474 slice:: from_raw_parts ( buf. as_ptr ( ) as * const u8 ,
7575 name_len as usize )
You can’t perform that action at this time.
0 commit comments