id
int64
0
886
original_context
stringlengths
648
56.6k
modified_context
stringlengths
587
47.6k
omitted_context
listlengths
0
19
omitted_index
listlengths
0
19
metadata
dict
100
diff --git a/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs b/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs index 8be782dcbf0ad..4aff127908eec 100644 --- a/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs +++ b/compiler/rustc_mir_transform/src/check_unnecessary_trans...
diff --git a/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs b/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs index 8be782dcbf0ad..4aff127908eec 100644 --- a/compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs +++ b/compiler/rustc_mir_transform/src/check_unnecessary_trans...
[ "+//@ compile-flags: --remap-path-prefix=/=/non-existent", "+ let e = $e;", "+ std::mem::transmute(e)" ]
[ 24, 30, 31 ]
{ "additions": 22, "author": "bend-n", "deletions": 5, "html_url": "https://github.com/rust-lang/rust/pull/140284", "issue_id": 140284, "merged_at": "2025-04-25T21:57:13Z", "omission_probability": 0.1, "pr_number": 140284, "repo": "rust-lang/rust", "title": "remove expect() in `unnecessary_transmute...
101
diff --git a/tests/ui/copy-a-resource.rs b/tests/ui/copy-a-resource.rs deleted file mode 100644 index 55f2dd4ee6dde..0000000000000 --- a/tests/ui/copy-a-resource.rs +++ /dev/null @@ -1,21 +0,0 @@ -#[derive(Debug)] -struct Foo { - i: isize, -} - -impl Drop for Foo { - fn drop(&mut self) {} -} - -fn foo(i:isize) -> F...
diff --git a/tests/ui/copy-a-resource.rs b/tests/ui/copy-a-resource.rs index 55f2dd4ee6dde..0000000000000 --- a/tests/ui/copy-a-resource.rs @@ -1,21 +0,0 @@ -#[derive(Debug)] -struct Foo { - i: isize, -impl Drop for Foo { - fn drop(&mut self) {} -fn foo(i:isize) -> Foo { - Foo { - i: i - } -fn main() {...
[ "+// It also serves as a basic visibility test — confirming that a `pub` item", "-type lteq<T> = extern \"C\" fn(T) -> bool;" ]
[ 93, 162 ]
{ "additions": 44, "author": "reddevilmidzy", "deletions": 41, "html_url": "https://github.com/rust-lang/rust/pull/140205", "issue_id": 140205, "merged_at": "2025-04-25T21:57:13Z", "omission_probability": 0.1, "pr_number": 140205, "repo": "rust-lang/rust", "title": "Tidying up UI tests [2/N]", "to...
102
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index cfc71a412bea2..7a27bc5c38738 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -680,10 +680,14 @@ impl<'tcx> CheckAttrVisitor<'tcx> { } ...
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index cfc71a412bea2..7a27bc5c38738 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -680,10 +680,14 @@ impl<'tcx> CheckAttrVisitor<'tcx> { } ...
[ "+#[unsafe(naked)]", "+error[E0736]: attribute incompatible with `#[unsafe(naked)]`" ]
[ 46, 68 ]
{ "additions": 33, "author": "folkertdev", "deletions": 3, "html_url": "https://github.com/rust-lang/rust/pull/140193", "issue_id": 140193, "merged_at": "2025-04-25T21:57:13Z", "omission_probability": 0.1, "pr_number": 140193, "repo": "rust-lang/rust", "title": "fix ICE in `#[naked]` attribute valid...
103
diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 48ab9267f216c..736ffb7d0caf3 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -259,8 +259,14 @@ //! The [`is_ok`] and [`is_err`] methods return [`true`] if the [`Result`] //! is [`Ok`] or [`Err`], respectively. //! ...
diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 48ab9267f216c..736ffb7d0caf3 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -259,8 +259,14 @@ //! The [`is_ok`] and [`is_err`] methods return [`true`] if the [`Result`] //! is [`Ok`] or [`Err`], respectively. +//! ...
[ "-//! This method transforms the contained value of the [`Err`] variant:", "+ /// assert_eq!(x.as_ref().is_ok_and(|x| x.len() > 1), true);", "+ /// let x: Result<u32, String> = Err(\"ownership\".to_string());" ]
[ 67, 88, 98 ]
{ "additions": 30, "author": "Natural-selection1", "deletions": 2, "html_url": "https://github.com/rust-lang/rust/pull/138968", "issue_id": 138968, "merged_at": "2025-04-25T21:57:13Z", "omission_probability": 0.1, "pr_number": 138968, "repo": "rust-lang/rust", "title": "Update the index of Result to...
104
diff --git a/src/gcc b/src/gcc index 13cc8243226a9..0ea98a1365b81 160000 --- a/src/gcc +++ b/src/gcc @@ -1 +1 @@ -Subproject commit 13cc8243226a9028bb08ab6c5e1c5fe6d533bcdf +Subproject commit 0ea98a1365b81f7488073512c850e8ee951a4afd diff --git a/src/tools/tidy/src/gcc_submodule.rs b/src/tools/tidy/src/gcc_submodule.rs ...
diff --git a/src/gcc b/src/gcc index 13cc8243226a9..0ea98a1365b81 160000 --- a/src/gcc +++ b/src/gcc @@ -1 +1 @@ -Subproject commit 13cc8243226a9028bb08ab6c5e1c5fe6d533bcdf +Subproject commit 0ea98a1365b81f7488073512c850e8ee951a4afd diff --git a/src/tools/tidy/src/gcc_submodule.rs b/src/tools/tidy/src/gcc_submodule.rs ...
[ "+//! Tidy check to ensure that the commit SHA of the `src/gcc` submodule is the same as the", "+ .arg(\"--cached\")", "+ // The SHA can start with + if the submodule is modified or - if it is not checked out.", "+ cg_gcc_version_path.display(),", "+ }" ]
[ 13, 32, 48, 56, 58 ]
{ "additions": 50, "author": "Kobzol", "deletions": 1, "html_url": "https://github.com/rust-lang/rust/pull/137683", "issue_id": 137683, "merged_at": "2025-04-25T21:57:13Z", "omission_probability": 0.1, "pr_number": 137683, "repo": "rust-lang/rust", "title": "Add a tidy check for GCC submodule versio...
105
diff --git a/library/core/src/iter/adapters/enumerate.rs b/library/core/src/iter/adapters/enumerate.rs index bd093e279c38e..f7b9f0b7a5e9d 100644 --- a/library/core/src/iter/adapters/enumerate.rs +++ b/library/core/src/iter/adapters/enumerate.rs @@ -23,6 +23,39 @@ impl<I> Enumerate<I> { pub(in crate::iter) fn new(i...
diff --git a/library/core/src/iter/adapters/enumerate.rs b/library/core/src/iter/adapters/enumerate.rs index bd093e279c38e..f7b9f0b7a5e9d 100644 --- a/library/core/src/iter/adapters/enumerate.rs +++ b/library/core/src/iter/adapters/enumerate.rs @@ -23,6 +23,39 @@ impl<I> Enumerate<I> { pub(in crate::iter) fn new(i...
[ "+ /// The position may also exceed the bounds of the iterator to allow for calculating", "+ /// assert_eq!(iter.next(), Some((1, &'b')));", "+ self.count", "+#[test]", "+fn test_empty_iterator_enumerate_next_index() {" ]
[ 13, 30, 39, 53, 54 ]
{ "additions": 44, "author": "jogru0", "deletions": 0, "html_url": "https://github.com/rust-lang/rust/pull/139533", "issue_id": 139533, "merged_at": "2025-04-20T00:08:55Z", "omission_probability": 0.1, "pr_number": 139533, "repo": "rust-lang/rust", "title": "add next_index to Enumerate", "total_ch...
106
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 1532ca77f713e..8986430141be4 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1927,7 +1927,7 @@ impl AttrArgs { } /// Delimited arguments, as used in `#[attr()/[]/{}]` or `mac!()/[]/{}`. -#[derive(Clon...
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 1532ca77f713e..8986430141be4 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -1927,7 +1927,7 @@ impl AttrArgs { /// Delimited arguments, as used in `#[attr()/[]/{}]` or `mac!()/[]/{}`. -#[derive(Clone, En...
[ "-}", "-", "- dspan: args.dspan," ]
[ 27, 28, 63 ]
{ "additions": 4, "author": "nnethercote", "deletions": 20, "html_url": "https://github.com/rust-lang/rust/pull/140229", "issue_id": 140229, "merged_at": "2025-04-25T12:26:12Z", "omission_probability": 0.1, "pr_number": 140229, "repo": "rust-lang/rust", "title": "`DelimArgs` tweaks", "total_change...
107
diff --git a/compiler/rustc_target/src/spec/base/cygwin.rs b/compiler/rustc_target/src/spec/base/cygwin.rs new file mode 100644 index 0000000000000..fe3efb3f46ba0 --- /dev/null +++ b/compiler/rustc_target/src/spec/base/cygwin.rs @@ -0,0 +1,46 @@ +use std::borrow::Cow; + +use crate::spec::{Cc, DebuginfoKind, LinkerFlavo...
diff --git a/compiler/rustc_target/src/spec/base/cygwin.rs b/compiler/rustc_target/src/spec/base/cygwin.rs index 0000000000000..fe3efb3f46ba0 +++ b/compiler/rustc_target/src/spec/base/cygwin.rs @@ -0,0 +1,46 @@ +use crate::spec::{Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOptions, cvs}; +pub(crate) fn ...
[ "+use std::borrow::Cow;", "+ &mut pre_link_args,", "+ cygwin_libs,", "- self.os == \"windows\" || self.os == \"uefi\",", "+ data_layout:", "+ description: Some(\"64-bit x86 Cygwin\".into()),", "+ && !target.contains(\"cygwin\")", "+# `x86_64-pc...
[ 6, 16, 26, 80, 105, 110, 127, 164, 174, 184, 196 ]
{ "additions": 125, "author": "Berrysoft", "deletions": 5, "html_url": "https://github.com/rust-lang/rust/pull/134999", "issue_id": 134999, "merged_at": "2025-02-13T14:38:35Z", "omission_probability": 0.1, "pr_number": 134999, "repo": "rust-lang/rust", "title": "Add cygwin target.", "total_changes...
108
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 83f71aeed7204..97afcb6867cff 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -421,13 +421,13 @@ impl Step for Rustc { builder.install(&r...
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 83f71aeed7204..97afcb6867cff 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -421,13 +421,13 @@ impl Step for Rustc { builder.install(&r...
[ "- compiler.stage,", "- ),", "+ &[" ]
[ 15, 18, 120 ]
{ "additions": 50, "author": "onur-ozkan", "deletions": 5, "html_url": "https://github.com/rust-lang/rust/pull/140006", "issue_id": 140006, "merged_at": "2025-04-25T15:37:57Z", "omission_probability": 0.1, "pr_number": 140006, "repo": "rust-lang/rust", "title": "ensure compiler existance of tools on...
109
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 330b409876453..16c0c11804049 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1138,6 +1138,10 @@ pub(crate) mod builtin { issue = "29599", reason = "`concat_idents` is not stable enou...
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 330b409876453..16c0c11804049 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1138,6 +1138,10 @@ pub(crate) mod builtin { issue = "29599", reason = "`concat_idents` is not stable enou...
[ "+ since = \"1.88.0\",", "- --> $DIR/macros-nonfatal-errors.rs:36:11", "- --> $DIR/macros-nonfatal-errors.rs:91:5", "- --> $DIR/macros-nonfatal-errors.rs:109:17", "- --> $DIR/macros-nonfatal-errors.rs:110:10", "- --> $DIR/macros-nonfatal-errors.rs:119:5", "+ --> $DIR/macros-nonfatal-errors....
[ 9, 259, 347, 379, 386, 432, 461, 491 ]
{ "additions": 65, "author": "tgross35", "deletions": 42, "html_url": "https://github.com/rust-lang/rust/pull/137653", "issue_id": 137653, "merged_at": "2025-04-25T15:37:51Z", "omission_probability": 0.1, "pr_number": 137653, "repo": "rust-lang/rust", "title": "Deprecate the unstable `concat_idents!...
110
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 7ec0ac7127142..aed5a043c11a3 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -162,8 +162,14 @@ //! The [`is_some`] and [`is_none`] methods return [`true`] if the [`Option`] //! is [`Some`] or [`None`], respectively....
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 7ec0ac7127142..aed5a043c11a3 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -162,8 +162,14 @@ //! The [`is_some`] and [`is_none`] methods return [`true`] if the [`Option`] //! is [`Some`] or [`None`], respectively....
[ "+//! * [`as_mut_slice`] returns a mutable one-element slice of the contained value, if any.", "+//! [`inspect`]: Option::inspect" ]
[ 25, 71 ]
{ "additions": 27, "author": "Natural-selection1", "deletions": 2, "html_url": "https://github.com/rust-lang/rust/pull/138957", "issue_id": 138957, "merged_at": "2025-04-25T15:37:59Z", "omission_probability": 0.1, "pr_number": 138957, "repo": "rust-lang/rust", "title": "Update the index of Option to...
111
diff --git a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs index df6e8fc4503f1..4330f1f22925d 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs +++ b/compiler/ru...
diff --git a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs b/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs index df6e8fc4503f1..4330f1f22925d 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs +++ b/compiler/ru...
[ "+ };", "+LL | type Output = ();" ]
[ 47, 75 ]
{ "additions": 54, "author": "compiler-errors", "deletions": 7, "html_url": "https://github.com/rust-lang/rust/pull/140278", "issue_id": 140278, "merged_at": "2025-04-25T15:37:51Z", "omission_probability": 0.1, "pr_number": 140278, "repo": "rust-lang/rust", "title": "Don't use item name to look up a...
112
diff --git a/compiler/rustc_ast/src/lib.rs b/compiler/rustc_ast/src/lib.rs index 294c6c9ba7a50..1471262d2d676 100644 --- a/compiler/rustc_ast/src/lib.rs +++ b/compiler/rustc_ast/src/lib.rs @@ -6,6 +6,7 @@ // tidy-alphabetical-start #![allow(internal_features)] +#![cfg_attr(bootstrap, feature(let_chains))] #![doc( ...
diff --git a/compiler/rustc_ast/src/lib.rs b/compiler/rustc_ast/src/lib.rs index 294c6c9ba7a50..1471262d2d676 100644 --- a/compiler/rustc_ast/src/lib.rs +++ b/compiler/rustc_ast/src/lib.rs #![doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/", test(attr(deny(warnings))) @@ -14,7 +15,6 @@...
[]
[]
{ "additions": 40, "author": "est31", "deletions": 40, "html_url": "https://github.com/rust-lang/rust/pull/140202", "issue_id": 140202, "merged_at": "2025-04-25T15:37:51Z", "omission_probability": 0.1, "pr_number": 140202, "repo": "rust-lang/rust", "title": "Make #![feature(let_chains)] bootstrap co...
113
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 7e17f09aecdcb..beaa6497b8caa 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2086,6 +2086,7 @@ fn render_impl( .split_summary_and_content() }) ...
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 7e17f09aecdcb..beaa6497b8caa 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2086,6 +2086,7 @@ fn render_impl( .split_summary_and_content() }) ...
[ "+ if before_dox.is_some()", "+assert-property: (\"#implementations-list > details .docblock\", {\"scrollWidth\": 835})", "+pub mod impls_indent {" ]
[ 34, 90, 138 ]
{ "additions": 63, "author": "GuillaumeGomez", "deletions": 14, "html_url": "https://github.com/rust-lang/rust/pull/140248", "issue_id": 140248, "merged_at": "2025-04-25T12:26:12Z", "omission_probability": 0.1, "pr_number": 140248, "repo": "rust-lang/rust", "title": "Fix impl block items indent", ...
114
diff --git a/INSTALL.md b/INSTALL.md index 30e08201d6dfb..98eb825cd10f6 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -75,8 +75,31 @@ See [the rustc-dev-guide for more info][sysllvm]. 2. Configure the build settings: + If you're unsure which build configurations to use and need a good default, you + can run the ...
diff --git a/INSTALL.md b/INSTALL.md index 30e08201d6dfb..98eb825cd10f6 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -75,8 +75,31 @@ See [the rustc-dev-guide for more info][sysllvm]. 2. Configure the build settings: + If you're unsure which build configurations to use and need a good default, you + can run the inte...
[ "+ --set rust.debug-assertions=false \\" ]
[ 29 ]
{ "additions": 24, "author": "onur-ozkan", "deletions": 1, "html_url": "https://github.com/rust-lang/rust/pull/140213", "issue_id": 140213, "merged_at": "2025-04-25T12:26:12Z", "omission_probability": 0.1, "pr_number": 140213, "repo": "rust-lang/rust", "title": "mention about `x.py setup` in `INSTAL...
115
diff --git a/compiler/rustc_hir_typeck/src/cast.rs b/compiler/rustc_hir_typeck/src/cast.rs index b19d9efe2c6f5..caf36ba47bd75 100644 --- a/compiler/rustc_hir_typeck/src/cast.rs +++ b/compiler/rustc_hir_typeck/src/cast.rs @@ -501,12 +501,25 @@ impl<'a, 'tcx> CastCheck<'tcx> { .must_apply_mod...
diff --git a/compiler/rustc_hir_typeck/src/cast.rs b/compiler/rustc_hir_typeck/src/cast.rs index b19d9efe2c6f5..caf36ba47bd75 100644 --- a/compiler/rustc_hir_typeck/src/cast.rs +++ b/compiler/rustc_hir_typeck/src/cast.rs @@ -501,12 +501,25 @@ impl<'a, 'tcx> CastCheck<'tcx> { .must_apply_mod...
[ "+ };", "+LL - let _ = \"String\" as Arc<str>;" ]
[ 32, 116 ]
{ "additions": 74, "author": "Kivooeo", "deletions": 7, "html_url": "https://github.com/rust-lang/rust/pull/140196", "issue_id": 140196, "merged_at": "2025-04-25T12:26:12Z", "omission_probability": 0.1, "pr_number": 140196, "repo": "rust-lang/rust", "title": "Improved diagnostics for non-primitive c...
116
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e83bbf643fee..7c46871569646 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,17 @@ jobs: # Check the `calculate_matrix` job to see how is the matrix defined. include: ${{ fromJSON(needs.calculate_m...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e83bbf643fee..7c46871569646 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,17 @@ jobs: # Check the `calculate_matrix` job to see how is the matrix defined. include: ${{ fromJSON(needs.calculate_m...
[ "+ if: ${{ !matrix.codebuild }}", "+#[serde(deny_unknown_fields)]", "+/// Replace GitHub context variables with environment variables in job configs.", "+ .into_iter()", "+ .replace(\"$github.run_id\", &run_id)", "+ })", "+ codebuild: job.codebuild,", ...
[ 27, 47, 77, 85, 89, 92, 112, 154, 163, 176, 203 ]
{ "additions": 91, "author": "marcoieni", "deletions": 13, "html_url": "https://github.com/rust-lang/rust/pull/140148", "issue_id": 140148, "merged_at": "2025-04-25T12:26:12Z", "omission_probability": 0.1, "pr_number": 140148, "repo": "rust-lang/rust", "title": "CI: use aws codebuild for job dist-ar...
117
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index de93e2b99eede..31c696ed41ff4 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -415,13 +415,10 @@ pub struct Config { /// ABI tests. pub minicore_path: Utf8PathBuf, - /...
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index de93e2b99eede..31c696ed41ff4 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -415,13 +415,10 @@ pub struct Config { /// ABI tests. pub minicore_path: Utf8PathBuf, - ///...
[ "- /// executor to run tests instead. This is a temporary fallback, to make", "+ /// default, and the libtest dependency will be removed.", "- no_new_executor: matches.opt_present(\"no-new-executor\")," ]
[ 9, 17, 39 ]
{ "additions": 7, "author": "Zalathar", "deletions": 11, "html_url": "https://github.com/rust-lang/rust/pull/140233", "issue_id": 140233, "merged_at": "2025-04-25T09:08:24Z", "omission_probability": 0.1, "pr_number": 140233, "repo": "rust-lang/rust", "title": "Revert compiletest new-executor, to re-...
118
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 67fca1d7c2947..ad9cec6fed908 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -231,7 +231,7 @@ use rustc_middle::ty::{ use rustc_middle::util::Pr...
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 67fca1d7c2947..ad9cec6fed908 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -231,7 +231,7 @@ use rustc_middle::ty::{ use rustc_middle::util::Pr...
[ "-use rustc_session::config::EntryFnType;", "+impl Fun for () {" ]
[ 8, 42 ]
{ "additions": 30, "author": "tmiasko", "deletions": 1, "html_url": "https://github.com/rust-lang/rust/pull/138980", "issue_id": 138980, "merged_at": "2025-03-27T10:59:55Z", "omission_probability": 0.1, "pr_number": 138980, "repo": "rust-lang/rust", "title": "Collect items referenced from var_debug_...
119
diff --git a/src/bootstrap/src/core/build_steps/suggest.rs b/src/bootstrap/src/core/build_steps/suggest.rs index 6a6731cafc54a..fd4918961adba 100644 --- a/src/bootstrap/src/core/build_steps/suggest.rs +++ b/src/bootstrap/src/core/build_steps/suggest.rs @@ -13,7 +13,6 @@ pub fn suggest(builder: &Builder<'_>, run: bool) ...
diff --git a/src/bootstrap/src/core/build_steps/suggest.rs b/src/bootstrap/src/core/build_steps/suggest.rs index 6a6731cafc54a..fd4918961adba 100644 --- a/src/bootstrap/src/core/build_steps/suggest.rs +++ b/src/bootstrap/src/core/build_steps/suggest.rs @@ -13,7 +13,6 @@ pub fn suggest(builder: &Builder<'_>, run: bool) ...
[ "- pub git_repository: &'a str," ]
[ 56 ]
{ "additions": 0, "author": "Kobzol", "deletions": 16, "html_url": "https://github.com/rust-lang/rust/pull/140191", "issue_id": 140191, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 140191, "repo": "rust-lang/rust", "title": "Remove git repository from git config", ...
120
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index 0985ebf945bbd..194ae9041b1a0 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -799,7 +799,7 @@ pub trait PrintState<'a>: std::ops::Deref<Targe...
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index 0985ebf945bbd..194ae9041b1a0 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -799,7 +799,7 @@ pub trait PrintState<'a>: std::ops::Deref<Targe...
[ "+ pub fn new(callback: F) -> Self {", "+ run_compiler(&args, self);", "+fn test_break(args: &[String]) {" ]
[ 58, 67, 374 ]
{ "additions": 50, "author": "nnethercote", "deletions": 50, "html_url": "https://github.com/rust-lang/rust/pull/140232", "issue_id": 140232, "merged_at": "2025-04-24T12:05:12Z", "omission_probability": 0.1, "pr_number": 140232, "repo": "rust-lang/rust", "title": "Remove unnecessary clones", "tota...
121
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 8de68925cabbc..f0c47ac41e8a0 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -2015,6 +2015,12 @@ fn add_linked_symbol_object( file.set_mangl...
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 8de68925cabbc..f0c47ac41e8a0 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -2015,6 +2015,12 @@ fn add_linked_symbol_object( file.set_mangl...
[ "+// Functions in the dynamic library marked with no_mangle should not be GC-ed.", "+#![feature(used_with_arg)]" ]
[ 29, 56 ]
{ "additions": 53, "author": "usamoi", "deletions": 0, "html_url": "https://github.com/rust-lang/rust/pull/139752", "issue_id": 139752, "merged_at": "2025-04-25T02:18:45Z", "omission_probability": 0.1, "pr_number": 139752, "repo": "rust-lang/rust", "title": "set subsections_via_symbols for ld64 help...
122
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index 7109fefbe783e..69f650a49b1e6 100644 --- a/compiler/rustc_lint/src/types.rs +++ b/compiler/rustc_lint/src/types.rs @@ -1,7 +1,9 @@ use std::iter; use std::ops::ControlFlow; -use rustc_abi::{BackendRepr, TagEncoding, VariantIdx, Va...
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index 7109fefbe783e..69f650a49b1e6 100644 --- a/compiler/rustc_lint/src/types.rs +++ b/compiler/rustc_lint/src/types.rs @@ -1,7 +1,9 @@ use std::iter; use std::ops::ControlFlow; -use rustc_abi::{BackendRepr, TagEncoding, VariantIdx, Vari...
[ "+use rustc_abi::{", "+ ty,", "+ };", "+ fn repr_i128(x: I128); //~ ERROR `extern` block uses type `I128`", "+ --> $DIR/lint-ctypes-enum.rs:11:1", "- --> $DIR/lint-ctypes-enum.rs:94:36", "+ --> $DIR/lint-ctypes-enum.rs:132:33", "- --> $D...
[ 9, 21, 24, 69, 89, 173, 210, 245, 281, 308 ]
{ "additions": 86, "author": "beetrees", "deletions": 32, "html_url": "https://github.com/rust-lang/rust/pull/138282", "issue_id": 138282, "merged_at": "2025-04-24T22:57:57Z", "omission_probability": 0.1, "pr_number": 138282, "repo": "rust-lang/rust", "title": "Add `#[repr(u128)]`/`#[repr(i128)]` en...
123
diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics.rs b/compiler/rustc_const_eval/src/interpret/intrinsics.rs index 4ca317e3a1e53..40c63f2b250f5 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics.rs @@ -158,6 +158,31 @@ impl<'tcx, M: ...
diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics.rs b/compiler/rustc_const_eval/src/interpret/intrinsics.rs index 4ca317e3a1e53..40c63f2b250f5 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics.rs @@ -158,6 +158,31 @@ impl<'tcx, M: ...
[ "+ | sym::frem_algebraic => {", "+ pub const fn algebraic_sub(self, rhs: f128) -> f128 {", "+ pub const fn algebraic_mul(self, rhs: f128) -> f128 {", "+ pub const fn algebraic_add(self, rhs: f16) -> f16 {", "+ pub const fn algebraic_div(self, rhs: f16) -> f16 {", "- pub fn algebr...
[ 12, 103, 114, 151, 184, 209, 220, 326, 327, 337, 339 ]
{ "additions": 70, "author": "bjoernager", "deletions": 51, "html_url": "https://github.com/rust-lang/rust/pull/140172", "issue_id": 140172, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 140172, "repo": "rust-lang/rust", "title": "Make algebraic functions into `const...
124
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..c7c28f2af2a23 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -194,16 +194,22 @@ impl f128 { #[unstable(feature = "f128", issue = "116909")] pub const MAX: f128 = 1.1897314953572317650...
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..c7c28f2af2a23 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -194,16 +194,22 @@ impl f128 { pub const MAX: f128 = 1.18973149535723176508575932662800702e+4932_f128; pub const MIN_EXP: ...
[]
[]
{ "additions": 48, "author": "RalfJung", "deletions": 24, "html_url": "https://github.com/rust-lang/rust/pull/140150", "issue_id": 140150, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 140150, "repo": "rust-lang/rust", "title": "fix MAX_EXP and MIN_EXP docs", "tota...
125
diff --git a/library/std/src/sys/env_consts.rs b/library/std/src/sys/env_consts.rs index 018d7954db26a..9683fd47cf96b 100644 --- a/library/std/src/sys/env_consts.rs +++ b/library/std/src/sys/env_consts.rs @@ -389,6 +389,17 @@ pub mod os { pub const EXE_EXTENSION: &str = "exe"; } +#[cfg(target_os = "zkvm")] +pub...
diff --git a/library/std/src/sys/env_consts.rs b/library/std/src/sys/env_consts.rs index 018d7954db26a..9683fd47cf96b 100644 --- a/library/std/src/sys/env_consts.rs +++ b/library/std/src/sys/env_consts.rs @@ -389,6 +389,17 @@ pub mod os { pub const EXE_EXTENSION: &str = "exe"; } +#[cfg(target_os = "zkvm")] +pub...
[]
[]
{ "additions": 11, "author": "thaliaarchi", "deletions": 9, "html_url": "https://github.com/rust-lang/rust/pull/140141", "issue_id": 140141, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 140141, "repo": "rust-lang/rust", "title": "Move zkVM constants into `sys::env_c...
126
diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs index aeace6a40c72e..0450843b9285d 100644 --- a/compiler/rustc_target/src/target_features.rs +++ b/compiler/rustc_target/src/target_features.rs @@ -516,7 +516,7 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedF...
diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs index aeace6a40c72e..0450843b9285d 100644 --- a/compiler/rustc_target/src/target_features.rs +++ b/compiler/rustc_target/src/target_features.rs @@ -516,7 +516,7 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedF...
[ "- (\"zbc\", Stable, &[]),", "+ (\"zbc\", Stable, &[\"zbkc\"]), // Zbc ⊃ Zbkc", "- (\"zkr\", Stable, &[\"zicsr\"])," ]
[ 8, 9, 17 ]
{ "additions": 5, "author": "a4lg", "deletions": 5, "html_url": "https://github.com/rust-lang/rust/pull/140139", "issue_id": 140139, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 140139, "repo": "rust-lang/rust", "title": "rustc_target: Adjust RISC-V feature implicat...
127
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index a8b49e9552c30..925898d817371 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -584,12 +584,10 @@ fn thin_lto( } } -fn enable_autodiff_settings...
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index a8b49e9552c30..925898d817371 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -584,12 +584,10 @@ fn thin_lto( } -fn enable_autodiff_settings(ad: &[co...
[ "- enable_autodiff_settings(&config.autodiff, module);", "- // This is the post-autodiff IR, mainly used for testing and educational purposes.", "+ unsafe {", "+ let merge_functions;", "+ print_passes,", "+ // Here we replace the placeholder code with the actual a...
[ 59, 68, 79, 96, 135, 148, 162, 182, 183, 184, 195, 200, 215, 223, 238, 283, 319 ]
{ "additions": 123, "author": "ZuseZ4", "deletions": 23, "html_url": "https://github.com/rust-lang/rust/pull/139700", "issue_id": 139700, "merged_at": "2025-04-24T22:57:56Z", "omission_probability": 0.1, "pr_number": 139700, "repo": "rust-lang/rust", "title": "Autodiff flags", "total_changes": 146...
128
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 39251f1ce2737..4be8a90368d29 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2058,6 +2058,17 @@ impl<'a> Parser<'a> { } self.expect_field_ty_separ...
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 39251f1ce2737..4be8a90368d29 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2058,6 +2058,17 @@ impl<'a> Parser<'a> { } self.expect_field_ty_separ...
[ "- self.token == token::Colon", "- && self", "+#![crate_type = \"lib\"]", "+ #[cfg(any())] fn h() where a::path:to::nowhere {} // OK!", "+ trait Take { type path; }", "-LL | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {", "- ...
[ 34, 37, 84, 94, 99, 158, 172, 211 ]
{ "additions": 64, "author": "fmease", "deletions": 89, "html_url": "https://github.com/rust-lang/rust/pull/140228", "issue_id": 140228, "merged_at": "2025-04-24T15:17:06Z", "omission_probability": 0.1, "pr_number": 140228, "repo": "rust-lang/rust", "title": "Revert overzealous parse recovery for si...
129
diff --git a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs index 94ee34c8b7bf3..81bf8c5d21c73 100644 --- a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs +++ b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs @@ -99,6 +99,12 @@ fn w...
diff --git a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs index 94ee34c8b7bf3..81bf8c5d21c73 100644 --- a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs +++ b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs @@ -99,6 +99,12 @@ fn w...
[ "+pub struct v128([i32; 4]);", "+ | ^^^^ not FFI-safe" ]
[ 39, 53 ]
{ "additions": 47, "author": "alexcrichton", "deletions": 2, "html_url": "https://github.com/rust-lang/rust/pull/139809", "issue_id": 139809, "merged_at": "2025-04-24T12:05:12Z", "omission_probability": 0.1, "pr_number": 139809, "repo": "rust-lang/rust", "title": "Don't warn about `v128` in wasm ABI...
130
diff --git a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs index 0f5bdc8d7683f..94ee34c8b7bf3 100644 --- a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs +++ b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs @@ -111,6 +111,11 @@ fn...
diff --git a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs index 0f5bdc8d7683f..94ee34c8b7bf3 100644 --- a/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs +++ b/compiler/rustc_monomorphize/src/mono_checks/abi_check.rs @@ -111,6 +111,11 @@ fn...
[ "+ if arg.layout.is_zst() {" ]
[ 9 ]
{ "additions": 11, "author": "alexcrichton", "deletions": 0, "html_url": "https://github.com/rust-lang/rust/pull/139498", "issue_id": 139498, "merged_at": "2025-04-18T00:44:44Z", "omission_probability": 0.1, "pr_number": 139498, "repo": "rust-lang/rust", "title": "Ignore zero-sized types in wasm fut...
131
diff --git a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs index 78a452439836f..fa6bbf1d6e57b 100644 --- a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs +++ b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs...
diff --git a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs index 78a452439836f..fa6bbf1d6e57b 100644 --- a/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs +++ b/compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs...
[ "+ let args = GenericArgs::for_item(tcx, trait_def_id, |param, _| {", "+ if param.index == 0 { unsized_self_ty.into() } else { tcx.mk_param_from_def(param) }", "-help: this trait has no implementations, consider adding one", "+ type Scalar;" ]
[ 39, 40, 91, 126 ]
{ "additions": 61, "author": "compiler-errors", "deletions": 26, "html_url": "https://github.com/rust-lang/rust/pull/138941", "issue_id": 138941, "merged_at": "2025-04-02T06:57:53Z", "omission_probability": 0.1, "pr_number": 138941, "repo": "rust-lang/rust", "title": "Do not mix normalized and unnor...
132
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 35134e9f5a050..cf98cee0c15ed 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -594,6 +594,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a...
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 35134e9f5a050..cf98cee0c15ed 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -594,6 +594,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a...
[ "+ // the mask for the highest reliable alignment.", "+ ConstValue::Scalar(Scalar::from_target_usize(max_mask, &tcx)),", "+ }" ]
[ 45, 55, 122 ]
{ "additions": 68, "author": "RalfJung", "deletions": 12, "html_url": "https://github.com/rust-lang/rust/pull/139261", "issue_id": 139261, "merged_at": "2025-04-24T15:17:07Z", "omission_probability": 0.1, "pr_number": 139261, "repo": "rust-lang/rust", "title": "mitigate MSVC alignment issue on x86-3...
133
diff --git a/src/doc/rustc-dev-guide/src/tests/minicore.md b/src/doc/rustc-dev-guide/src/tests/minicore.md index e4853b6d40e35..507b259e0275d 100644 --- a/src/doc/rustc-dev-guide/src/tests/minicore.md +++ b/src/doc/rustc-dev-guide/src/tests/minicore.md @@ -6,25 +6,37 @@ ui/codegen/assembly test suites. It provides `co...
diff --git a/src/doc/rustc-dev-guide/src/tests/minicore.md b/src/doc/rustc-dev-guide/src/tests/minicore.md index e4853b6d40e35..507b259e0275d 100644 --- a/src/doc/rustc-dev-guide/src/tests/minicore.md +++ b/src/doc/rustc-dev-guide/src/tests/minicore.md @@ -6,25 +6,37 @@ ui/codegen/assembly test suites. It provides `co...
[ "+</div>", "+ // `-Cforce-unwind-tables`s. Note that checking here is very fragile, because we'd have to" ]
[ 12, 61 ]
{ "additions": 35, "author": "jieyouxu", "deletions": 9, "html_url": "https://github.com/rust-lang/rust/pull/140194", "issue_id": 140194, "merged_at": "2025-04-24T15:17:07Z", "omission_probability": 0.1, "pr_number": 140194, "repo": "rust-lang/rust", "title": "minicore: Have `//@ add-core-stubs` als...
134
diff --git a/compiler/rustc_trait_selection/src/traits/wf.rs b/compiler/rustc_trait_selection/src/traits/wf.rs index 54b6c22b2d821..cad7e42fd8212 100644 --- a/compiler/rustc_trait_selection/src/traits/wf.rs +++ b/compiler/rustc_trait_selection/src/traits/wf.rs @@ -1,3 +1,8 @@ +//! Core logic responsible for determining...
diff --git a/compiler/rustc_trait_selection/src/traits/wf.rs b/compiler/rustc_trait_selection/src/traits/wf.rs index 54b6c22b2d821..cad7e42fd8212 100644 --- a/compiler/rustc_trait_selection/src/traits/wf.rs +++ b/compiler/rustc_trait_selection/src/traits/wf.rs @@ -1,3 +1,8 @@ +//! Core logic responsible for determining...
[ "- // No progress.", "- wf.compute_trait_pred(trait_pred, Elaborate::All);", "+ wf.add_wf_preds_for_alias_term(t.projection_term);", "- fn from_object_ty(", "+ // We don't add any wf predicates corresponding to the trait ref's generic arguments", "+ ...
[ 50, 86, 110, 208, 218, 221 ]
{ "additions": 48, "author": "BoxyUwU", "deletions": 31, "html_url": "https://github.com/rust-lang/rust/pull/140186", "issue_id": 140186, "merged_at": "2025-04-24T15:17:06Z", "omission_probability": 0.1, "pr_number": 140186, "repo": "rust-lang/rust", "title": "Rename `compute_x` methods", "total_c...
135
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..2d08c3709a5ce 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -801,7 +801,7 @@ impl f128 { } } - /// Calculates the middle point of `self` and `rhs`. + /// Calculates the m...
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..2d08c3709a5ce 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -801,7 +801,7 @@ impl f128 { @@ -818,6 +818,7 @@ impl f128 { #[unstable(feature = "f128", issue = "116909")] #[rustc_const...
[]
[]
{ "additions": 25, "author": "Urgau", "deletions": 9, "html_url": "https://github.com/rust-lang/rust/pull/140075", "issue_id": 140075, "merged_at": "2025-04-24T15:17:07Z", "omission_probability": 0.1, "pr_number": 140075, "repo": "rust-lang/rust", "title": "Mention average in midpoint documentations...
136
diff --git a/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs b/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs index 7bd1300f34ed7..8ce436bade867 100644 --- a/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs +++ b/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs @@ -1298,18 +1298,6...
diff --git a/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs b/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs index 7bd1300f34ed7..8ce436bade867 100644 --- a/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs +++ b/compiler/rustc_next_trait_solver/src/solve/trait_goals.rs @@ -1298,18 +1298,6...
[ "- for p in goal.param_env.caller_bounds().iter() {" ]
[ 12 ]
{ "additions": 0, "author": "compiler-errors", "deletions": 14, "html_url": "https://github.com/rust-lang/rust/pull/140214", "issue_id": 140214, "merged_at": "2025-04-24T15:17:07Z", "omission_probability": 0.1, "pr_number": 140214, "repo": "rust-lang/rust", "title": "Remove comment about handling no...
137
diff --git a/compiler/rustc_macros/src/diagnostics/mod.rs b/compiler/rustc_macros/src/diagnostics/mod.rs index 91398f1a9da9d..55228248188e5 100644 --- a/compiler/rustc_macros/src/diagnostics/mod.rs +++ b/compiler/rustc_macros/src/diagnostics/mod.rs @@ -55,8 +55,7 @@ use synstructure::Structure; /// /// See rustc dev ...
diff --git a/compiler/rustc_macros/src/diagnostics/mod.rs b/compiler/rustc_macros/src/diagnostics/mod.rs index 91398f1a9da9d..55228248188e5 100644 --- a/compiler/rustc_macros/src/diagnostics/mod.rs +++ b/compiler/rustc_macros/src/diagnostics/mod.rs @@ -55,8 +55,7 @@ use synstructure::Structure; /// See rustc dev guide...
[]
[]
{ "additions": 4, "author": "nnethercote", "deletions": 24, "html_url": "https://github.com/rust-lang/rust/pull/140181", "issue_id": 140181, "merged_at": "2025-04-24T12:05:12Z", "omission_probability": 0.1, "pr_number": 140181, "repo": "rust-lang/rust", "title": "Remove `synstructure::Structure::und...
138
diff --git a/library/std/src/os/unix/fs.rs b/library/std/src/os/unix/fs.rs index 0427feb29550f..4f9259f39c1ab 100644 --- a/library/std/src/os/unix/fs.rs +++ b/library/std/src/os/unix/fs.rs @@ -1100,3 +1100,39 @@ pub fn lchown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io: pub fn chroot<P: AsRef<Pat...
diff --git a/library/std/src/os/unix/fs.rs b/library/std/src/os/unix/fs.rs index 0427feb29550f..4f9259f39c1ab 100644 --- a/library/std/src/os/unix/fs.rs +++ b/library/std/src/os/unix/fs.rs @@ -1100,3 +1100,39 @@ pub fn lchown<P: AsRef<Path>>(dir: P, uid: Option<u32>, gid: Option<u32>) -> io: pub fn chroot<P: AsRef<Pat...
[ "+/// # fn main() {}", "+/// # use std::{", "+/// rx.read_to_string(&mut s)?;", "+ let mut s = String::new();", "+ rx.read_to_string(&mut s).unwrap();", "+ assert_eq!(s, \"hello, world!\");", "+ })" ]
[ 16, 19, 34, 67, 68, 70, 96 ]
{ "additions": 63, "author": "NobodyXu", "deletions": 1, "html_url": "https://github.com/rust-lang/rust/pull/139450", "issue_id": 139450, "merged_at": "2025-04-24T12:05:12Z", "omission_probability": 0.1, "pr_number": 139450, "repo": "rust-lang/rust", "title": "Impl new API `std::os::unix::fs::mkfifo...
139
diff --git a/compiler/rustc_ast_passes/src/ast_validation.rs b/compiler/rustc_ast_passes/src/ast_validation.rs index a1487ca74be87..da739b0e4532b 100644 --- a/compiler/rustc_ast_passes/src/ast_validation.rs +++ b/compiler/rustc_ast_passes/src/ast_validation.rs @@ -334,8 +334,7 @@ impl<'a> AstValidator<'a> { ...
diff --git a/compiler/rustc_ast_passes/src/ast_validation.rs b/compiler/rustc_ast_passes/src/ast_validation.rs index a1487ca74be87..da739b0e4532b 100644 --- a/compiler/rustc_ast_passes/src/ast_validation.rs +++ b/compiler/rustc_ast_passes/src/ast_validation.rs @@ -334,8 +334,7 @@ impl<'a> AstValidator<'a> { ...
[ "+ match &mut attr.kind {", "+ item.path.segments[0].ident.name = trace_name;", "+}", "+use crate::config::{StripUnconfigured, attr_into_trace};", "+ node.visit_attrs(|attrs| attrs.insert(pos, trace_attr));", "+ const ATTRS_ALLOWED: &[Symbol] = &[sym::cfg_trace, sym::cfg_at...
[ 36, 39, 46, 78, 103, 184, 222, 281, 358, 377, 435, 457, 470, 499, 502, 527, 589, 593, 594 ]
{ "additions": 88, "author": "petrochenkov", "deletions": 108, "html_url": "https://github.com/rust-lang/rust/pull/138844", "issue_id": 138844, "merged_at": "2025-03-27T21:44:44Z", "omission_probability": 0.1, "pr_number": 138844, "repo": "rust-lang/rust", "title": "expand: Leave traces when expandi...
140
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index 31c696ed41ff4..de93e2b99eede 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -415,10 +415,13 @@ pub struct Config { /// ABI tests. pub minicore_path: Utf8PathBuf, - /...
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index 31c696ed41ff4..de93e2b99eede 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -415,10 +415,13 @@ pub struct Config { /// ABI tests. pub minicore_path: Utf8PathBuf, - ///...
[ "+ ///" ]
[ 15 ]
{ "additions": 11, "author": "Zalathar", "deletions": 7, "html_url": "https://github.com/rust-lang/rust/pull/139998", "issue_id": 139998, "merged_at": "2025-04-23T15:11:33Z", "omission_probability": 0.1, "pr_number": 139998, "repo": "rust-lang/rust", "title": "compiletest: Use the new non-libtest ex...
141
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index 3b66142eb2cec..83a9827e8f81f 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -702,12 +702,12 @@ struct MirBorrowckCtxt<'a, 'infcx, 'tcx> { // 2. loans made in overlapping scopes do not...
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index 3b66142eb2cec..83a9827e8f81f 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -702,12 +702,12 @@ struct MirBorrowckCtxt<'a, 'infcx, 'tcx> { // 2. loans made in overlapping scopes do not...
[ "- Formatter { cursor: results.as_results_cursor(body).into(), style, reachable }", "+ let label = &self.body[e.source].terminator().kind.fmt_successor_labels()[e.index];", "+ fn write_node_label(", "+ ) -> io::Result<Vec<u8>> {", "+ vis: &mut impl ResultsVisitor<'tcx, A>,", "-pub t...
[ 140, 184, 241, 245, 314, 322, 417, 454 ]
{ "additions": 59, "author": "nnethercote", "deletions": 73, "html_url": "https://github.com/rust-lang/rust/pull/140142", "issue_id": 140142, "merged_at": "2025-04-23T18:22:48Z", "omission_probability": 0.1, "pr_number": 140142, "repo": "rust-lang/rust", "title": "Some more graphviz tweaks", "tota...
142
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 50f403ba411b6..7cd20c48d8939 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -353,6 +353,15 @@ fn split_file_at_dot(file: &OsStr) -> (&OsStr, Option<&OsStr>) { } } +/// Checks whether the string is valid as a file extensi...
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 50f403ba411b6..7cd20c48d8939 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -353,6 +353,15 @@ fn split_file_at_dot(file: &OsStr) -> (&OsStr, Option<&OsStr>) { } +/// Checks whether the string is valid as a file extension, or pa...
[]
[]
{ "additions": 17, "author": "thaliaarchi", "deletions": 7, "html_url": "https://github.com/rust-lang/rust/pull/140163", "issue_id": 140163, "merged_at": "2025-04-23T18:22:48Z", "omission_probability": 0.1, "pr_number": 140163, "repo": "rust-lang/rust", "title": "Validate extension in `PathBuf::add_...
143
diff --git a/src/tools/nix-dev-shell/flake.nix b/src/tools/nix-dev-shell/flake.nix index 1b838bd2f7b37..b8287de5fcf09 100644 --- a/src/tools/nix-dev-shell/flake.nix +++ b/src/tools/nix-dev-shell/flake.nix @@ -1,32 +1,24 @@ { description = "rustc dev shell"; - inputs = { - nixpkgs.url = "github:NixOS/nixp...
diff --git a/src/tools/nix-dev-shell/flake.nix b/src/tools/nix-dev-shell/flake.nix index 1b838bd2f7b37..b8287de5fcf09 100644 --- a/src/tools/nix-dev-shell/flake.nix +++ b/src/tools/nix-dev-shell/flake.nix @@ -1,32 +1,24 @@ description = "rustc dev shell"; - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/n...
[ "- in", "+ nixpkgs,", "+ forEachSystem = lib.genAttrs lib.systems.flakeExposed;", "-{ pkgs ? import <nixpkgs> {} }:", "-let ", "+ pkgs ? import <nixpkgs> { },", "- # Avoid creating text files for ICEs.", "- # Provide `libz.so.1`", "+ ninja,", "+stdenv.mkDerivation (self: {", "...
[ 19, 40, 44, 61, 62, 65, 81, 84, 124, 130, 136, 144, 155, 169, 174, 182, 186 ]
{ "additions": 111, "author": "RossSmyth", "deletions": 50, "html_url": "https://github.com/rust-lang/rust/pull/139297", "issue_id": 139297, "merged_at": "2025-04-19T19:11:12Z", "omission_probability": 0.1, "pr_number": 139297, "repo": "rust-lang/rust", "title": "Deduplicate & clean up Nix shell", ...
144
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index e7f17bb6f996d..d2502c99b9bcc 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -893,6 +893,7 @@ parse_unknown_prefix = prefix `{$prefix}` is unknown .label = unknown prefix .note = ...
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index e7f17bb6f996d..d2502c99b9bcc 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -893,6 +893,7 @@ parse_unknown_prefix = prefix `{$prefix}` is unknown .label = unknown prefix .note = ...
[ "+help: use `cr` for a raw C-string", "+LL + cr\"abc\";" ]
[ 87, 90 ]
{ "additions": 41, "author": "Kivooeo", "deletions": 2, "html_url": "https://github.com/rust-lang/rust/pull/140175", "issue_id": 140175, "merged_at": "2025-04-23T18:22:48Z", "omission_probability": 0.1, "pr_number": 140175, "repo": "rust-lang/rust", "title": "`rc\"\"` more clear error message", "t...
145
diff --git a/compiler/rustc_parse/src/lexer/diagnostics.rs b/compiler/rustc_parse/src/lexer/diagnostics.rs index e1f19beb53aee..0b97d4e6993bb 100644 --- a/compiler/rustc_parse/src/lexer/diagnostics.rs +++ b/compiler/rustc_parse/src/lexer/diagnostics.rs @@ -1,14 +1,17 @@ use rustc_ast::token::Delimiter; use rustc_erro...
diff --git a/compiler/rustc_parse/src/lexer/diagnostics.rs b/compiler/rustc_parse/src/lexer/diagnostics.rs index e1f19beb53aee..0b97d4e6993bb 100644 --- a/compiler/rustc_parse/src/lexer/diagnostics.rs +++ b/compiler/rustc_parse/src/lexer/diagnostics.rs @@ -1,14 +1,17 @@ use rustc_ast::token::Delimiter; use rustc_erro...
[ "+pub(crate) fn make_unclosed_delims_error(", "+ opening_candidate: unmatched.candidate_span,", "+}", "+ let (open_delimiter, open_delimiter_span) =", "- for (brace, brace_span) in &self.diag_info.open_braces {", "+ for (delimiter, delimiter_span...
[ 37, 52, 56, 133, 165, 168, 177, 178, 249, 250, 263 ]
{ "additions": 54, "author": "xizheyin", "deletions": 50, "html_url": "https://github.com/rust-lang/rust/pull/140147", "issue_id": 140147, "merged_at": "2025-04-23T18:22:48Z", "omission_probability": 0.1, "pr_number": 140147, "repo": "rust-lang/rust", "title": "Clean: rename `open_braces` to `open_d...
146
diff --git a/tests/ui/writing-to-immutable-vec.rs b/tests/ui/borrowck/writing-to-immutable-vec.rs similarity index 100% rename from tests/ui/writing-to-immutable-vec.rs rename to tests/ui/borrowck/writing-to-immutable-vec.rs diff --git a/tests/ui/writing-to-immutable-vec.stderr b/tests/ui/borrowck/writing-to-immutable-...
diff --git a/tests/ui/writing-to-immutable-vec.rs b/tests/ui/borrowck/writing-to-immutable-vec.rs rename from tests/ui/writing-to-immutable-vec.rs rename to tests/ui/borrowck/writing-to-immutable-vec.rs diff --git a/tests/ui/writing-to-immutable-vec.stderr b/tests/ui/borrowck/writing-to-immutable-vec.stderr rename from...
[ "- println!(\"{}\", x || incr(&mut y));", "+// This test verifies the short-circuiting behavior of logical operators `||` and `&&`.", "+ assert!(false, \"This function should never be called due to short-circuiting\");", "+ let mut y: isize = 10;", "+ assert_eq!(y, 10, \"y should remain 10 if sh...
[ 30, 63, 69, 77, 79 ]
{ "additions": 56, "author": "reddevilmidzy", "deletions": 25, "html_url": "https://github.com/rust-lang/rust/pull/140029", "issue_id": 140029, "merged_at": "2025-04-21T19:27:12Z", "omission_probability": 0.1, "pr_number": 140029, "repo": "rust-lang/rust", "title": "Tidying up UI tests [1/N]", "to...
147
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..2ee25969289fc 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -145,6 +145,9 @@ impl f128 { pub const RADIX: u32 = 2; /// Number of significant digits in base 2. + /// + /// Not...
diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index d3d1eebc22753..2ee25969289fc 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -145,6 +145,9 @@ impl f128 { #[unstable(feature = "f128", issue = "116909")] pub const MANTISSA_DIGITS: u32 = 113; diff --...
[]
[]
{ "additions": 20, "author": "RalfJung", "deletions": 0, "html_url": "https://github.com/rust-lang/rust/pull/140149", "issue_id": 140149, "merged_at": "2025-04-23T01:16:10Z", "omission_probability": 0.1, "pr_number": 140149, "repo": "rust-lang/rust", "title": "test_nan: ensure the NAN contant is qui...
148
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index c2c78dd9c67eb..a033b8bd30514 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -596,7 +596,7 @@ impl<'a> Arguments<'a> { /// When using the format_args!() macro, this function is used to generate the /// A...
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index c2c78dd9c67eb..a033b8bd30514 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -596,7 +596,7 @@ impl<'a> Arguments<'a> { /// When using the format_args!() macro, this function is used to generate the /// A...
[ "+ pub const fn new_v1<const P: usize, const A: usize>(", "- pub fn from_usize(x: &usize) -> Argument<'_> {", "- | ^^^^^^^^^^^^^^^^^" ]
[ 9, 45, 107 ]
{ "additions": 11, "author": "c410-f3r", "deletions": 31, "html_url": "https://github.com/rust-lang/rust/pull/135139", "issue_id": 135139, "merged_at": "2025-01-07T07:20:09Z", "omission_probability": 0.1, "pr_number": 135139, "repo": "rust-lang/rust", "title": "[generic_assert] Constify methods used...
149
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs index 763e9207a126b..42fe01b1c84c3 100644 --- a/compiler/rustc_resolve/src/build_reduced_graph.rs +++ b/compiler/rustc_resolve/src/build_reduced_graph.rs @@ -1115,7 +1115,6 @@ impl<'a, 'ra, 'tcx> BuildRedu...
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs index 763e9207a126b..42fe01b1c84c3 100644 --- a/compiler/rustc_resolve/src/build_reduced_graph.rs +++ b/compiler/rustc_resolve/src/build_reduced_graph.rs @@ -1115,7 +1115,6 @@ impl<'a, 'ra, 'tcx> BuildRedu...
[ "- pub single_imports: FxHashSet<Import<'ra>>,", "+ unused_labels: FxIndexMap<NodeId, Span>," ]
[ 53, 85 ]
{ "additions": 9, "author": "petrochenkov", "deletions": 14, "html_url": "https://github.com/rust-lang/rust/pull/138580", "issue_id": 138580, "merged_at": "2025-03-25T16:41:36Z", "omission_probability": 0.1, "pr_number": 138580, "repo": "rust-lang/rust", "title": "resolve: Avoid some unstable iterat...
150
diff --git a/package.json b/package.json index b5e435d6dd68..03b0538361e3 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "jest-snapshot-serializer-ansi": "2.2.1", "jest-snapshot-serializer-raw": "2.0.0", "jest-watch-typeahead": "2.2.2", - "knip": "5.47.0", + "knip": "5.50.5", ...
diff --git a/package.json b/package.json index b5e435d6dd68..03b0538361e3 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "jest-snapshot-serializer-ansi": "2.2.1", "jest-snapshot-serializer-raw": "2.0.0", "jest-watch-typeahead": "2.2.2", - "knip": "5.47.0", + "knip": "5.50.5", ...
[ "- version: 4.0.1", "- checksum: 10/7b76a0139dec52e3f2a3a0bb4f13dbf72a6b79d8076ec4b5deea9e75bd1b79d7abda53776f93b5aefda9a5e40f0e31f49f6e35bf5460a402f0aee7bcf3b26d85", "+ resolution: \"knip@npm:5.50.5\"", "- \"@snyk/github-codeowners\": \"npm:1.1.0\"", "- summary: \"npm:2.1.0\"" ]
[ 22, 51, 164, 167, 176 ]
{ "additions": 10, "author": "renovate[bot]", "deletions": 99, "html_url": "https://github.com/prettier/prettier/pull/17404", "issue_id": 17404, "merged_at": "2025-04-25T02:40:03Z", "omission_probability": 0.1, "pr_number": 17404, "repo": "prettier/prettier", "title": "chore(deps): update dependency...
151
diff --git a/package.json b/package.json index b5e435d6dd68..dfaa3f3a3095 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.7", + "@angular/compiler": "19.2.8", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
diff --git a/package.json b/package.json index b5e435d6dd68..dfaa3f3a3095 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.7", + "@angular/compiler": "19.2.8", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
[]
[]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17403", "issue_id": 17403, "merged_at": "2025-04-25T02:36:56Z", "omission_probability": 0.1, "pr_number": 17403, "repo": "prettier/prettier", "title": "chore(deps): update dependency @...
152
diff --git a/package.json b/package.json index b5e435d6dd68..ff1e648c1c83 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "remark-math": "3.0.1", "remark-parse": "8.0.3", "sdbm": "2.0.0", - "smol-toml": "1.3.3", + "smol-toml": "1.3.4", "strip-ansi": "7.1.0", "to-fast-proper...
diff --git a/package.json b/package.json index b5e435d6dd68..ff1e648c1c83 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "remark-math": "3.0.1", "remark-parse": "8.0.3", "sdbm": "2.0.0", - "smol-toml": "1.3.3", + "smol-toml": "1.3.4", "strip-ansi": "7.1.0", "to-fast-proper...
[]
[]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17402", "issue_id": 17402, "merged_at": "2025-04-25T02:36:37Z", "omission_probability": 0.1, "pr_number": 17402, "repo": "prettier/prettier", "title": "chore(deps): update dependency s...
153
diff --git a/changelog_unreleased/javascript/17398.md b/changelog_unreleased/javascript/17398.md new file mode 100644 index 000000000000..a45a7831f55f --- /dev/null +++ b/changelog_unreleased/javascript/17398.md @@ -0,0 +1,19 @@ +#### Preserve spaces between CSS words and embedded expression (#17398 by @sosukesuzuki) +...
diff --git a/changelog_unreleased/javascript/17398.md b/changelog_unreleased/javascript/17398.md index 000000000000..a45a7831f55f +++ b/changelog_unreleased/javascript/17398.md +#### Preserve spaces between CSS words and embedded expression (#17398 by @sosukesuzuki) +<!-- prettier-ignore --> +```jsx +// Input + font...
[ "+// Prettier stable", "+ }", "+ return originalIndex - (value.charAt(1) === \"-\" ? 2 : 1);", "+ return fixValueWordLoc(node, index);", "- // styled.div` background: var(--${one}); `", "+ // examples:", "+ border: 1px \\${solid} red;", "+ font-size: var(--font-size-h \\${level});", ...
[ 15, 37, 38, 61, 75, 77, 126, 142, 166 ]
{ "additions": 111, "author": "sosukesuzuki", "deletions": 4, "html_url": "https://github.com/prettier/prettier/pull/17398", "issue_id": 17398, "merged_at": "2025-04-25T02:11:50Z", "omission_probability": 0.1, "pr_number": 17398, "repo": "prettier/prettier", "title": "Preserve spaces between CSS wor...
154
diff --git a/cspell.json b/cspell.json index d9c898528322..246432cdd2e3 100644 --- a/cspell.json +++ b/cspell.json @@ -159,6 +159,7 @@ "lintstaged", "lintstagedrc", "literalline", + "llms", "loglevel", "lydell", "Marek", diff --git a/website/docusaurus.config...
diff --git a/cspell.json b/cspell.json index d9c898528322..246432cdd2e3 100644 --- a/cspell.json +++ b/cspell.json @@ -159,6 +159,7 @@ "lintstaged", "lintstagedrc", "literalline", + "llms", "loglevel", "lydell", "Marek", diff --git a/website/docusaurus.config...
[ "-", "+ return -1;", "+ for (const entry of entries) {", "+ .split(\"-\")", "+ description = descriptionMatch[1].trim();", "+ async postBuild({ content, outDir }) {", "+ }\\n\\n## Documentation\\n\\n${docsRecords", "+ `- [${doc.title}]($...
[ 28, 60, 68, 74, 95, 115, 125, 128 ]
{ "additions": 103, "author": "fisker", "deletions": 1, "html_url": "https://github.com/prettier/prettier/pull/17388", "issue_id": 17388, "merged_at": "2025-04-24T09:04:42Z", "omission_probability": 0.1, "pr_number": 17388, "repo": "prettier/prettier", "title": "Website: generate `llms-full.txt` and...
155
diff --git a/src/language-html/print/tag.js b/src/language-html/print/tag.js index da50dff68b24..d10c8219fc8f 100644 --- a/src/language-html/print/tag.js +++ b/src/language-html/print/tag.js @@ -355,15 +355,17 @@ function printOpeningTagStartMarker(node, options) { case "docType": { // Only lowercase HTML5 ...
diff --git a/src/language-html/print/tag.js b/src/language-html/print/tag.js index da50dff68b24..d10c8219fc8f 100644 --- a/src/language-html/print/tag.js +++ b/src/language-html/print/tag.js @@ -355,15 +355,17 @@ function printOpeningTagStartMarker(node, options) { case "docType": { // Only lowercase HTML5 ...
[ "- if (/\\.html?$/u.test(filepath)) {" ]
[ 9 ]
{ "additions": 7, "author": "fisker", "deletions": 5, "html_url": "https://github.com/prettier/prettier/pull/17395", "issue_id": 17395, "merged_at": "2025-04-24T09:04:12Z", "omission_probability": 0.1, "pr_number": 17395, "repo": "prettier/prettier", "title": "Minor improvement to `doctype` print", ...
156
diff --git a/eslint.config.js b/eslint.config.js index e7711753bd37..63ccda881a21 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -74,6 +74,7 @@ export default [ "no-implicit-coercion": "error", "no-inner-declarations": "error", "no-lonely-if": "error", + "no-restricted-imports": ["err...
diff --git a/eslint.config.js b/eslint.config.js index e7711753bd37..63ccda881a21 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -74,6 +74,7 @@ export default [ "no-implicit-coercion": "error", "no-inner-declarations": "error", "no-lonely-if": "error", + "no-restricted-imports": ["err...
[]
[]
{ "additions": 11, "author": "fisker", "deletions": 10, "html_url": "https://github.com/prettier/prettier/pull/15728", "issue_id": 15728, "merged_at": "2025-04-23T17:44:04Z", "omission_probability": 0.1, "pr_number": 15728, "repo": "prettier/prettier", "title": "[V4] Use `node:assert/strict`", "to...
157
diff --git a/src/cli/format.js b/src/cli/format.js index cfeac1dad057..30abf3d50cc7 100644 --- a/src/cli/format.js +++ b/src/cli/format.js @@ -16,7 +16,7 @@ import { } from "./prettier-internal.js"; import { normalizeToPosix, statSafe } from "./utils.js"; -const { writeFormattedFile } = mockable; +const { writeForm...
diff --git a/src/cli/format.js b/src/cli/format.js index cfeac1dad057..30abf3d50cc7 100644 --- a/src/cli/format.js +++ b/src/cli/format.js @@ -16,7 +16,7 @@ import { } from "./prettier-internal.js"; import { normalizeToPosix, statSafe } from "./utils.js"; -const { writeFormattedFile } = mockable; +const { writeFormat...
[ "+ const message = `${picocolors.gray(fileNameToDisplay)} ${timeToDisplay} (unchanged)`;", "+ mockable.getTimestamp = () => 0;" ]
[ 60, 100 ]
{ "additions": 11, "author": "fisker", "deletions": 13, "html_url": "https://github.com/prettier/prettier/pull/17390", "issue_id": 17390, "merged_at": "2025-04-22T18:51:20Z", "omission_probability": 0.1, "pr_number": 17390, "repo": "prettier/prettier", "title": "Measure time with `performance.now()`...
158
diff --git a/src/cli/format.js b/src/cli/format.js index 5f3e04b51245..cfeac1dad057 100644 --- a/src/cli/format.js +++ b/src/cli/format.js @@ -1,5 +1,6 @@ import fs from "node:fs/promises"; import path from "node:path"; +import getStdin from "get-stdin"; import * as prettier from "../index.js"; import { expandPatte...
diff --git a/src/cli/format.js b/src/cli/format.js index 5f3e04b51245..cfeac1dad057 100644 --- a/src/cli/format.js +++ b/src/cli/format.js @@ -1,5 +1,6 @@ +import getStdin from "get-stdin"; import * as prettier from "../index.js"; import { expandPatterns } from "./expand-patterns.js"; import findCacheFile from "./fi...
[ "+const { writeFormattedFile } = mockable;", "+@typedef {{" ]
[ 16, 64 ]
{ "additions": 28, "author": "fisker", "deletions": 9, "html_url": "https://github.com/prettier/prettier/pull/17389", "issue_id": 17389, "merged_at": "2025-04-22T18:30:55Z", "omission_probability": 0.1, "pr_number": 17389, "repo": "prettier/prettier", "title": "Remove `stdin` mock", "total_changes...
159
diff --git a/tests/integration/cli-worker.js b/tests/integration/cli-worker.js index 217e136e5680..5a143a2becc3 100644 --- a/tests/integration/cli-worker.js +++ b/tests/integration/cli-worker.js @@ -1,4 +1,3 @@ -import fs from "node:fs"; import path from "node:path"; import readline from "node:readline"; import url ...
diff --git a/tests/integration/cli-worker.js b/tests/integration/cli-worker.js index 217e136e5680..5a143a2becc3 100644 --- a/tests/integration/cli-worker.js +++ b/tests/integration/cli-worker.js @@ -1,4 +1,3 @@ import path from "node:path"; import readline from "node:readline"; import url from "node:url"; @@ -21,22 ...
[ "-import fs from \"node:fs\";", "- See:", "- );" ]
[ 5, 16, 27 ]
{ "additions": 0, "author": "fisker", "deletions": 17, "html_url": "https://github.com/prettier/prettier/pull/17391", "issue_id": 17391, "merged_at": "2025-04-22T18:25:01Z", "omission_probability": 0.1, "pr_number": 17391, "repo": "prettier/prettier", "title": "Remove outdated mock", "total_change...
160
diff --git a/jest.config.js b/jest.config.js index c24814188931..873afa7beceb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -55,8 +55,6 @@ if (SKIP_TESTS_WITH_NEW_SYNTAX) { "<rootDir>/tests/integration/__tests__/config-invalid.js", // Fails on Node.js v14 "<rootDir>/tests/dts/unit/run.js", - // ...
diff --git a/jest.config.js b/jest.config.js index c24814188931..873afa7beceb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -55,8 +55,6 @@ if (SKIP_TESTS_WITH_NEW_SYNTAX) { "<rootDir>/tests/integration/__tests__/config-invalid.js", // Fails on Node.js v14 "<rootDir>/tests/dts/unit/run.js", - "<r...
[ "- // Unknown reason, fails on Node.js v14", "+ nodeOptions.length > 0" ]
[ 8, 64 ]
{ "additions": 25, "author": "fisker", "deletions": 7, "html_url": "https://github.com/prettier/prettier/pull/17384", "issue_id": 17384, "merged_at": "2025-04-22T09:17:47Z", "omission_probability": 0.1, "pr_number": 17384, "repo": "prettier/prettier", "title": "Add failed test back", "total_change...
161
diff --git a/package.json b/package.json index f1ed9e1cf3f1..b5e435d6dd68 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.6", + "jest-light-runner": "0.7.8", "jest-snapshot...
diff --git a/package.json b/package.json index f1ed9e1cf3f1..b5e435d6dd68 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.6", + "jest-light-runner": "0.7.8", "jest-snapshot...
[ "+ resolution: \"jest-light-runner@npm:0.7.8\"", "- checksum: 10/949f0f18ae762ba8025091bd96ac1e3b0e84e2eb406ac1233f46293bd9dbdd9e0452a2b1f4270958236233f854ff16fe0b788e7a6b6bc88dd0daa5ce2cc28ede" ]
[ 26, 34 ]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17385", "issue_id": 17385, "merged_at": "2025-04-21T14:11:42Z", "omission_probability": 0.1, "pr_number": 17385, "repo": "prettier/prettier", "title": "chore(deps): update dependency j...
162
diff --git a/package.json b/package.json index fdd7a43f295d..f1ed9e1cf3f1 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.5", + "jest-light-runner": "0.7.6", "jest-snapshot...
diff --git a/package.json b/package.json index fdd7a43f295d..f1ed9e1cf3f1 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.5", + "jest-light-runner": "0.7.6", "jest-snapshot...
[ "-\"jest-light-runner@npm:0.7.5\":", "- checksum: 10/6d0ab4a8594672bf238a6b82bca03147f90cba8e2bd8ccaa39cdafa7157ca1e64d606a72cfb5e840599750bcdd157b62294f8825af064672da355cf746956707" ]
[ 21, 34 ]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17383", "issue_id": 17383, "merged_at": "2025-04-21T08:17:59Z", "omission_probability": 0.1, "pr_number": 17383, "repo": "prettier/prettier", "title": "chore(deps): update dependency j...
163
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 4a12cf2d204a..bf6c995297e3 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -75,9 +75,8 @@ jobs: - os: "ubuntu-latest" node: "16" # Tests on Intel Mac x Node.js 14...
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 4a12cf2d204a..bf6c995297e3 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -75,9 +75,8 @@ jobs: - os: "ubuntu-latest" node: "16" # Tests on Intel Mac x Node.js 14...
[ "- # We are disabling MacOS x Node.js 14 temporary ( https://github.com/prettier/prettier/issues/16964 )", "- runner: \"jest-light-runner\",", "+ \"test\": \"jest\",", "+ yocto-queue: \"npm:^1.1.1\"", "+\"tinypool@npm:0.8.4\":" ]
[ 8, 33, 56, 100, 122 ]
{ "additions": 31, "author": "fisker", "deletions": 13, "html_url": "https://github.com/prettier/prettier/pull/17378", "issue_id": 17378, "merged_at": "2025-04-20T14:23:37Z", "omission_probability": 0.1, "pr_number": 17378, "repo": "prettier/prettier", "title": "Test: Remove `--runInBand`", "total...
164
diff --git a/package.json b/package.json index dac94147d8bc..3b051234a9c3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.5", + "@angular/compiler": "19.2.7", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
diff --git a/package.json b/package.json index dac94147d8bc..3b051234a9c3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.5", + "@angular/compiler": "19.2.7", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
[ "- version: 19.2.5", "+ resolution: \"@angular/compiler@npm:19.2.7\"" ]
[ 22, 26 ]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17379", "issue_id": 17379, "merged_at": "2025-04-18T14:17:28Z", "omission_probability": 0.1, "pr_number": 17379, "repo": "prettier/prettier", "title": "chore(deps): update dependency @...
165
diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 5b144d010fb2..b51a9a67b890 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -66,8 +66,7 @@ jobs: - name: Run Tests (coverage) if: ${{ matrix.ENABLE_CODE_COVERAGE }} - # Use `--r...
diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 5b144d010fb2..b51a9a67b890 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -66,8 +66,7 @@ jobs: - name: Run Tests (coverage) if: ${{ matrix.ENABLE_CODE_COVERAGE }} - # Use `--run...
[ "- resolution: \"jest-light-runner@npm:0.7.2\"" ]
[ 37 ]
{ "additions": 7, "author": "fisker", "deletions": 8, "html_url": "https://github.com/prettier/prettier/pull/17377", "issue_id": 17377, "merged_at": "2025-04-18T07:27:14Z", "omission_probability": 0.1, "pr_number": 17377, "repo": "prettier/prettier", "title": "[V4] Update jest-light-runner to v0.7.4...
166
diff --git a/eslint.config.js b/eslint.config.js index 8a22cc627165..e7711753bd37 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -356,13 +356,6 @@ export default [ }, { files: ["tests/**/*.js"], - rules: { - // TODO: Enable this when we drop support for Node.js v14 - "logical-assignment...
diff --git a/eslint.config.js b/eslint.config.js index 8a22cc627165..e7711753bd37 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -356,13 +356,6 @@ export default [ }, { files: ["tests/**/*.js"], - rules: { - // TODO: Enable this when we drop support for Node.js v14 - "logical-assignment...
[ "- \"unicorn/prefer-array-flat-map\": \"off\",", "- hasOwn(options.mockWriteFileErrors, filename)", "+ \"\\r\"," ]
[ 12, 105, 121 ]
{ "additions": 10, "author": "fisker", "deletions": 26, "html_url": "https://github.com/prettier/prettier/pull/17369", "issue_id": 17369, "merged_at": "2025-04-18T06:12:42Z", "omission_probability": 0.1, "pr_number": 17369, "repo": "prettier/prettier", "title": "[V4] Update ESLint config", "total_...
167
diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index b51a9a67b890..5b144d010fb2 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -66,7 +66,8 @@ jobs: - name: Run Tests (coverage) if: ${{ matrix.ENABLE_CODE_COVERAGE }} - run: yarn ...
diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index b51a9a67b890..5b144d010fb2 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -66,7 +66,8 @@ jobs: - name: Run Tests (coverage) if: ${{ matrix.ENABLE_CODE_COVERAGE }} + # Use `--run...
[ "- run: yarn c8 yarn test", "- resolution: \"jest-light-runner@npm:0.7.1\"" ]
[ 8, 37 ]
{ "additions": 8, "author": "fisker", "deletions": 7, "html_url": "https://github.com/prettier/prettier/pull/17375", "issue_id": 17375, "merged_at": "2025-04-17T18:54:08Z", "omission_probability": 0.1, "pr_number": 17375, "repo": "prettier/prettier", "title": "[V4] Test: Fix coverage collect", "to...
168
diff --git a/package.json b/package.json index 49fc90923889..ddb9cfff4833 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.0", + "jest-light-runner": "0.7.1", "jest-snapshot...
diff --git a/package.json b/package.json index 49fc90923889..ddb9cfff4833 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "globals": "16.0.0", "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", - "jest-light-runner": "0.7.0", + "jest-light-runner": "0.7.1", "jest-snapshot...
[ "+ env: {" ]
[ 29 ]
{ "additions": 12, "author": "fisker", "deletions": 13, "html_url": "https://github.com/prettier/prettier/pull/17372", "issue_id": 17372, "merged_at": "2025-04-17T10:34:42Z", "omission_probability": 0.1, "pr_number": 17372, "repo": "prettier/prettier", "title": "[V4] Update `jest-light-runner` to v0...
169
diff --git a/bin/prettier.cjs b/bin/prettier.cjs index 78532120ec86..474e748630fc 100755 --- a/bin/prettier.cjs +++ b/bin/prettier.cjs @@ -14,11 +14,12 @@ var packageJson = require("../package.json"); pleaseUpgradeNode(packageJson); var dynamicImport = new Function("module", "return import(module)"); -if (process.e...
diff --git a/bin/prettier.cjs b/bin/prettier.cjs index 78532120ec86..474e748630fc 100755 --- a/bin/prettier.cjs +++ b/bin/prettier.cjs @@ -14,11 +14,12 @@ var packageJson = require("../package.json"); pleaseUpgradeNode(packageJson); var dynamicImport = new Function("module", "return import(module)"); -if (process.env...
[ "+if (process.env.PRETTIER_EXPERIMENTAL_CLI) {" ]
[ 10 ]
{ "additions": 20, "author": "fisker", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17368", "issue_id": 17368, "merged_at": "2025-04-17T09:12:45Z", "omission_probability": 0.1, "pr_number": 17368, "repo": "prettier/prettier", "title": "[V4] Use legacy CLI by default during ...
170
diff --git a/package.json b/package.json index 8c4fbcf9fefd..dac94147d8bc 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "remark-math": "3.0.1", "remark-parse": "8.0.3", "sdbm": "2.0.0", - "smol-toml": "1.3.1", + "smol-toml": "1.3.3", "strip-ansi": "7.1.0", "to-fast-proper...
diff --git a/package.json b/package.json index 8c4fbcf9fefd..dac94147d8bc 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "remark-math": "3.0.1", "remark-parse": "8.0.3", "sdbm": "2.0.0", - "smol-toml": "1.3.1", + "smol-toml": "1.3.3", "strip-ansi": "7.1.0", "to-fast-proper...
[]
[]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17370", "issue_id": 17370, "merged_at": "2025-04-17T07:05:43Z", "omission_probability": 0.1, "pr_number": 17370, "repo": "prettier/prettier", "title": "chore(deps): update dependency s...
171
diff --git a/jest.config.js b/jest.config.js index aaa654d68f0d..6adf230173f5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -44,7 +44,7 @@ const config = { "<rootDir>/tests/config/format-test-setup.js", "<rootDir>/tests/integration/integration-test-setup.js", ], - runner: "jest-light-runner", + run...
diff --git a/jest.config.js b/jest.config.js index aaa654d68f0d..6adf230173f5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -44,7 +44,7 @@ const config = { "<rootDir>/tests/config/format-test-setup.js", "<rootDir>/tests/integration/integration-test-setup.js", ], - runner: "jest-light-runner", + run...
[ "+ \"test\": \"cross-env PRETTIER_LEGACY_CLI=1 jest\",", "- NO_COLOR: \"1\",", "+ resolution: \"jest-light-runner@npm:0.7.0\"", "- tinypool: \"npm:^0.8.1\"", "+\"tinypool@npm:0.8.4\":" ]
[ 31, 62, 95, 105, 137 ]
{ "additions": 22, "author": "fisker", "deletions": 17, "html_url": "https://github.com/prettier/prettier/pull/17131", "issue_id": 17131, "merged_at": "2025-04-17T05:57:24Z", "omission_probability": 0.1, "pr_number": 17131, "repo": "prettier/prettier", "title": "[V4] Remove `--runInBand`", "total_...
172
diff --git a/scripts/build/shims/string-replace-all.js b/scripts/build/shims/string-replace-all.js deleted file mode 100644 index d6a2bc55d2ad..000000000000 --- a/scripts/build/shims/string-replace-all.js +++ /dev/null @@ -1,19 +0,0 @@ -const stringReplaceAll = (isOptionalObject, original, pattern, replacement) => { - ...
diff --git a/scripts/build/shims/string-replace-all.js b/scripts/build/shims/string-replace-all.js index d6a2bc55d2ad..000000000000 --- a/scripts/build/shims/string-replace-all.js @@ -1,19 +0,0 @@ - return; - if (original.replaceAll) { - return original.replaceAll(pattern, replacement); - if (pattern.global) { ...
[ "-const stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {", "- if (isOptionalObject && (original === undefined || original === null)) {", "- // Simple detection to check if pattern is a `RegExp`", "-import transformObjectHasOwnCall from \"./transform-object-has-own.js\";", "-`Obje...
[ 6, 7, 15, 32, 56, 81, 82, 88, 92, 101, 112, 115 ]
{ "additions": 0, "author": "fisker", "deletions": 99, "html_url": "https://github.com/prettier/prettier/pull/17355", "issue_id": 17355, "merged_at": "2025-04-16T05:40:17Z", "omission_probability": 0.1, "pr_number": 17355, "repo": "prettier/prettier", "title": "[V4] Build: remove transforming `Objec...
173
diff --git a/jest.config.js b/jest.config.js index acce11cf91e4..4376f74e1c5b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -40,9 +40,15 @@ if (isProduction) { ); } -if (SKIP_TESTS_WITH_NEW_SYNTAX) { +if (SKIP_TESTS_WITH_NEW_SYNTAX || process.versions.node.startsWith("16.")) { + // Uses import attributes ...
diff --git a/jest.config.js b/jest.config.js index acce11cf91e4..4376f74e1c5b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -40,9 +40,15 @@ if (isProduction) { ); +if (SKIP_TESTS_WITH_NEW_SYNTAX || process.versions.node.startsWith("16.")) { + // Uses import attributes testPathIgnorePatterns.push( "<ro...
[ "-if (SKIP_TESTS_WITH_NEW_SYNTAX) {", "-module.exports = require(\"../../package.json\").version;" ]
[ 8, 102 ]
{ "additions": 17, "author": "fisker", "deletions": 17, "html_url": "https://github.com/prettier/prettier/pull/17347", "issue_id": 17347, "merged_at": "2025-04-16T05:39:48Z", "omission_probability": 0.1, "pr_number": 17347, "repo": "prettier/prettier", "title": "Migrated version.evaluate.cjs to ES M...
174
diff --git a/changelog_unreleased/css/17362.md b/changelog_unreleased/css/17362.md new file mode 100644 index 000000000000..d604c822a859 --- /dev/null +++ b/changelog_unreleased/css/17362.md @@ -0,0 +1,21 @@ +#### Support `@utility` directive for Tailwind (#17362 by @sosukesuzuki) + +This changes supports `@utility` di...
diff --git a/changelog_unreleased/css/17362.md b/changelog_unreleased/css/17362.md index 000000000000..d604c822a859 +++ b/changelog_unreleased/css/17362.md @@ -0,0 +1,21 @@ +#### Support `@utility` directive for Tailwind (#17362 by @sosukesuzuki) +This changes supports `@utility` directive for Tailwind CSS V4. +<!-- pr...
[]
[]
{ "additions": 181, "author": "sosukesuzuki", "deletions": 0, "html_url": "https://github.com/prettier/prettier/pull/17362", "issue_id": 17362, "merged_at": "2025-04-16T02:55:21Z", "omission_probability": 0.1, "pr_number": 17362, "repo": "prettier/prettier", "title": "Support `@utility` directive fo...
175
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 4a12cf2d204a..146b2d17b181 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -58,7 +58,7 @@ jobs: # Latest even version - "22" # Minimal version for production - ...
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 4a12cf2d204a..146b2d17b181 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -58,7 +58,7 @@ jobs: # Latest even version - "22" # Minimal version for production + ...
[ "- - \"14\"", "- node: \"16\"", "- # node: \"14\"", "- env:", "-if (SKIP_TESTS_WITH_NEW_SYNTAX) {", "- );", "- target: [...(buildOptions.target ?? [\"node14\"])],", "- ...packageJson.resolutions,", "- \"@jest/source-map\": \"30.0.0-alpha.2\",",...
[ 8, 20, 24, 55, 96, 105, 119, 168, 178, 191, 193, 201 ]
{ "additions": 7, "author": "fisker", "deletions": 123, "html_url": "https://github.com/prettier/prettier/pull/17354", "issue_id": 17354, "merged_at": "2025-04-15T05:36:29Z", "omission_probability": 0.1, "pr_number": 17354, "repo": "prettier/prettier", "title": "[V4] Bump minimal required Node.js ve...
176
diff --git a/package.json b/package.json index fbb39cc10797..81827f333fac 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "@glimmer/syntax": "0.94.9", "@prettier/cli": "0.7.1", "@prettier/parse-srcset": "3.1.0", - "@typescript-eslint/typescript-estree": "8.29.0", - "@typescript-eslin...
diff --git a/package.json b/package.json index fbb39cc10797..81827f333fac 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "@glimmer/syntax": "0.94.9", "@prettier/cli": "0.7.1", "@prettier/parse-srcset": "3.1.0", - "@typescript-eslint/typescript-estree": "8.29.0", - "@typescript-eslin...
[ "+ debug: \"npm:^4.3.4\"", "+ checksum: 10/ecae69888a06126d57f3ac2db9935199b708406e8cd84e0918dd8302f31771145d62b52bf3c454be43c5aa4f93685d3f8c15b118d0de1c0323e02113c127aa66", "- resolution: \"@typescript-eslint/type-utils@npm:8.29.0\"", "- checksum: 10/d65b9f2f6d87a3744788b09d9112c4a0298f1215138d8677240a...
[ 75, 89, 95, 117, 153, 193 ]
{ "additions": 66, "author": "renovate[bot]", "deletions": 48, "html_url": "https://github.com/prettier/prettier/pull/17356", "issue_id": 17356, "merged_at": "2025-04-15T06:08:29Z", "omission_probability": 0.1, "pr_number": 17356, "repo": "prettier/prettier", "title": "chore(deps): update typescript...
177
diff --git a/changelog_unreleased/api/17331.md b/changelog_unreleased/api/17331.md new file mode 100644 index 000000000000..1c222e246f11 --- /dev/null +++ b/changelog_unreleased/api/17331.md @@ -0,0 +1,17 @@ +#### Add `isSupported` function support for `languages` API (#17331 by @JounQin) + +Previously, `languages` API...
diff --git a/changelog_unreleased/api/17331.md b/changelog_unreleased/api/17331.md index 000000000000..1c222e246f11 +++ b/changelog_unreleased/api/17331.md @@ -0,0 +1,17 @@ +#### Add `isSupported` function support for `languages` API (#17331 by @JounQin) +Previously, `languages` API for custom plugin only supported to ...
[ "+If no `isSupported` provided, it just behaviors the same way as before.", "+ isFileIgnored = isIgnored(absoluteFilepath);", "- );", "+ * @param {string | undefined} [languageName]", "+ */", "+\"content from file", "+exports[`isSupported (stdout) 3`] = `", "-exports[`stdin with unknown path ...
[ 12, 81, 92, 146, 182, 222, 226, 237, 282, 300, 333 ]
{ "additions": 163, "author": "JounQin", "deletions": 16, "html_url": "https://github.com/prettier/prettier/pull/17331", "issue_id": 17331, "merged_at": "2025-04-14T01:15:43Z", "omission_probability": 0.1, "pr_number": 17331, "repo": "prettier/prettier", "title": "Add `isSupported` function support ...
178
diff --git a/src/cli/directory-ignorer.js b/src/cli/directory-ignorer.js new file mode 100644 index 000000000000..89ce3a63e3d7 --- /dev/null +++ b/src/cli/directory-ignorer.js @@ -0,0 +1,42 @@ +import path from "node:path"; + +// Ignores files in version control systems directories and `node_modules` +const alwaysIgnor...
diff --git a/src/cli/directory-ignorer.js b/src/cli/directory-ignorer.js new file mode 100644 index 000000000000..89ce3a63e3d7 --- /dev/null +++ b/src/cli/directory-ignorer.js @@ -0,0 +1,42 @@ +import path from "node:path"; +// Ignores files in version control systems directories and `node_modules` +const alwaysIgnored...
[ "+ #directories;", "+ this.#directories = new Set(directories);" ]
[ 14, 23 ]
{ "additions": 53, "author": "fisker", "deletions": 21, "html_url": "https://github.com/prettier/prettier/pull/17345", "issue_id": 17345, "merged_at": "2025-04-14T00:15:16Z", "omission_probability": 0.1, "pr_number": 17345, "repo": "prettier/prettier", "title": "Minor improvement to `expandPatterns`...
179
diff --git a/src/utils/infer-parser.js b/src/utils/infer-parser.js index 0b1b4a0131c6..f8d42af10bf4 100644 --- a/src/utils/infer-parser.js +++ b/src/utils/infer-parser.js @@ -1,4 +1,5 @@ import getInterpreter from "./get-interpreter.js"; +import isNonEmptyArray from "./is-non-empty-array.js"; /** @import {Options} ...
diff --git a/src/utils/infer-parser.js b/src/utils/infer-parser.js index 0b1b4a0131c6..f8d42af10bf4 100644 --- a/src/utils/infer-parser.js +++ b/src/utils/infer-parser.js @@ -1,4 +1,5 @@ import getInterpreter from "./get-interpreter.js"; +import isNonEmptyArray from "./is-non-empty-array.js"; /** @import {Options} fr...
[]
[]
{ "additions": 12, "author": "fisker", "deletions": 2, "html_url": "https://github.com/prettier/prettier/pull/17328", "issue_id": 17328, "merged_at": "2025-04-14T00:13:32Z", "omission_probability": 0.1, "pr_number": 17328, "repo": "prettier/prettier", "title": "Minor improvement to `inferParser`", ...
180
diff --git a/changelog_unreleased/api/17339.md b/changelog_unreleased/api/17339.md new file mode 100644 index 000000000000..529ee232f70d --- /dev/null +++ b/changelog_unreleased/api/17339.md @@ -0,0 +1,3 @@ +#### Add `mjml` parser (#17339 by @fisker) + +We already support [MJML](https://mjml.io/) in previous version wi...
diff --git a/changelog_unreleased/api/17339.md b/changelog_unreleased/api/17339.md index 000000000000..529ee232f70d --- /dev/null +++ b/changelog_unreleased/api/17339.md @@ -0,0 +1,3 @@ +#### Add `mjml` parser (#17339 by @fisker) + diff --git a/changelog_unreleased/mjml/.gitkeep b/changelog_unreleased/mjml/.gitkeep ind...
[ "+We already support [MJML](https://mjml.io/) in previous version with `html` parser, in order to distinguish MJML-specific a new `mjml` parser added.", "+ name: \"MJML\",", "+ // https://github.com/mjmlio/vscode-mjml/blob/477f030d400fe838d29495f4a432fba57f2198b7/package.json#L226-L238", "+ parsers: ...
[ 8, 96, 100, 152, 208, 297, 366, 425, 427 ]
{ "additions": 87, "author": "fisker", "deletions": 25, "html_url": "https://github.com/prettier/prettier/pull/17339", "issue_id": 17339, "merged_at": "2025-04-14T00:12:53Z", "omission_probability": 0.1, "pr_number": 17339, "repo": "prettier/prettier", "title": "Add `mjml` parser", "total_changes"...
181
diff --git a/src/config/prettier-config/loaders.js b/src/config/prettier-config/loaders.js index 10c15fb62521..22f165bda0dd 100644 --- a/src/config/prettier-config/loaders.js +++ b/src/config/prettier-config/loaders.js @@ -20,7 +20,7 @@ async function importModuleDefault(file) { return module.default; } -async fu...
diff --git a/src/config/prettier-config/loaders.js b/src/config/prettier-config/loaders.js index 10c15fb62521..22f165bda0dd 100644 --- a/src/config/prettier-config/loaders.js +++ b/src/config/prettier-config/loaders.js @@ -20,7 +20,7 @@ async function importModuleDefault(file) { return module.default; -async functio...
[ "- return await importModuleDefault(file);", "+ ? async function loadConfigFromBunPackageJson(file) {", "+ : async function loadConfigFromPackageJson(file) {", "+ return parseToml(content);", "- error.message = `JSON5 Error in ${file}:\\n${error.message}`;" ]
[ 19, 38, 42, 56, 88 ]
{ "additions": 36, "author": "fisker", "deletions": 29, "html_url": "https://github.com/prettier/prettier/pull/17343", "issue_id": 17343, "merged_at": "2025-04-14T00:11:11Z", "omission_probability": 0.1, "pr_number": 17343, "repo": "prettier/prettier", "title": "Minor improvement to config loader", ...
182
diff --git a/changelog_unreleased/angular/17280.md b/changelog_unreleased/angular/17280.md new file mode 100644 index 000000000000..567e92c8deb5 --- /dev/null +++ b/changelog_unreleased/angular/17280.md @@ -0,0 +1,13 @@ +#### Remove extra colon after `track` in angular `@for` control-flow (#17280 by @claudio-herger) + ...
diff --git a/changelog_unreleased/angular/17280.md b/changelog_unreleased/angular/17280.md new file mode 100644 index 000000000000..567e92c8deb5 --- /dev/null +++ b/changelog_unreleased/angular/17280.md @@ -0,0 +1,13 @@ +#### Remove extra colon after `track` in angular `@for` control-flow (#17280 by @claudio-herger) +<...
[ "+ (index === 2 &&", "+ ></div>" ]
[ 33, 80 ]
{ "additions": 45, "author": "claudio-herger", "deletions": 1, "html_url": "https://github.com/prettier/prettier/pull/17280", "issue_id": 17280, "merged_at": "2025-04-14T00:10:04Z", "omission_probability": 0.1, "pr_number": 17280, "repo": "prettier/prettier", "title": "Remove extra colon after `trac...
183
diff --git a/src/language-graphql/pragma.js b/src/language-graphql/pragma.js index d00614299f5f..449d93781925 100644 --- a/src/language-graphql/pragma.js +++ b/src/language-graphql/pragma.js @@ -1,9 +1,14 @@ +import { + FORMAT_PRAGMA_TO_INSERT, + GRAPHQL_HAS_PRAGMA_REGEXP, +} from "../utils/pragma/pragma.evaluate.js"...
diff --git a/src/language-graphql/pragma.js b/src/language-graphql/pragma.js index d00614299f5f..449d93781925 100644 --- a/src/language-graphql/pragma.js +++ b/src/language-graphql/pragma.js @@ -1,9 +1,14 @@ - return /^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(text); + return GRAPHQL_HAS_PRAGMA_REGEXP.test(t...
[ "- return /^\\s*<!--\\s*@(?:format|prettier)\\s*-->/u.test(text);", "- return /^\\s*@(?:prettier|format)\\s*$/u.test(text);", "+ String.raw`^\\s*#[^\\S\\n]*@(?:${FORMAT_PRAGMAS.join(\"|\")})\\s*?(?:\\n|$)`," ]
[ 32, 87, 129 ]
{ "additions": 76, "author": "fisker", "deletions": 9, "html_url": "https://github.com/prettier/prettier/pull/17346", "issue_id": 17346, "merged_at": "2025-04-12T18:44:26Z", "omission_probability": 0.1, "pr_number": 17346, "repo": "prettier/prettier", "title": "Put pragma related code together", "...
184
diff --git a/website/package.json b/website/package.json index 76ed524cf894..a5777e2e141d 100644 --- a/website/package.json +++ b/website/package.json @@ -35,7 +35,7 @@ "@vitejs/plugin-react": "4.3.4", "concurrently": "9.1.2", "js-yaml": "4.1.0", - "vite": "6.2.5" + "vite": "6.2.6" }, "browse...
diff --git a/website/package.json b/website/package.json index 76ed524cf894..a5777e2e141d 100644 --- a/website/package.json +++ b/website/package.json @@ -35,7 +35,7 @@ "@vitejs/plugin-react": "4.3.4", "concurrently": "9.1.2", "js-yaml": "4.1.0", - "vite": "6.2.5" + "vite": "6.2.6" }, "browse...
[]
[]
{ "additions": 6, "author": "renovate[bot]", "deletions": 6, "html_url": "https://github.com/prettier/prettier/pull/17342", "issue_id": 17342, "merged_at": "2025-04-11T15:55:46Z", "omission_probability": 0.1, "pr_number": 17342, "repo": "prettier/prettier", "title": "chore(deps): update dependency v...
185
diff --git a/cspell.json b/cspell.json index 0eb0a1b52219..65802f9be8d2 100644 --- a/cspell.json +++ b/cspell.json @@ -240,6 +240,7 @@ "refmt", "reviewdog", "rhengles", + "rspack", "Rubocop", "ruleset", "rulesets", diff --git a/website/docusaurus.config.js b/...
diff --git a/cspell.json b/cspell.json index 0eb0a1b52219..65802f9be8d2 100644 --- a/cspell.json +++ b/cspell.json @@ -240,6 +240,7 @@ "refmt", "reviewdog", "rhengles", + "rspack", "Rubocop", "ruleset", "rulesets", diff --git a/website/docusaurus.config.js b/...
[]
[]
{ "additions": 13, "author": "Lehoczky", "deletions": 1, "html_url": "https://github.com/prettier/prettier/pull/17308", "issue_id": 17308, "merged_at": "2025-04-07T07:08:51Z", "omission_probability": 0.1, "pr_number": 17308, "repo": "prettier/prettier", "title": "Docs: fix emoji rendering on \"Ratio...
186
diff --git a/package.json b/package.json index f69847bf9155..6e1504ed2f00 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "minimist": "1.2.8", "n-readlines": "1.0.1", "outdent": "0.8.0", - "parse-json": "8.2.0", + "parse-json": "8.3.0", "picocolors": "1.1.1", "please-upgrad...
diff --git a/package.json b/package.json index f69847bf9155..6e1504ed2f00 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "minimist": "1.2.8", "n-readlines": "1.0.1", "outdent": "0.8.0", - "parse-json": "8.2.0", + "parse-json": "8.3.0", "picocolors": "1.1.1", "please-upgrad...
[ "- version: 8.2.0", "+\"parse-json@npm:8.3.0, parse-json@npm:^8.0.0\":", "- parse-json: \"npm:8.2.0\"", "+\"type-fest@npm:^4.35.0, type-fest@npm:^4.39.1, type-fest@npm:^4.6.0\":" ]
[ 31, 33, 51, 64 ]
{ "additions": 13, "author": "renovate[bot]", "deletions": 13, "html_url": "https://github.com/prettier/prettier/pull/17335", "issue_id": 17335, "merged_at": "2025-04-09T13:51:25Z", "omission_probability": 0.1, "pr_number": 17335, "repo": "prettier/prettier", "title": "chore(deps): update dependency...
187
diff --git a/src/cli/file-info.js b/src/cli/file-info.js index 91d8381f186d..a84bf7ea02c3 100644 --- a/src/cli/file-info.js +++ b/src/cli/file-info.js @@ -18,7 +18,9 @@ async function logFileInfoOrDie(context) { resolveConfig: config !== false, }); - printToScreen(await format(stringify(fileInfo), { parser: ...
diff --git a/src/cli/file-info.js b/src/cli/file-info.js index 91d8381f186d..a84bf7ea02c3 100644 --- a/src/cli/file-info.js +++ b/src/cli/file-info.js @@ -18,7 +18,9 @@ async function logFileInfoOrDie(context) { resolveConfig: config !== false, }); - printToScreen(await format(stringify(fileInfo), { parser: "j...
[ "+exports[`extracts file-info for a file in not_node_modules (stdout) 1`] = `\"{ \"ignored\": false, \"inferredParser\": \"babel\" }\"`;", "-exports[`non-exists ignore path (stdout) 1`] = `", "-}" ]
[ 42, 154, 185 ]
{ "additions": 21, "author": "fisker", "deletions": 60, "html_url": "https://github.com/prettier/prettier/pull/17332", "issue_id": 17332, "merged_at": "2025-04-09T07:23:50Z", "omission_probability": 0.1, "pr_number": 17332, "repo": "prettier/prettier", "title": "Remove extra lines in `--file-info` a...
188
diff --git a/eslint.config.js b/eslint.config.js index 42d13a33b4cd..8a22cc627165 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -29,8 +29,8 @@ coverage/ dist*/ **/node_modules/** website/build/ -website/static/playground.js website/static/lib/ +website/static/playground/ website/.docusaurus scripts/benc...
diff --git a/eslint.config.js b/eslint.config.js index 42d13a33b4cd..8a22cc627165 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -29,8 +29,8 @@ coverage/ dist*/ **/node_modules/** website/build/ -website/static/playground.js website/static/lib/ +website/static/playground/ website/.docusaurus scripts/benc...
[ "+ // `embed` function order is `textToDoc, print, path, options`", "+ output: null,", "+ })),", "- print,", "+ const parametersDoc = printComponentParameters(path, options, print);", "+ ? printEnumMembers(path, options, print)", "- return printEnumBody(path, pri...
[ 48, 111, 113, 184, 264, 324, 366, 450, 494, 549, 561, 587 ]
{ "additions": 129, "author": "fisker", "deletions": 52, "html_url": "https://github.com/prettier/prettier/pull/10402", "issue_id": 10402, "merged_at": "2025-04-09T03:07:46Z", "omission_probability": 0.1, "pr_number": 10402, "repo": "prettier/prettier", "title": "Consistent `print*` function parame...
189
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 5df852db8372..4a12cf2d204a 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -152,7 +152,7 @@ jobs: run: node -v | grep "v0.10.48" || exit 1 - name: Run CLI on Node.js v0.10.48 - ...
diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 5df852db8372..4a12cf2d204a 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -152,7 +152,7 @@ jobs: run: node -v | grep "v0.10.48" || exit 1 - name: Run CLI on Node.js v0.10.48 - ...
[ "- ? path.join(PROJECT_ROOT, \"dist\")", "+import { PROJECT_ROOT, writeFile } from \"../utils/index.js\";", "+ `${code}\\n`,", "+ results,", "-export default files;", "+ distDirectory: path.join(DIST_DIR, \"prettier\"),", "-import * as prettierPluginTypeScript from \"../../../../dist/plugins/t...
[ 27, 172, 206, 272, 307, 310, 400, 401, 408, 409, 420 ]
{ "additions": 82, "author": "fisker", "deletions": 54, "html_url": "https://github.com/prettier/prettier/pull/15825", "issue_id": 15825, "merged_at": "2025-04-09T00:38:46Z", "omission_probability": 0.1, "pr_number": 15825, "repo": "prettier/prettier", "title": "Bundle package into `dist/prettier/`"...
190
diff --git a/package.json b/package.json index 1ccd5af71126..284c9e35acde 100644 --- a/package.json +++ b/package.json @@ -132,13 +132,13 @@ "eslint-plugin-unicorn": "58.0.0", "esm-utils": "4.3.0", "globals": "16.0.0", + "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", "jest-light-run...
diff --git a/package.json b/package.json index 1ccd5af71126..284c9e35acde 100644 --- a/package.json +++ b/package.json @@ -132,13 +132,13 @@ "eslint-plugin-unicorn": "58.0.0", "esm-utils": "4.3.0", "globals": "16.0.0", + "index-to-position": "1.1.0", "jest": "30.0.0-alpha.7", "jest-light-run...
[ "+ (index) => indexToPosition(content, index, { oneBased: true }).line,", "- const lines = new LinesAndColumns(text);" ]
[ 39, 58 ]
{ "additions": 13, "author": "fisker", "deletions": 25, "html_url": "https://github.com/prettier/prettier/pull/17325", "issue_id": 17325, "merged_at": "2025-04-09T00:12:22Z", "omission_probability": 0.1, "pr_number": 17325, "repo": "prettier/prettier", "title": "Replace `lines-and-columns` with `ind...
191
diff --git a/package.json b/package.json index b17fa88acaca..1ccd5af71126 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "fast-glob": "3.3.3", "fast-json-stable-stringify": "2.1.0", "file-entry-cache": "10.0.8", - "find-cache-dir": "5.0.0", + "find-cache-directory": "6.0.0", "f...
diff --git a/package.json b/package.json index b17fa88acaca..1ccd5af71126 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "fast-glob": "3.3.3", "fast-json-stable-stringify": "2.1.0", "file-entry-cache": "10.0.8", - "find-cache-dir": "5.0.0", + "find-cache-directory": "6.0.0", "f...
[ "- findCacheDir({ name: \"prettier\", create: true }) || os.tmpdir();", "- locate-path: \"npm:^7.1.0\"", "-\"path-exists@npm:^5.0.0\":", "- resolution: \"path-exists@npm:5.0.0\"" ]
[ 31, 67, 128, 130 ]
{ "additions": 15, "author": "fisker", "deletions": 66, "html_url": "https://github.com/prettier/prettier/pull/17327", "issue_id": 17327, "merged_at": "2025-04-08T23:41:12Z", "omission_probability": 0.1, "pr_number": 17327, "repo": "prettier/prettier", "title": "Update `find-cache-directory` to v6",...
192
diff --git a/scripts/build/parse-arguments.js b/scripts/build/parse-arguments.js index a515049450ee..5c84e16acf8b 100644 --- a/scripts/build/parse-arguments.js +++ b/scripts/build/parse-arguments.js @@ -15,7 +15,6 @@ function parseArguments() { "save-as": { type: "string" }, report: { type: "string", mult...
diff --git a/scripts/build/parse-arguments.js b/scripts/build/parse-arguments.js index a515049450ee..5c84e16acf8b 100644 --- a/scripts/build/parse-arguments.js +++ b/scripts/build/parse-arguments.js @@ -15,7 +15,6 @@ function parseArguments() { "save-as": { type: "string" }, report: { type: "string", mult...
[]
[]
{ "additions": 11, "author": "fisker", "deletions": 7, "html_url": "https://github.com/prettier/prettier/pull/17324", "issue_id": 17324, "merged_at": "2025-04-08T02:11:38Z", "omission_probability": 0.1, "pr_number": 17324, "repo": "prettier/prettier", "title": "Use `util.parseArgs` in `changelog-for...
193
diff --git a/scripts/build/esbuild-plugins/add-default-export.js b/scripts/build/esbuild-plugins/add-default-export.js index 2b6d80bfd6e2..a2e091875cf3 100644 --- a/scripts/build/esbuild-plugins/add-default-export.js +++ b/scripts/build/esbuild-plugins/add-default-export.js @@ -10,31 +10,32 @@ export default function e...
diff --git a/scripts/build/esbuild-plugins/add-default-export.js b/scripts/build/esbuild-plugins/add-default-export.js index 2b6d80bfd6e2..a2e091875cf3 100644 --- a/scripts/build/esbuild-plugins/add-default-export.js +++ b/scripts/build/esbuild-plugins/add-default-export.js @@ -10,31 +10,32 @@ export default function e...
[ "- build.onLoad({ filter: /./, namespace: PLUGIN_NAMESPACE }, () => {" ]
[ 29 ]
{ "additions": 14, "author": "fisker", "deletions": 13, "html_url": "https://github.com/prettier/prettier/pull/17322", "issue_id": 17322, "merged_at": "2025-04-08T01:10:10Z", "omission_probability": 0.1, "pr_number": 17322, "repo": "prettier/prettier", "title": "Minor tweak to ESBuild `addDefaultExp...
194
diff --git a/package.json b/package.json index caf8fbc2aeff..39aab4bf94e7 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "eslint-plugin-n": "17.17.0", "eslint-plugin-regexp": "2.7.0", "eslint-plugin-simple-import-sort": "12.1.1", - "eslint-plugin-unicorn": "57.0.0", + "eslint-plug...
diff --git a/package.json b/package.json index caf8fbc2aeff..39aab4bf94e7 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "eslint-plugin-n": "17.17.0", "eslint-plugin-regexp": "2.7.0", "eslint-plugin-simple-import-sort": "12.1.1", - "eslint-plugin-unicorn": "57.0.0", "esm-utils":...
[ "+ \"eslint-plugin-unicorn\": \"58.0.0\",", "-\"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0, @eslint-community/eslint-utils@npm:^4.4.1, @eslint-community/eslint-utils@npm:^4.5.0\":", "-\"browserslist@npm:4.24.4, browserslist@...
[ 9, 21, 30, 66, 86, 139 ]
{ "additions": 32, "author": "renovate[bot]", "deletions": 31, "html_url": "https://github.com/prettier/prettier/pull/17320", "issue_id": 17320, "merged_at": "2025-04-07T07:28:38Z", "omission_probability": 0.1, "pr_number": 17320, "repo": "prettier/prettier", "title": "chore(deps): update dependency...
195
diff --git a/package.json b/package.json index caf8fbc2aeff..1b985903ff93 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,7 @@ "jest-snapshot-serializer-ansi": "2.2.1", "jest-snapshot-serializer-raw": "2.0.0", "jest-watch-typeahead": "2.2.2", - "knip": "5.44.4", + "knip": "5.47.0", ...
diff --git a/package.json b/package.json index caf8fbc2aeff..1b985903ff93 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,7 @@ "jest-snapshot-serializer-ansi": "2.2.1", "jest-snapshot-serializer-raw": "2.0.0", "jest-watch-typeahead": "2.2.2", - "knip": "5.44.4", + "knip": "5.47.0", ...
[ "- version: 5.44.4", "- checksum: 10/85fbf7e4138681d9d8c66a61fb4117c1c578847113605c9bee1f473ab9098e144feb481d0fd6cb4a603d07d421aff0c93ba7ba2f74dfc221eaf1e183f3327adc", "+ checksum: 10/3ce2f98c39cb81a7ac1a3ae78471b219bbebaa4f470153265fbc8fdd5b40f63e314113934cc72adfb5d7ae2e1549d1bb415e49569d0d8a0abe61f32ab078f...
[ 40, 58, 59 ]
{ "additions": 11, "author": "renovate[bot]", "deletions": 11, "html_url": "https://github.com/prettier/prettier/pull/17319", "issue_id": 17319, "merged_at": "2025-04-07T07:28:10Z", "omission_probability": 0.1, "pr_number": 17319, "repo": "prettier/prettier", "title": "chore(deps): update dependency...
196
diff --git a/package.json b/package.json index 64d80b045a24..02dd0a11140f 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.2", + "@angular/compiler": "19.2.5", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
diff --git a/package.json b/package.json index 64d80b045a24..02dd0a11140f 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "bin" ], "dependencies": { - "@angular/compiler": "19.2.2", + "@angular/compiler": "19.2.5", "@babel/code-frame": "7.26.2", "@babel/parser": "7.27.0", ...
[]
[]
{ "additions": 6, "author": "renovate[bot]", "deletions": 11, "html_url": "https://github.com/prettier/prettier/pull/17315", "issue_id": 17315, "merged_at": "2025-04-07T07:27:27Z", "omission_probability": 0.1, "pr_number": 17315, "repo": "prettier/prettier", "title": "chore(deps): update dependency ...
197
diff --git a/package.json b/package.json index 2436632dd694..b9bd36f98fd3 100644 --- a/package.json +++ b/package.json @@ -57,11 +57,11 @@ "fast-json-stable-stringify": "2.1.0", "file-entry-cache": "10.0.8", "find-cache-dir": "5.0.0", - "flow-parser": "0.259.1", + "flow-parser": "0.266.1", "ge...
diff --git a/package.json b/package.json index 2436632dd694..b9bd36f98fd3 100644 --- a/package.json +++ b/package.json @@ -57,11 +57,11 @@ "fast-json-stable-stringify": "2.1.0", "file-entry-cache": "10.0.8", "find-cache-dir": "5.0.0", - "flow-parser": "0.259.1", + "flow-parser": "0.266.1", "ge...
[ "+ version: 0.266.1", "+ flow-parser: \"npm:0.266.1\"" ]
[ 31, 71 ]
{ "additions": 17, "author": "renovate[bot]", "deletions": 17, "html_url": "https://github.com/prettier/prettier/pull/17313", "issue_id": 17313, "merged_at": "2025-04-07T07:05:24Z", "omission_probability": 0.1, "pr_number": 17313, "repo": "prettier/prettier", "title": "chore(deps): update flow-parse...
198
diff --git a/package.json b/package.json index 2436632dd694..b3b082dd82c5 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "@babel/types": "7.27.0", "@glimmer/syntax": "0.94.9", "@prettier/parse-srcset": "3.1.0", - "@typescript-eslint/typescript-estree": "8.25.0", - "@typescript-eslin...
diff --git a/package.json b/package.json index 2436632dd694..b3b082dd82c5 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "@babel/types": "7.27.0", "@glimmer/syntax": "0.94.9", "@prettier/parse-srcset": "3.1.0", - "@typescript-eslint/typescript-estree": "8.25.0", - "@typescript-eslin...
[ "- resolution: \"@typescript-eslint/eslint-plugin@npm:8.25.0\"", "- \"@typescript-eslint/type-utils\": \"npm:8.25.0\"", "+ checksum: 10/276e6ea97857ef0fd940578d4b8f1677fd68d2bb62603c85d7aa97fcf86c1f66c5da962393254b605c7025f0cda74395904053891088cbe405b899afc1180e9c", "- \"@typescript-eslint/eslint-plug...
[ 34, 41, 132, 178 ]
{ "additions": 52, "author": "renovate[bot]", "deletions": 52, "html_url": "https://github.com/prettier/prettier/pull/17314", "issue_id": 17314, "merged_at": "2025-04-07T07:04:36Z", "omission_probability": 0.1, "pr_number": 17314, "repo": "prettier/prettier", "title": "chore(deps): update typescript...
199
diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.js b/packages/react-reconciler/src/ReactFiberCommitWork.js index 8065432370add..61cc176f72b19 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.js @@ -1042,9 +1042,9 @@ function comm...
diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.js b/packages/react-reconciler/src/ReactFiberCommitWork.js index 8065432370add..61cc176f72b19 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.js @@ -1042,9 +1042,9 @@ function comm...
[ "- name = parent.memoizedProps.unstable_name;", "+ name=\"inner two\">" ]
[ 11, 152 ]
{ "additions": 36, "author": "sebmarkbage", "deletions": 44, "html_url": "https://github.com/facebook/react/pull/33014", "issue_id": 33014, "merged_at": "2025-04-24T20:53:34Z", "omission_probability": 0.1, "pr_number": 33014, "repo": "facebook/react", "title": "Rename Suspense unstable_name to name"...