Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a6727ba
Support `{async closure}: Fn` in new solver
compiler-errors Feb 26, 2024
118730b
Add a couple helpers, make return types less confusing
compiler-errors Feb 27, 2024
4c0016a
Don't emit higher-ranked Future obligations when confirm async Fn goals
compiler-errors Feb 26, 2024
2252ff7
Also support `fnptr(): async Fn` in codegen
compiler-errors Feb 26, 2024
c8e3f35
Flesh out a few more tests
compiler-errors Feb 26, 2024
8f7b921
CFI: Don't compress user-defined builtin types
rcvalle Feb 27, 2024
b4a0724
Clarify the usage example for hexagon-unknown-none-elf
androm3da Feb 21, 2024
cd47739
Add a platform doc for hexagon-unknown-linux-musl
androm3da Feb 21, 2024
3726cbb
add platform-specific function to get the error number for HermitOS
stlankes Feb 28, 2024
c54d92c
bootstrap/format: send larger batches to rustfmt
RalfJung Feb 29, 2024
f2d9bfb
fix clap warnings
klensy Feb 29, 2024
b5307f5
Document the precision of `f64` methods
tbu- Feb 29, 2024
3770cf7
Improve suggestion to rename type starting with underscore to make it…
GuillaumeGomez Feb 29, 2024
451fd98
Update UI test checking suggestion message to rename type starting wi…
GuillaumeGomez Feb 29, 2024
7400f22
Document which methods on `f32` are precise
tbu- Feb 29, 2024
0c2cb39
Rollup merge of #118217 - tbu-:pr_floating_point, r=Amanieu
GuillaumeGomez Feb 29, 2024
1ee5453
Rollup merge of #121412 - androm3da:bcain/update_hex_docs_03, r=Amanieu
GuillaumeGomez Feb 29, 2024
5978b6f
Rollup merge of #121654 - compiler-errors:async-fn-for-fn-def, r=oli-obk
GuillaumeGomez Feb 29, 2024
b2c3279
Rollup merge of #121700 - rcvalle:rust-cfi-dont-compress-user-defined…
GuillaumeGomez Feb 29, 2024
ad74598
Rollup merge of #121765 - hermit-os:errno, r=ChrisDenton
GuillaumeGomez Feb 29, 2024
b52b699
Rollup merge of #121781 - RalfJung:bootstrap-fmt, r=clubby789
GuillaumeGomez Feb 29, 2024
7147112
Rollup merge of #121788 - klensy:clap-deprecated-fix, r=clubby789
GuillaumeGomez Feb 29, 2024
8a74df9
Rollup merge of #121792 - GuillaumeGomez:improve-suggestion, r=michae…
GuillaumeGomez Feb 29, 2024
bc23b84
Rollup merge of #121793 - tbu-:pr_floating_point_32, r=Amanieu
GuillaumeGomez Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix clap warnings
Run 'cargo check --features clap/deprecated' and fix warnings
  • Loading branch information
klensy committed Feb 29, 2024
commit f2d9bfb35fc1692c3cb9dba2e5be084fe61489fa
10 changes: 5 additions & 5 deletions src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,22 +642,22 @@ impl<'a> ShouldRun<'a> {

#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
pub enum Kind {
#[clap(alias = "b")]
#[value(alias = "b")]
Build,
#[clap(alias = "c")]
#[value(alias = "c")]
Check,
Clippy,
Fix,
Format,
#[clap(alias = "t")]
#[value(alias = "t")]
Test,
Bench,
#[clap(alias = "d")]
#[value(alias = "d")]
Doc,
Clean,
Dist,
Install,
#[clap(alias = "r")]
#[value(alias = "r")]
Run,
Setup,
Suggest,
Expand Down
28 changes: 14 additions & 14 deletions src/bootstrap/src/core/config/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub enum Warnings {

/// Deserialized version of all flags for this compile.
#[derive(Debug, Parser)]
#[clap(
#[command(
override_usage = "x.py <subcommand> [options] [<paths>...]",
disable_help_subcommand(true),
about = "",
Expand Down Expand Up @@ -118,7 +118,7 @@ pub struct Flags {
// This overrides the deny-warnings configuration option,
// which passes -Dwarnings to the compiler invocations.
#[arg(global(true), long)]
#[clap(value_enum, default_value_t=Warnings::Default, value_name = "deny|warn")]
#[arg(value_enum, default_value_t=Warnings::Default, value_name = "deny|warn")]
/// if value is deny, will deny warnings
/// if value is warn, will emit warnings
/// otherwise, use the default configured behaviour
Expand All @@ -132,7 +132,7 @@ pub struct Flags {
pub json_output: bool,

#[arg(global(true), long, value_name = "STYLE")]
#[clap(value_enum, default_value_t = Color::Auto)]
#[arg(value_enum, default_value_t = Color::Auto)]
/// whether to use color in cargo and rustc output
pub color: Color,

Expand Down Expand Up @@ -188,7 +188,7 @@ impl Flags {
let it = std::iter::once(&first).chain(args.iter());
// We need to check for `<cmd> -h -v`, in which case we list the paths
#[derive(Parser)]
#[clap(disable_help_flag(true))]
#[command(disable_help_flag(true))]
struct HelpVerboseOnly {
#[arg(short, long)]
help: bool,
Expand Down Expand Up @@ -218,7 +218,7 @@ impl Flags {

#[derive(Debug, Clone, Default, clap::Subcommand)]
pub enum Subcommand {
#[clap(aliases = ["b"], long_about = "\n
#[command(aliases = ["b"], long_about = "\n
Arguments:
This subcommand accepts a number of paths to directories to the crates
and/or artifacts to compile. For example, for a quick build of a usable
Expand All @@ -233,7 +233,7 @@ pub enum Subcommand {
/// Compile either the compiler or libraries
#[default]
Build,
#[clap(aliases = ["c"], long_about = "\n
#[command(aliases = ["c"], long_about = "\n
Arguments:
This subcommand accepts a number of paths to directories to the crates
and/or artifacts to compile. For example:
Expand All @@ -246,7 +246,7 @@ pub enum Subcommand {
all_targets: bool,
},
/// Run Clippy (uses rustup/cargo-installed clippy binary)
#[clap(long_about = "\n
#[command(long_about = "\n
Arguments:
This subcommand accepts a number of paths to directories to the crates
and/or artifacts to run clippy against. For example:
Expand All @@ -273,14 +273,14 @@ pub enum Subcommand {
forbid: Vec<String>,
},
/// Run cargo fix
#[clap(long_about = "\n
#[command(long_about = "\n
Arguments:
This subcommand accepts a number of paths to directories to the crates
and/or artifacts to run `cargo fix` against. For example:
./x.py fix library/core
./x.py fix library/core library/proc_macro")]
Fix,
#[clap(
#[command(
name = "fmt",
long_about = "\n
Arguments:
Expand All @@ -295,7 +295,7 @@ pub enum Subcommand {
#[arg(long)]
check: bool,
},
#[clap(aliases = ["d"], long_about = "\n
#[command(aliases = ["d"], long_about = "\n
Arguments:
This subcommand accepts a number of paths to directories of documentation
to build. For example:
Expand All @@ -316,7 +316,7 @@ pub enum Subcommand {
/// render the documentation in JSON format in addition to the usual HTML format
json: bool,
},
#[clap(aliases = ["t"], long_about = "\n
#[command(aliases = ["t"], long_about = "\n
Arguments:
This subcommand accepts a number of paths to test directories that
should be compiled and run. For example:
Expand Down Expand Up @@ -400,7 +400,7 @@ pub enum Subcommand {
Dist,
/// Install distribution artifacts
Install,
#[clap(aliases = ["r"], long_about = "\n
#[command(aliases = ["r"], long_about = "\n
Arguments:
This subcommand accepts a number of paths to tools to build and run. For
example:
Expand All @@ -413,7 +413,7 @@ pub enum Subcommand {
args: Vec<String>,
},
/// Set up the environment for development
#[clap(long_about = format!(
#[command(long_about = format!(
"\n
x.py setup creates a `config.toml` which changes the defaults for x.py itself,
as well as setting up a git pre-push hook, VS Code config and toolchain link.
Expand All @@ -434,7 +434,7 @@ Arguments:
profile: Option<PathBuf>,
},
/// Suggest a subset of tests to run, based on modified files
#[clap(long_about = "\n")]
#[command(long_about = "\n")]
Suggest {
/// run suggested tests
#[arg(long)]
Expand Down