Hardhat Network has first-class Solidity support. It always knows which smart contracts are being run, what exactly they do, and why they fail, making smart contract development easier.
To do these kinds of things, Hardhat integrates very deeply with Solidity, which means that new versions of it aren't automatically supported.
This section of the docs explains which versions are supported, and what happens if you use an unsupported one.
These are the versions of Solidity that you can expect to fully work with Hardhat:
We recommend against using Hardhat with newer, unsupported versions of Solidity. But if you need to do so; please read on.
When running an unsupported version of Solidity, our integration may not work or behave incorrectly.
This could mean that Solidity stack traces stop working, are incorrect, or incomplete. It could also mean that
console.log stops working.
Despite these features possibly being affected, the compilation and execution of your smart contracts won't be affected. You can still trust your test results and deploy smart contracts, but Hardhat may be less useful in the process.