instance_id
string
repo
string
pull_number
int64
issue_numbers
list
base_commit
string
patch
string
test_patch
string
problem_statement
string
hints_text
string
created_at
string
version
string
updated_at
string
environment_setup_commit
string
FAIL_TO_PASS
list
PASS_TO_PASS
list
FAIL_TO_FAIL
list
PASS_TO_FAIL
list
source_dir
null
sharkdp__bat-1440
sharkdp/bat
1,440
[ "1438", "1438" ]
60e00d49a99f33eb90397c6932c770d82fd481ec
diff --git a/src/preprocessor.rs b/src/preprocessor.rs --- a/src/preprocessor.rs +++ b/src/preprocessor.rs @@ -72,7 +72,7 @@ pub fn replace_nonprintable(input: &[u8], tab_width: usize) -> String { } } // line feed - '\x0A' => output.push('␊'), + ...
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ ## Bugfixes -- only print themes hint in interactive mode (`bat --list-themes`), see #1439 (@rsteube) +- If the last line doesn't end with a newline character, don't add it if `--style=plain`, see #1438 (@Enselic) +- Onl...
Newline can be added even if --style=plain In #975 @sharkdp said this: > The fact that bat -p prints a trailing newline (even if there is no newline at the end of the file) should be considered a bug, I believe (but we should check older tickets, if there was a reason for this behavior). And I completely agree. T...
Thank you for taking the time to write this down in detail! Thank you for taking the time to write this down in detail!
2020-12-16T19:47:12Z
0.17
2021-01-06T21:41:06Z
c569774e1a8528fab91225dabdadf53fde3916ea
[ "plain_mode_does_not_add_nonexisting_newline" ]
[ "config::default_config_should_highlight_no_lines", "config::default_config_should_include_all_lines", "input::basic", "less::test_parse_less_version_487", "input::utf16le", "less::test_parse_less_version_529", "less::test_parse_less_version_wrong_program", "less::test_parse_less_version_551", "line...
[]
[]
null
rinja-rs__askama-486
rinja-rs/askama
486
[ "245" ]
92df4d1fe49e8fde5ca13f13b8236102bc16b969
diff --git a/askama_escape/src/lib.rs b/askama_escape/src/lib.rs --- a/askama_escape/src/lib.rs +++ b/askama_escape/src/lib.rs @@ -129,7 +129,6 @@ impl Escaper for Html { b'&' => escaping_body!(start, i, fmt, bytes, "&"), b'"' => escaping_body!(start, i, fmt, bytes, ""...
diff --git a/testing/tests/filters.rs b/testing/tests/filters.rs --- a/testing/tests/filters.rs +++ b/testing/tests/filters.rs @@ -21,7 +21,7 @@ fn filter_escape() { }; assert_eq!( s.render().unwrap(), - "// my <html> is "unsafe" & \ + "// my <html> i...
askama_escape Why escape slashes? Sorry, I just don't seem to understand what harm slashes can do in html. [Why does it escape slashes?](https://github.com/djc/askama/blob/467f4ade19fa34983de7e6f6d81c6b4d5ff140fe/askama_escape/src/lib.rs#L134)
Because the OWASP recommends doing so. https://security.stackexchange.com/questions/49852/why-should-xss-filters-escape-forward-slash [OWASP Cross Site Scripting Prevention Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md#rule-1---html-esc...
2021-05-16T20:39:00Z
0.10
2021-05-17T19:33:59Z
49252d2457f280026c020d0df46733578eb959a5
[ "filter_escape" ]
[ "filter_format", "filter_fmt", "into_numbers_fmt", "test_filter_let_filter", "test_filter_truncate", "test_join", "test_my_filter", "test_nested_filter_ref", "test_vec_join", "test_attr", "test_comment", "test_composition", "test_constants", "test_define_string_var", "test_else", "test...
[]
[]
null
tracel-ai__burn-572
tracel-ai/burn
572
[ "541" ]
597eab524d7232a9798487f094c51ffc2c81f545
diff --git a/burn-autodiff/src/ops/module.rs b/burn-autodiff/src/ops/module.rs --- a/burn-autodiff/src/ops/module.rs +++ b/burn-autodiff/src/ops/module.rs @@ -38,12 +38,11 @@ impl<B: Backend> ModuleOps<ADBackendDecorator<B>> for ADBackendDecorator<B> { } fn embedding_backward( - weights: ADTensor<B, ...
diff --git /dev/null b/burn-autodiff/src/tests/adaptive_avgpool2d.rs new file mode 100644 --- /dev/null +++ b/burn-autodiff/src/tests/adaptive_avgpool2d.rs @@ -0,0 +1,64 @@ +#[burn_tensor_testgen::testgen(ad_adaptive_avg_pool2d)] +mod tests { + use super::*; + use burn_tensor::module::adaptive_avg_pool2d; + us...
Adaptive average pooling Implement adaptive average pooling in all backends. - [ ] ndarray - [ ] tch - [ ] wgpu - [ ] autodiff
2023-08-01T15:30:16Z
7.0
2023-08-04T14:24:02Z
8808ee265ed366b0e263ec7221854df0c956993f
[ "burn::node::unary::tests::test_unary_codegen_sigmoid", "burn::node::concat::tests::test_codegen_concat", "burn::node::reshape::tests::test_codegen_nodes", "burn::node::batch_norm::tests::test_codegen", "burn::node::unary::tests::test_unary_codegen_transpose", "burn::node::unary::tests::test_unary_codegen...
[ "tensor::api::check::tests::binary_ops_devices - should panic", "tensor::api::check::tests::binary_ops_shapes_no_broadcast - should panic", "tensor::api::check::tests::binary_ops_shapes_with_broadcast", "tensor::api::check::tests::index_range_exceed_number_of_dimensions - should panic", "tensor::api::check:...
[]
[]
null
biomejs__biome-1527
biomejs/biome
1,527
[ "1524" ]
57f454976a02d34581291e6f06a10caa34953745
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,8 +39,35 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom - Add an unsafe code fix for [noConsoleLog](https://biomejs.dev/linter/rules/no-console-log/). Contributed by @vasucp1207 +- [useArrowFu...
diff --git a/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs b/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs --- a/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs +++ b/crates/biome_js_analyze/src/analyzers/complexity/use_arrow_function.rs @@ -165,2...
🐛 useArrowFunction exception in operator expression ? ### Environment information ```block CLI: Version: 1.5.1 Color support: true Platform: CPU Architecture: x86_64 OS: macos Environment: BIOME_LOG_DIR: u...
2024-01-11T12:29:29Z
0.4
2024-01-11T17:23:34Z
b8cf046560376b8b19042b95a518e45bdcbbac22
[ "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_get_unicode_escape", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_is_octal_escape_sequence", "analyzers::correctness::no_nonoctal_decimal_escape::tests::test_parse_escape_sequences", "analyzers::suspicious::no_control_charact...
[]
[]
[]
null
nushell__nushell-13357
nushell/nushell
13,357
[ "13137" ]
5417c89387b67c3192ae9043473b556cd669ee15
diff --git a/crates/nu-cli/src/syntax_highlight.rs b/crates/nu-cli/src/syntax_highlight.rs --- a/crates/nu-cli/src/syntax_highlight.rs +++ b/crates/nu-cli/src/syntax_highlight.rs @@ -429,6 +429,14 @@ fn find_matching_block_end_in_expr( ) }), + Expr::Collect(_, expr) => find_ma...
diff --git a/crates/nu-cmd-lang/src/example_support.rs b/crates/nu-cmd-lang/src/example_support.rs --- a/crates/nu-cmd-lang/src/example_support.rs +++ b/crates/nu-cmd-lang/src/example_support.rs @@ -124,7 +124,10 @@ pub fn eval_block( nu_engine::eval_block::<WithoutDebug>(engine_state, &mut stack, &block, input)...
Inconsistent `$in` behavior in `each` closure ### Describe the bug ```ls | each {$in.name; $in.name}``` Will list the names of X files X times over, resulting in a table of X^2 rows. ```ls | each {$in.name}``` only lists each file once, resulting in X rows, as expected. ### How to reproduce ``` # create rand...
I don't see the inconsistency but maybe I'm missing the point. I think it's the semicolon that's throwing you off. That changes what the command is doing. You are telling it to list the files twice by using the semicolon. If you want the name twice on the same line, one way to do that would be to use string interpolati...
2024-07-12T01:31:40Z
1.77
2024-07-22T07:20:53Z
5417c89387b67c3192ae9043473b556cd669ee15
[ "core_commands::const_::test::test_command_type", "core_commands::let_::test::test_command_type", "core_commands::for_::test::test_examples", "core_commands::const_::test::test_examples", "core_commands::let_::test::test_examples", "core_commands::mut_::test::test_command_type", "core_commands::mut_::te...
[ "input_types::call_with_list_test", "input_types::test_type_annotations::case_05_input_output", "input_types::test_type_annotations::case_08_input_output", "input_types::test_type_annotations::case_03_input_output", "multi_test_parse_int", "input_types::test_type_annotations::case_19_vardecl", "input_ty...
[]
[]
null
BurntSushi__ripgrep-2626
BurntSushi/ripgrep
2,626
[ "1966", "2635" ]
7099e174acbcbd940f57e4ab4913fee4040c826e
diff --git a/.cargo/config.toml b/.cargo/config.toml --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -6,3 +6,16 @@ rustflags = ["-C", "target-feature=+crt-static"] [target.i686-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] + +# Do the same for MUSL targets. At the time of writing (2023-10-23...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: include: - build: pinned os: ubuntu-latest - rust: 1.72.1 + rust: 1.74.0 - build: stable os: ubuntu-la...
`rg --unknown-switch` panics on broken pipe error #### What version of ripgrep are you using? ```console $ ./target/debug/rg --version ripgrep 13.0.0 (rev 9b01a8f9ae) -SIMD -AVX (compiled) +SIMD +AVX (runtime) ``` #### How did you install ripgrep? Compiled from source. ```console $ git rev-parse HEAD ...
I discovered this in my own project after trying to match ripgrep's panic free printing of `--help` text from clap: https://github.com/artichoke/artichoke/issues/1314.
2023-10-12T15:22:03Z
13.0
2024-06-23T17:16:03Z
7099e174acbcbd940f57e4ab4913fee4040c826e
[ "gitignore::tests::parse_excludes_file4" ]
[ "default_types::tests::default_types_are_sorted", "gitignore::tests::cs1", "gitignore::tests::cs2", "gitignore::tests::ig10", "gitignore::tests::case_insensitive", "gitignore::tests::cs3", "gitignore::tests::ig1", "gitignore::tests::cs4", "gitignore::tests::ig13", "gitignore::tests::ig14", "giti...
[]
[]
null
BurntSushi__ripgrep-2610
BurntSushi/ripgrep
2,610
[ "2483" ]
86ef6833085428c21ef1fb7f2de8e5e7f54f1f72
diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ target /termcolor/Cargo.lock /wincolor/Cargo.lock /deployment +/.idea # Snapcraft files stage diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,10 @@ jobs: shell: bash run: ci/test-complete + - name: Print hostname detected by grep-cli crate + shell: bash + run: ${{ env.CARGO }} test --manife...
Add configurable hyperlinks This PR adds hyperlinks to search results in terminals which support them: ![image](https://user-images.githubusercontent.com/7913492/229365208-8e89dbb0-53d1-4e82-b6ed-3d27004dd830.png) Compared to the previous PR (#2322), it adds a `--hyperlink-format PATTERN` command line option whic...
Works well for me. One minor thing I noticed, is that the last colon ist embedded in the link label. Visually it would be more pleasant to exclude that, but opinions on that might differ. Thanks for implementing this. And one more minor thing. The column seems to be off by one. I would assume it to be zero-based. Thank...
2023-09-21T17:18:23Z
13.0
2023-09-26T21:13:54Z
7099e174acbcbd940f57e4ab4913fee4040c826e
[ "escape::tests::backslash", "escape::tests::carriage", "escape::tests::empty", "escape::tests::nl", "escape::tests::invalid_utf8", "escape::tests::nothing_hex0", "escape::tests::nothing_hex1", "escape::tests::nothing_hex2", "escape::tests::nothing_simple", "escape::tests::nul", "escape::tests::t...
[]
[]
[]
null
clap-rs__clap-3732
clap-rs/clap
3,732
[ "3621" ]
740bb39f50883b5af97b62e041618d5433220245
diff --git a/.clippy.toml b/.clippy.toml --- a/.clippy.toml +++ b/.clippy.toml @@ -1,1 +1,1 @@ -msrv = "1.54.0" # MSRV +msrv = "1.56.0" # MSRV diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,7 +78,7 @@ jobs: build: [msrv, w...
diff --git a/.github/workflows/rust-next.yml b/.github/workflows/rust-next.yml --- a/.github/workflows/rust-next.yml +++ b/.github/workflows/rust-next.yml @@ -92,9 +92,9 @@ jobs: strategy: matrix: rust: - - 1.54.0 # MSRV + - 1.56.0 # MSRV - stable - continue-on-error: ${...
Add an option to not panic on value*of() of non valid arguments ### Please complete the following tasks - [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions) - [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=i...
It'd help if you explained why you don't want arguments validated. > Make so the cargo feature re-enable the former behavior. What does the `cargo` feature have to do with this request? The use case is the same as cargo's, the `cargo` feature is already there to accommodate the needs of cargo. > The use case is t...
2022-05-17T21:47:36Z
3.1
2022-05-18T00:25:21Z
20ed49a535d14afac1972dd3cc3003c97bcc744f
[ "generator::utils::tests::test_flags", "generator::utils::tests::test_all_subcommands", "generator::utils::tests::test_subcommands", "generator::utils::tests::test_shorts", "generator::utils::tests::test_flag_subcommand", "generator::utils::tests::test_find_subcommand_with_path", "register_minimal", "...
[]
[]
[]
null
clap-rs__clap-3684
clap-rs/clap
3,684
[ "2861" ]
17ec7757891a38965e8492f7a0a48e674a9536eb
diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ default = [ "suggestions", ] debug = ["clap_derive/debug", "backtrace"] # Enables debug messages -unstable-doc = ["derive", "cargo", "wrap_help", "yaml", "env", "unicode", "regex", "unstable-replace", "unstable-multicall", "un...
diff --git a/tests/builder/subcommands.rs b/tests/builder/subcommands.rs --- a/tests/builder/subcommands.rs +++ b/tests/builder/subcommands.rs @@ -494,7 +494,6 @@ For more information try --help ); } -#[cfg(feature = "unstable-multicall")] #[test] fn busybox_like_multicall() { fn applet_commands() -> [Co...
Stabilise `AppSettings::Multicall` Tracking Issue Original request: https://github.com/clap-rs/clap/issues/1120 Original PR: https://github.com/clap-rs/clap/pull/2817 Feature flag: `unstable-multicall` Known issues: - [x] https://github.com/clap-rs/clap/issues/2862 - [x] https://github.com/clap-rs/clap/iss...
Can you please fill up the known issues that are unresolved from the pr? > Can you please fill up the known issues that are unresolved from the pr? Working on it. *Note: I had assumed #2817 was merged when preparing to write this. I've intentionally not posted it on #2817 after finding out because I don't think we ...
2022-05-03T21:54:09Z
3.1
2022-05-20T17:42:56Z
20ed49a535d14afac1972dd3cc3003c97bcc744f
[ "app_settings::missing_positional_no_hyphen", "default_vals::default_if_arg_present_no_default_user_override", "default_vals::no_default_if_arg_present_with_value_no_default", "conflicts::flag_conflict_with_all", "groups::group_empty", "flags::lots_o_flags_combined", "flags::lots_o_flags_sep", "ignore...
[ "builder::arg::test::option_display_multiple_occurrences", "builder::arg::test::flag_display_multiple_aliases", "builder::arg_group::test::test_yaml", "builder::arg_group::test::test_from", "builder::arg_settings::test::arg_settings_fromstr", "builder::arg::test::option_display2", "builder::app_settings...
[ "app_settings::require_eq", "cargo::crate_authors", "cargo::crate_name", "command::command", "conflicts::conflict_output_rev", "conflicts::conflict_output_rev_with_required", "derive_order::derive_order_no_next_order", "derive_order::derive_order_next_order", "groups::req_group_with_conflict_usage_s...
[]
null
clap-rs__clap-3453
clap-rs/clap
3,453
[ "3335" ]
cb06496a0d4adbd1b328ad790777de2345da5e51
diff --git a/clap_complete/src/shells/zsh.rs b/clap_complete/src/shells/zsh.rs --- a/clap_complete/src/shells/zsh.rs +++ b/clap_complete/src/shells/zsh.rs @@ -545,7 +545,7 @@ fn write_flags_of(p: &App, p_global: Option<&App>) -> String { let mut ret = vec![]; for f in utils::flags(p) { - debug!("writ...
diff --git a/tests/builder/help.rs b/tests/builder/help.rs --- a/tests/builder/help.rs +++ b/tests/builder/help.rs @@ -2727,7 +2727,7 @@ fn disable_help_flag_affects_help_subcommand() { .find_subcommand("help") .unwrap() .get_arguments() - .map(|a| a.get_name()) + .map(|a| a.get...
`name` implies a user-facing meaning, causing confusion Maintainer's notes: - The root cause was [confusion over `name` vs `value_name` and impact on the rest of the API](https://github.com/clap-rs/clap/issues/3335#issuecomment-1020308017) - We should look into renaming `Arg::name` to `Arg::id` - We should also reso...
```rust use clap::Parser; #[derive(Debug, Parser)] pub struct Example { #[clap(short = 'S', long, conflicts_with = "version")] pub staged: bool, #[clap(name = "OBJ_ID")] pub object_id: String, #[clap(name = "VERSION")] pub version: Option<String>, } fn main() { println!("...
2022-02-11T20:13:32Z
3.0
2022-02-11T20:28:43Z
cb06496a0d4adbd1b328ad790777de2345da5e51
[ "build::app_tests::app_send_sync", "build::app_tests::global_setting", "build::app_tests::propagate_version", "build::app_tests::issue_2090", "build::arg::test::flag_display", "build::arg::test::flag_display_multiple_short_aliases", "build::arg::test::flag_display_multiple_aliases", "build::arg::test:...
[]
[]
[]
null
clap-rs__clap-3402
clap-rs/clap
3,402
[ "3227" ]
5c3868ea4cb8063731d8526e8e97414942a987ae
diff --git a/examples/keyvalue-derive.md b/examples/keyvalue-derive.md --- a/examples/keyvalue-derive.md +++ b/examples/keyvalue-derive.md @@ -18,13 +18,13 @@ Args { defines: [("Foo", 10), ("Alice", 30)] } $ keyvalue-derive -D Foo ? failed -error: Invalid value for '-D <DEFINES>': invalid KEY=value: no `=` found in...
diff --git a/tests/builder/subcommands.rs b/tests/builder/subcommands.rs --- a/tests/builder/subcommands.rs +++ b/tests/builder/subcommands.rs @@ -511,7 +511,7 @@ fn subcommand_not_recognized() { assert!(utils::compare_output( app, "fake help", - "error: The subcommand 'help' wasn't recog...
Is it possible to not show usage string in post validation errors? Maintainer's notes: - If we move error formatting to display time, we can provide all of the information the user needs that the user can build the error as they need (see also #2628) -- ### Discussed in https://github.com/clap-rs/clap/discussions/32...
I assume you are specifically referring to errors reported by `App::error`? `App::error` was added in https://github.com/clap-rs/clap/pull/2890. In it, I did not have any specific errors in mind to be targeting as a similar use case and saw usage being reported in errors and included it. I do not see any comment...
2022-02-04T18:27:08Z
3.0
2022-02-07T21:37:31Z
cb06496a0d4adbd1b328ad790777de2345da5e51
[ "app_settings::args_negate_subcommands_one_level", "default_vals::osstr_positional_user_override", "delimiters::opt_s_default_no_delim", "double_require::valid_cases", "flag_subcommands::flag_subcommand_short_with_aliases_vis_and_hidden", "default_vals::opt_without_value_fail", "conflicts::arg_conflicts...
[ "build::app::settings::test::app_settings_fromstr", "build::app::tests::propagate_version", "build::arg::test::option_display_single_alias", "build::arg::test::option_display_multiple_occurrences", "build::arg::test::option_display3", "build::app::tests::issue_2090", "build::app::tests::app_send_sync", ...
[ "cargo::crate_description", "arg_aliases::visible_arg_aliases_help_output", "conflicts::conflict_output_with_required", "derive_order::derive_order_subcommand_propagate_with_explicit_display_order", "groups::req_group_with_conflict_usage_string", "error::app_error", "derive_order::prefer_user_help_in_su...
[]
null
tokio-rs__tracing-1523
tokio-rs/tracing
1,523
[ "1348" ]
ac4a8dd27c0b28c36b9cf77cdc52b595168d1c5f
diff --git a/tracing-subscriber/CHANGELOG.md b/tracing-subscriber/CHANGELOG.md --- a/tracing-subscriber/CHANGELOG.md +++ b/tracing-subscriber/CHANGELOG.md @@ -1,3 +1,12 @@ +# Unreleased + +### Deprecated + +- **registry**: `SpanRef::parent_id`, which cannot properly support per-layer + filtering. Use `.parent().map(Sp...
diff --git a/tracing-subscriber/src/filter/layer_filters.rs b/tracing-subscriber/src/filter/layer_filters.rs --- a/tracing-subscriber/src/filter/layer_filters.rs +++ b/tracing-subscriber/src/filter/layer_filters.rs @@ -373,50 +1045,407 @@ where // === impl FilterId === impl FilterId { + const fn disabled() -> Se...
Subscriber/layer tree ## Feature Request Maybe more of an idea than a feature request… Instead of stack of layers with registry on the bottom, use a tree with registry in the root. ### Crates Possibly to `tracing-subscriber`. ### Motivation The motivation is two-fold. First, I find the model where ...
What you describe _is_ the long-term goal of `tracing-subscriber`: filters _should_ be able that can applied to arbitrary subtrees of layers. > I wonder if this has been considered and turned down for some reason, or if it would be worth trying out. I'm willing to draft some code and then show it to discuss if it ma...
2021-08-26T20:05:33Z
0.1
2021-09-14T18:40:32Z
df9666bdeb8da3e120af15e3c86f4655cb6b29de
[ "field::delimited::test::delimited_visitor", "field::delimited::test::delimited_new_visitor", "fmt::fmt_layer::test::synthesize_span_active", "fmt::fmt_layer::test::synthesize_span_close", "fmt::fmt_layer::test::is_lookup_span", "fmt::fmt_layer::test::fmt_layer_downcasts_to_parts", "fmt::fmt_layer::test...
[ "prefixed_event_macros", "prefixed_span_macros", "borrow_val_events", "borrow_val_spans", "callsite_macro_api", "debug", "debug_root", "debug_span_root", "debug_span", "debug_span_with_parent", "debug_with_parent", "error", "error_root", "error_span_root", "error_span", "error_span_wit...
[ "debug_shorthand", "borrowed_field", "both_shorthands", "display_shorthand", "event_with_message", "dotted_field_name", "event_without_message", "explicit_child_at_levels", "explicit_child", "message_without_delims", "moved_field", "nonzeroi32_event_without_message", "one_with_everything", ...
[]
null
tokio-rs__tracing-1017
tokio-rs/tracing
1,017
[ "861" ]
cb1dd95b8a67c3c69450882e8f8818546330a8ff
diff --git a/tracing-core/Cargo.toml b/tracing-core/Cargo.toml --- a/tracing-core/Cargo.toml +++ b/tracing-core/Cargo.toml @@ -27,7 +27,8 @@ edition = "2018" [features] default = ["std"] -std = ["lazy_static"] +alloc = [] +std = ["lazy_static", "alloc"] [badges] maintenance = { status = "actively-developed" } d...
diff --git a/tracing-core/src/dispatcher.rs b/tracing-core/src/dispatcher.rs --- a/tracing-core/src/dispatcher.rs +++ b/tracing-core/src/dispatcher.rs @@ -783,13 +945,13 @@ mod test { #[test] fn dispatch_is() { - let dispatcher = Dispatch::new(NoSubscriber); + let dispatcher = Dispatch::from_s...
core: avoid scoped dispatch overhead when scoped dispatchers are not in use Currently, the global default dispatcher is essentially implemented as a layer on top of the scoped default dispatcher. This means that using the global default dispatcher still pays some of the overhead of the scoped default dispatcher. In p...
2020-10-06T00:17:02Z
0.2
2020-10-07T21:34:06Z
0e3577f6f3995b92accee21e0737c25ef0f1953c
[ "callsite::tests::linked_list_empty", "callsite::tests::linked_list_push", "callsite::tests::linked_list_push_several", "callsite::tests::linked_list_repeated", "dispatcher::test::default_dispatch", "dispatcher::test::default_no_subscriber", "dispatcher::test::dispatch_downcasts", "dispatcher::test::d...
[]
[]
[]
null
clap-rs__clap-2867
clap-rs/clap
2,867
[ "2807" ]
1f17d9e8ba5b64baca9e2d49c1b097b167bf4df6
diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -385,15 +385,13 @@ ARGS: INPUT The input file to use USAGE: - MyApp [FLAGS] [OPTIONS] <INPUT> [SUBCOMMAND] - -FLAGS: - -h, --help Print help information - -v Sets the level of verbosity - -V, --version Pr...
diff --git a/clap_derive/tests/non_literal_attributes.rs b/clap_derive/tests/non_literal_attributes.rs --- a/clap_derive/tests/non_literal_attributes.rs +++ b/clap_derive/tests/non_literal_attributes.rs @@ -19,7 +19,7 @@ pub const DISPLAY_ORDER: usize = 2; // Check if the global settings compile #[derive(Parser, De...
Default help grouping is confusing and unwanted ### Rust Version 1.55.0 ### Affected Version of clap v3.0.0-beta.4 ### Expected Behavior Summary Args would be in a shared group by default ### Actual Behavior Summary Args are split up by their type (flags, arguments, positional) ### Context `U...
I agree with this being v4. I have a few opinions on this and especially modernizing the help message formats but don't want to focus on it for v3. > I have a few opinions on this and especially modernizing the help message formats Please share these thoughts somewhere so we can all be ruminating on them. In think...
2021-10-12T21:30:34Z
0.14
2021-10-14T00:18:41Z
a0ab35d678d797041aad20ff9e99ddaa52b84e24
[ "help_message" ]
[ "test_multi_args_fail", "test_bool", "test_multi_args", "test_parse_hex_function_path", "test_slice", "build::arg::test::option_display2", "build::app::tests::propagate_version", "build::arg::test::flag_display_single_short_alias", "build::arg::settings::test::arg_settings_fromstr", "build::app::s...
[ "app_from_crate", "nested_help_subcommand_with_global_setting", "use_long_format_for_help_subcommand_with_setting", "require_eq", "single_arg_help_with_long_format_setting", "skip_possible_values", "subcommand_required_else_help_error_message", "dont_collapse_args", "issue_1093_allow_ext_sc", "arg...
[]
null
clap-rs__clap-2758
clap-rs/clap
2,758
[ "2731" ]
c4780e3305b4c2632c7d843511ae7dfe3652a569
diff --git a/clap_derive/src/derives/args.rs b/clap_derive/src/derives/args.rs --- a/clap_derive/src/derives/args.rs +++ b/clap_derive/src/derives/args.rs @@ -361,7 +361,7 @@ pub fn gen_augment( fn gen_arg_enum_possible_values(ty: &Type) -> TokenStream { quote_spanned! { ty.span()=> - .possible_values(&<...
diff --git a/clap_generate/tests/value_hints.rs b/clap_generate/tests/value_hints.rs --- a/clap_generate/tests/value_hints.rs +++ b/clap_generate/tests/value_hints.rs @@ -11,7 +11,7 @@ pub fn build_app_with_value_hints() -> App<'static> { .arg( Arg::new("choice") .long("choice") -...
Support `about` for `possible_values` e.g. `ArgEnum` ### Clap Version master ### Describe your use case Sometimes the value itself my not give enough information to the user, therefore it would be helpful to be able to show and additional about in e.g. fish completions. Fish does that for example for `__fish_...
The challenge is the derive API is built on top of the builder API, so we need to come up with a way to specify this within the builder API. Possibly a variant of `possible_values` that takes a slice of tuples. > Possibly a variant of possible_values that takes a slice of tuples. Tho this is not very builder like...
2021-09-07T14:53:50Z
0.14
2021-09-19T11:30:08Z
a0ab35d678d797041aad20ff9e99ddaa52b84e24
[ "completions::elvish::elvish_with_special_commands", "completions::fish::fish_with_special_help", "completions::fish::fish_with_special_commands", "completions::bash::bash", "completions::fish::fish_with_sub_subcommands", "completions::fish::fish_with_aliases", "completions::fish::fish", "completions:...
[]
[]
[]
null
clap-rs__clap-2696
clap-rs/clap
2,696
[ "1374" ]
441ff68c2d63536f0e2fd7e171d6fa7d76b2f4c3
diff --git a/src/build/arg/mod.rs b/src/build/arg/mod.rs --- a/src/build/arg/mod.rs +++ b/src/build/arg/mod.rs @@ -1096,10 +1096,11 @@ impl<'help> Arg<'help> { /// **NOTE:** When an argument is overridden it is essentially as if it never was used, any /// conflicts, requirements, etc. are evaluated **after** ...
diff --git a/tests/posix_compatible.rs b/tests/posix_compatible.rs --- a/tests/posix_compatible.rs +++ b/tests/posix_compatible.rs @@ -306,3 +306,25 @@ fn require_overridden_4() { let err = result.err().unwrap(); assert_eq!(err.kind, ErrorKind::MissingRequiredArgument); } + +#[test] +fn issue_1374_overrides_...
Self override and multiple values don't interact well together ### Affected Version of clap master and v3-master (did not try crates.io versions) ### Bug or Feature Request Summary Arguments overriding themselves with multiple values have... surprising behavior. Consider the sample code below: ### Sample C...
I ended up going ahead and creating #1376 Hey @Elarnon , kudos for writing this detailed step-by-step bug report! It's a real pleasure reading well-written explanations in simple fluent language that instantly lands in your brain without a need to parse "what that person meant". Bonus points for the attempt to fix it,...
2021-08-14T08:03:41Z
0.14
2021-08-14T09:41:41Z
a0ab35d678d797041aad20ff9e99ddaa52b84e24
[ "flag_overrides_itself", "conflict_overridden_2", "conflict_overridden_4", "mult_flag_overrides_itself", "conflict_overridden_3", "mult_option_overrides_itself", "option_overrides_itself", "posix_compatible_flags_long", "posix_compatible_flags_long_rev", "posix_compatible_flags_short", "posix_co...
[ "build::app::settings::test::app_settings_fromstr", "build::app::tests::app_send_sync", "build::app::tests::propagate_version", "build::app::tests::global_setting", "build::app::tests::global_settings", "build::app::tests::issue_2090", "build::arg::settings::test::arg_settings_fromstr", "build::arg::t...
[]
[]
null
tokio-rs__tokio-5179
tokio-rs/tokio
5,179
[ "5162" ]
9e3fb1673a73046363af64c09a040eeed67f2a4c
diff --git a/tokio/src/runtime/context.rs b/tokio/src/runtime/context.rs --- a/tokio/src/runtime/context.rs +++ b/tokio/src/runtime/context.rs @@ -1,3 +1,4 @@ +use crate::loom::thread::AccessError; use crate::runtime::coop; use std::cell::Cell; diff --git a/tokio/src/runtime/context.rs b/tokio/src/runtime/context.r...
diff --git a/tokio/src/runtime/coop.rs b/tokio/src/runtime/coop.rs --- a/tokio/src/runtime/coop.rs +++ b/tokio/src/runtime/coop.rs @@ -209,7 +213,7 @@ mod test { use wasm_bindgen_test::wasm_bindgen_test as test; fn get() -> Budget { - context::budget(|cell| cell.get()) + context::budget(|cell|...
LocalSet and Runtime cannot be stored in thread_local at the same time **Version** tokio 1.21.2 **Platform** x86_64-unknown-linux-gnu **Description** It seems similar to #4973 I tried this code: ```rust // src/main.rs use tokio::runtime::Runtime; use tokio::task::LocalSet; thread_local! { p...
The stack trace is ```bash stack backtrace: 0: rust_begin_unwind at /rustc/edf01822...
2022-11-09T22:15:07Z
1.21
2022-11-10T18:06:27Z
9e3fb1673a73046363af64c09a040eeed67f2a4c
[ "fs::file::tests::flush_while_idle", "fs::file::tests::incomplete_flush_followed_by_write", "fs::file::tests::busy_file_seek_error", "fs::file::tests::incomplete_partial_read_followed_by_write", "fs::file::tests::open_read", "fs::file::tests::incomplete_read_followed_by_flush", "fs::file::tests::incompl...
[]
[]
[]
null
rayon-rs__rayon-863
rayon-rs/rayon
863
[ "734" ]
ebcb09b1dc53211c6b5abdf4dc5b40e4bcd0a965
diff --git /dev/null b/src/slice/chunks.rs new file mode 100644 --- /dev/null +++ b/src/slice/chunks.rs @@ -0,0 +1,389 @@ +use crate::iter::plumbing::*; +use crate::iter::*; +use crate::math::div_round_up; +use std::cmp; + +/// Parallel iterator over immutable non-overlapping chunks of a slice +#[derive(Debug)] +pub st...
diff --git a/src/slice/mod.rs b/src/slice/mod.rs --- a/src/slice/mod.rs +++ b/src/slice/mod.rs @@ -5,8 +5,10 @@ //! //! [std::slice]: https://doc.rust-lang.org/stable/std/slice/ +mod chunks; mod mergesort; mod quicksort; +mod rchunks; mod test; diff --git a/src/slice/test.rs b/src/slice/test.rs --- a/src/sli...
Add par_rchunks* to ParallelSlice[Mut] `[T]` has these methods with no parallel in Rayon yet: - `pub fn rchunks(&self, chunk_size: usize) -> RChunks<T>` - `pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<T>` - `pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<T>` - `pub fn rchunks_exa...
2021-05-20T18:19:15Z
1.5
2023-02-25T17:58:28Z
09214ba51bdace6f6cb91740cee9514fc08d55ce
[ "iter::collect::test::only_left_result - should panic", "iter::collect::test::left_produces_items_with_no_complete - should panic", "iter::collect::test::only_right_result - should panic", "iter::collect::test::left_produces_fewer_items - should panic", "iter::collect::test::produce_fewer_items - should pan...
[]
[]
[]
null
tokio-rs__bytes-721
tokio-rs/bytes
721
[ "709" ]
9965a04b5684079bb614addd750340ffc165a9f5
diff --git a/CHANGELOG.md b/CHANGELOG.md --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.6.1 (July 13, 2024) + +This release fixes a bug where `Bytes::is_unique` returns incorrect values when +the `Bytes` originates from a shared `BytesMut`. (#718) + # 1.6.0 (March 22, 2024) ### Added diff --git a/Cargo....
diff --git a/tests/test_bytes.rs b/tests/test_bytes.rs --- a/tests/test_bytes.rs +++ b/tests/test_bytes.rs @@ -1173,6 +1173,15 @@ fn shared_is_unique() { assert!(c.is_unique()); } +#[test] +fn mut_shared_is_unique() { + let mut b = BytesMut::from(LONG); + let c = b.split().freeze(); + assert!(!c.is_uni...
Consider replacing Bytes::make_mut by impl From<Bytes> for BytesMut `Bytes::make_mut` is a very good addition to the API but I think it would be better if it was instead exposed as `<BytesMut as From<Bytes>>::from`. Could this be done before the next bytes version is released? `Bytes::make_mut` isn't released yet.
The reason for the current API is to support adding a fallible `Bytes::try_mut` method in the future (as I proposed in #611). See also #368 None of this mentions `From<_>` though. For some HTTP stuff I need to mutate bytes yielded by Hyper and I can do that in-place, but Hyper yields `Bytes` so I want to be able to do ...
2024-07-13T07:50:44Z
1.6
2024-07-13T10:07:32Z
9965a04b5684079bb614addd750340ffc165a9f5
[ "mut_shared_is_unique" ]
[ "bytes_mut::tests::test_original_capacity_from_repr", "bytes_mut::tests::test_original_capacity_to_repr", "copy_to_bytes_less", "test_bufs_vec", "copy_to_bytes_overflow - should panic", "test_deref_buf_forwards", "test_fresh_cursor_vec", "test_get_u16", "test_get_u16_buffer_underflow - should panic"...
[]
[]
null