mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Remove unnecessary warning line
This commit is contained in:
parent
49cc60b1aa
commit
3dec6f234d
@ -1003,17 +1003,11 @@ impl<'cfg> Workspace<'cfg> {
|
||||
.max()
|
||||
{
|
||||
let resolver = edition.default_resolve_behavior().to_manifest();
|
||||
self.config.shell().warn(
|
||||
format_args!("\
|
||||
some crates are on edition {edition} which defaults to `resolver = \"{resolver}\"`,\n\
|
||||
\x20 but virtual workspaces default to `resolver = \"1\"`\n\
|
||||
\x20 specify the desired resolver version explicitly in the workspace root's manifest\
|
||||
",
|
||||
))?;
|
||||
self.config.shell().warn(format_args!("some crates are on edition {edition} which defaults to `resolver = \"{resolver}\"`, but virtual workspaces default to `resolver = \"1\"`"))?;
|
||||
self.config.shell().note(
|
||||
"to keep the current resolver, specify `workspace.resolver = \"1\"`",
|
||||
"to keep the current resolver, specify `workspace.resolver = \"1\"` in the workspace root's manifest",
|
||||
)?;
|
||||
self.config.shell().note(format_args!("to use the edition {edition} resolver, specify `workspace.resolver = \"{resolver}\"`"))?;
|
||||
self.config.shell().note(format_args!("to use the edition {edition} resolver, specify `workspace.resolver = \"{resolver}\"` in the workspace root's manifest"))?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1431,11 +1431,9 @@ fn edition_2021_workspace_member() {
|
||||
p.cargo("check")
|
||||
.with_stderr(
|
||||
"\
|
||||
warning: some crates are on edition 2021 which defaults to `resolver = \"2\"`,
|
||||
but virtual workspaces default to `resolver = \"1\"`
|
||||
specify the desired resolver version explicitly in the workspace root's manifest
|
||||
note: to keep the current resolver, specify `workspace.resolver = \"1\"`
|
||||
note: to use the edition 2021 resolver, specify `workspace.resolver = \"2\"`
|
||||
warning: some crates are on edition 2021 which defaults to `resolver = \"2\"`, but virtual workspaces default to `resolver = \"1\"`
|
||||
note: to keep the current resolver, specify `workspace.resolver = \"1\"` in the workspace root's manifest
|
||||
note: to use the edition 2021 resolver, specify `workspace.resolver = \"2\"` in the workspace root's manifest
|
||||
[CHECKING] a v0.1.0 [..]
|
||||
[FINISHED] [..]
|
||||
",
|
||||
|
Loading…
x
Reference in New Issue
Block a user