3

Do not point at whole file missing `fn main` by estebank · Pull Request #93142 ·...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/93142
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

@estebank estebank commented on Jan 21

Only point at the end of the crate. We could try making it point at the
beginning of the crate, but that is confused with DUMMY_SP, causing
the output to be worse.

This change will make it so that VSCode will not underline the whole
file when main is missing, so other errors will be visible.

wesleywiser, compiler-errors, ChayimFriedman2, and Aloso reacted with thumbs up emoji fee1-dead reacted with heart emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK