Bob has it right, and the stub you are looking at is the cut end of the tank vent. Worth knowing why it is routed the way it is, because the routing is the part people get wrong when they replace it.
The vent leaves the tank through a grommet at the front, does a loop up inside the carb box, then drops out through the bottom of the box near the front corner. That loop is a trap. With a full tank and the saw on its side in a felling cut, fuel climbs the vent; it hits the top of the loop and runs back down instead of running into the air box. Take the loop out and you get a wet carb box and a saw that smells like it is flooding every time you tip it.
If someone plugged that stub instead of replacing it, you get the opposite problem and it is the one that gets misdiagnosed. The tank pulls a vacuum as fuel leaves: the saw runs fine for thirty or forty seconds, leans out, dies, and opening the cap gives you a hiss. Everyone replaces the coil first. Check the cap for a hiss before you touch the ignition.
For the replacement, measure the grommet and use 3 x 5 mm fuel line — Tygon F-4040-A or the OEM line, not the clear PVC that is sold as aquarium tube. The PVC hardens in a season, then it weeps at the grommet and you chase a fuel smell that only shows up when the tank is full. Push the grommet in from the outside; pulling it through from inside rolls the lip and it will seep at the seam.
No duckbill or check valve in this vent, by the way. If you add one, the tank pressurizes in the sun and the saw floods when you set it down.
While the box is open, do the fuel line too. Same age, same batch of rubber, and it will fail in the same month.