1
Fork 0

Fixed multi-line function signatures

This commit is contained in:
Bernardo Meurer 2018-08-23 09:34:21 -07:00
parent 6ca0384755
commit e07c1542ac
No known key found for this signature in database
GPG key ID: E421C74191EA186C
3 changed files with 8 additions and 4 deletions

View file

@ -789,8 +789,12 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
}
/// Read a *non-ZST* scalar
pub fn read_scalar(&self, ptr: Pointer, ptr_align: Align, size: Size)
-> EvalResult<'tcx, ScalarMaybeUndef> {
pub fn read_scalar(
&self,
ptr: Pointer,
ptr_align: Align,
size: Size
) -> EvalResult<'tcx, ScalarMaybeUndef> {
// Make sure we don't read part of a pointer as a pointer
self.check_relocation_edges(ptr, size)?;
let endianness = self.endianness();