forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#97631 - ehuss:update-beta-cargo, r=ehuss
[beta] Beta backports * Allow the unused_macro_rules lint for now rust-lang#97032 * Fix some typos in arg checking algorithm rust-lang#97303 * rustc: Fix ICE in native library error reporting rust-lang#97328 * Cargo: * Fix `cargo publish -p spec` rust-lang/cargo#10707
- Loading branch information
Showing
9 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn main() { | ||
g((), ()); | ||
//~^ ERROR this function takes 6 arguments but 2 arguments were supplied | ||
} | ||
|
||
pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) -> () {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error[E0061]: this function takes 6 arguments but 2 arguments were supplied | ||
--> $DIR/issue-97197.rs:2:5 | ||
| | ||
LL | g((), ()); | ||
| ^-------- multiple arguments are missing | ||
| | ||
note: function defined here | ||
--> $DIR/issue-97197.rs:6:8 | ||
| | ||
LL | pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) -> () {} | ||
| ^ ------ -------- -------- -------- -------- ------ | ||
help: provide the arguments | ||
| | ||
LL | g((), {bool}, {bool}, {bool}, {bool}, ()); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0061`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/test/ui/native-library-link-flags/modifiers-override-3.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Regression test for issue #97299, one command line library with modifiers | ||
// overrides another command line library with modifiers. | ||
|
||
// compile-flags:-lstatic:+whole-archive=foo -lstatic:+whole-archive=foo | ||
// error-pattern: overriding linking modifiers from command line is not supported | ||
|
||
fn main() {} |
4 changes: 4 additions & 0 deletions
4
src/test/ui/native-library-link-flags/modifiers-override-3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: overriding linking modifiers from command line is not supported | ||
|
||
error: aborting due to previous error | ||
|
Submodule cargo
updated
3 files
+2 −2 | src/cargo/ops/cargo_compile.rs | |
+18 −0 | src/cargo/ops/registry.rs | |
+321 −23 | tests/testsuite/publish.rs |