Rory McIlroy came heartbreakingly close to making the cut at The Open Championship, missing out on the weekend's action by just one shot.