(a) Rust is an oxide of iron, and metal oxides are basic. A basic oxide reacts with an acid to give a salt and water only:
metal oxide+acid→salt+water
No hydrogen can be formed in this reaction, so the coat dissolves quietly, without bubbles.
(b) Once the rust has dissolved, the acid reaches the iron metal underneath. Iron is above hydrogen in the reactivity series, so it displaces hydrogen from the acid:
Fe(s)+2HCl(aq)→FeCl2(aq)+H2(g)
The gas is hydrogen. When a burning splinter is brought near the mouth of the test tube, the gas burns with a pop sound. The pale green colour of the solution is due to the iron(II) chloride formed.
(c) Both a metal and its oxide react with a dilute acid to form a salt, but:
- a metal (above hydrogen) gives a salt and hydrogen gas;
- a metal oxide gives a salt and water, with no gas.
So the bubbles appear only when the acid reaches the metal itself.

A rusty nail in dilute hydrochloric acid: the oxide coat dissolves without gas, then the iron fizzes.

The reactivity series: iron lies above hydrogen, so the bare metal gives hydrogen with a dilute acid.