The movie starring Robert Downey Jr. and Marisa Tomei in a dilapidated hotel setting is Only You (1994), a romantic comedy directed by Norman Jewison.
The Majestic (2001) stars Jim Carrey as a screenwriter with amnesia in a small town—no Downey or Tomei involved.
Both films share a nostalgic, small-town atmosphere, which likely causes the confusion. Only You follows a woman (Tomei) who travels to Italy to find her "destined" soulmate (Downey Jr.), with the hotel serving as a key backdrop. The Majestic is a Capra-esque drama about Hollywood blacklists and community.