You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#64290 - Mark-Simulacrum:span-no-main, r=estebank
Provide a span if main function is not present in crate
Unfortunately, the diagnostic machinery does not cope well with an empty
span which can happen if the crate is empty, in which case we merely set
a spanless note.
Tests are already updated for this change, so a dedicated test is not added.
Resolvesrust-lang#36561.
Copy file name to clipboardExpand all lines: src/test/ui-fulldeps/hash-stable-is-unstable.stderr
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,3 @@
1
-
error[E0601]: `main` function not found in crate `hash_stable_is_unstable`
2
-
|
3
-
= note: consider adding a `main` function to `$DIR/hash-stable-is-unstable.rs`
4
-
5
1
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
6
2
--> $DIR/hash-stable-is-unstable.rs:3:1
7
3
|
@@ -47,7 +43,6 @@ LL | #[derive(HashStable)]
47
43
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
48
44
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
49
45
50
-
error: aborting due to 6 previous errors
46
+
error: aborting due to 5 previous errors
51
47
52
-
Some errors have detailed explanations: E0601, E0658.
53
-
For more information about an error, try `rustc --explain E0601`.
48
+
For more information about this error, try `rustc --explain E0658`.
0 commit comments