librustc: Take in account mutability when casting array to raw ptr.