Skip to content

Rollup of 10 pull requests #137235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
08ee5f5
Do not ICE on default_field_value const with lifetimes
estebank Jan 18, 2025
16abb39
Reword file lock documentation to clarify advisory vs mandatory
joshtriplett Feb 11, 2025
bc59397
Document that locking a file fails on Windows if the file is opened o…
joshtriplett Feb 11, 2025
345c313
fix docs for inherent str constructors
m4rch3n1ng Feb 16, 2025
7af4630
add a failing test
dianne Feb 17, 2025
82678df
bookkeep properly when pointing into macro expansions
dianne Feb 17, 2025
2cdb7fa
Prefer param-env candidates even when alias's trait bound isn't prove…
compiler-errors Feb 14, 2025
b002b5c
Deeply normalize associated type bounds before proving them
compiler-errors Feb 14, 2025
a7a43cd
use `Iterator::zip` instead of enumerating+indexing
yotamofek Feb 5, 2025
4a76615
coalesce match patterns with identical bodies
yotamofek Feb 5, 2025
32b1bff
Update mdbook to 0.4.45
ehuss Feb 17, 2025
2773456
Move error_index_generator to the rustbook workspace
ehuss Feb 17, 2025
123217b
Fix what looks like an inverted message
ehuss Feb 17, 2025
c0b1c6e
librustdoc: more usages of `Joined::joined`
yotamofek Feb 5, 2025
a1daa34
Use `MirPatch` in `EnumSizeOpt`.
nnethercote Feb 18, 2025
e3316ae
Improve `MirPatch` documentation and naming.
nnethercote Feb 18, 2025
627e08c
Remove `BasicBlockData::expand_statements`.
nnethercote Feb 18, 2025
69f5e34
Inline and remove `BasicBlockData::retain_statements`.
nnethercote Feb 18, 2025
04eeda4
Inline and replace `Statement::replace_nop`.
nnethercote Feb 18, 2025
693f703
Make E0599 a structured error
estebank Feb 18, 2025
d0a5bbb
document and test all `LayoutError` variants
Feb 15, 2025
802b7ab
clean up layout error diagnostics
Feb 16, 2025
7a667d2
remove unreachable cases
Feb 15, 2025
1d1ac3d
remove redundant code
Feb 16, 2025
67345f9
remove useless parameter
Feb 16, 2025
2fbc413
cosmetic changes
Feb 16, 2025
35674ef
Clarify that locking on Windows also works for files opened with `.re…
joshtriplett Feb 18, 2025
ec2034d
Reorder "This lock may be advisory or mandatory." earlier in the lock…
joshtriplett Feb 18, 2025
7edd17c
Rollup merge of #135711 - estebank:issue-135649, r=davidtwco
matthiaskrgr Feb 18, 2025
58a622b
Rollup merge of #136599 - yotamofek:pr/rustdoc-more-joined, r=Guillau…
matthiaskrgr Feb 18, 2025
5a942d6
Rollup merge of #136876 - joshtriplett:locking-might-not-be-advisory,…
matthiaskrgr Feb 18, 2025
c8d9041
Rollup merge of #137000 - compiler-errors:deeply-normalize-item-bound…
matthiaskrgr Feb 18, 2025
ac3b179
Rollup merge of #137126 - m4rch3n1ng:fix-inherent-str-docs, r=Amanieu
matthiaskrgr Feb 18, 2025
54db888
Rollup merge of #137161 - dianne:pat-migration-bookkeeping-for-macros…
matthiaskrgr Feb 18, 2025
05dbe6d
Rollup merge of #137191 - ehuss:update-mdbook, r=jieyouxu
matthiaskrgr Feb 18, 2025
10dd016
Rollup merge of #137203 - nnethercote:improve-MIR-modification, r=com…
matthiaskrgr Feb 18, 2025
a66ef2f
Rollup merge of #137206 - estebank:e0599-structured, r=jieyouxu
matthiaskrgr Feb 18, 2025
bafff1b
Rollup merge of #137218 - lukas-code:layout_of_cleanup, r=compiler-er…
matthiaskrgr Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 1 addition & 193 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"

[[package]]
name = "ammonia"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ab99eae5ee58501ab236beb6f20f6ca39be615267b014899c89b2f0bc18a459"
dependencies = [
"html5ever",
"maplit",
"once_cell",
"tendril",
"url",
]

[[package]]
name = "android-tzdata"
version = "0.1.1"
Expand Down Expand Up @@ -513,16 +500,6 @@ dependencies = [
"anstyle",
"clap_lex",
"strsim",
"terminal_size",
]

[[package]]
name = "clap_complete"
version = "4.5.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33a7e468e750fa4b6be660e8b5651ad47372e8fb114030b594c2d75d48c5ffd0"
dependencies = [
"clap",
]

[[package]]
Expand Down Expand Up @@ -1084,18 +1061,6 @@ version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"

[[package]]
name = "elasticlunr-rs"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41e83863a500656dfa214fee6682de9c5b9f03de6860fec531235ed2ae9f6571"
dependencies = [
"regex",
"serde",
"serde_derive",
"serde_json",
]

[[package]]
name = "elsa"
version = "1.11.0"
Expand Down Expand Up @@ -1159,13 +1124,6 @@ dependencies = [
"windows-sys 0.59.0",
]

[[package]]
name = "error_index_generator"
version = "0.0.0"
dependencies = [
"mdbook",
]

[[package]]
name = "expect-test"
version = "1.5.1"
Expand Down Expand Up @@ -1517,22 +1475,6 @@ dependencies = [
"serde",
]

[[package]]
name = "handlebars"
version = "6.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d6b224b95c1e668ac0270325ad563b2eef1469fbbb8959bc7c692c844b813d9"
dependencies = [
"derive_builder",
"log",
"num-order",
"pest",
"pest_derive",
"serde",
"serde_json",
"thiserror 2.0.11",
]

[[package]]
name = "hashbrown"
version = "0.14.5"
Expand Down Expand Up @@ -2189,12 +2131,6 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"

[[package]]
name = "maplit"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"

[[package]]
name = "markup5ever"
version = "0.12.1"
Expand Down Expand Up @@ -2228,34 +2164,6 @@ dependencies = [
"digest",
]

[[package]]
name = "mdbook"
version = "0.4.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe1f98b8d66e537d2f0ba06e7dec4f44001deec539a2d18bfc102d6a86189148"
dependencies = [
"ammonia",
"anyhow",
"chrono",
"clap",
"clap_complete",
"elasticlunr-rs",
"env_logger",
"handlebars",
"log",
"memchr",
"once_cell",
"opener",
"pulldown-cmark 0.10.3",
"regex",
"serde",
"serde_json",
"shlex",
"tempfile",
"toml 0.5.11",
"topological-sort",
]

[[package]]
name = "measureme"
version = "11.0.1"
Expand Down Expand Up @@ -2483,21 +2391,6 @@ dependencies = [
"num-traits",
]

[[package]]
name = "num-modular"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17bb261bf36fa7d83f4c294f834e91256769097b3cb505d44831e0a179ac647f"

[[package]]
name = "num-order"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "537b596b97c40fcf8056d153049eb22f481c17ebce72a513ec9286e4986d1bb6"
dependencies = [
"num-modular",
]

[[package]]
name = "num-rational"
version = "0.4.2"
Expand Down Expand Up @@ -2718,51 +2611,6 @@ dependencies = [
"libc",
]

[[package]]
name = "pest"
version = "2.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b7cafe60d6cf8e62e1b9b2ea516a089c008945bb5a275416789e7db0bc199dc"
dependencies = [
"memchr",
"thiserror 2.0.11",
"ucd-trie",
]

[[package]]
name = "pest_derive"
version = "2.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "816518421cfc6887a0d62bf441b6ffb4536fcc926395a69e1a85852d4363f57e"
dependencies = [
"pest",
"pest_generator",
]

[[package]]
name = "pest_generator"
version = "2.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d1396fd3a870fc7838768d171b4616d5c91f6cc25e377b673d714567d99377b"
dependencies = [
"pest",
"pest_meta",
"proc-macro2",
"quote",
"syn 2.0.96",
]

[[package]]
name = "pest_meta"
version = "2.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1e58089ea25d717bfd31fb534e4f3afcc2cc569c70de3e239778991ea3b7dea"
dependencies = [
"once_cell",
"pest",
"sha2",
]

[[package]]
name = "phf"
version = "0.11.3"
Expand Down Expand Up @@ -2921,18 +2769,6 @@ dependencies = [
"unicase",
]

[[package]]
name = "pulldown-cmark"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76979bea66e7875e7509c4ec5300112b316af87fa7a252ca91c448b32dfe3993"
dependencies = [
"bitflags",
"memchr",
"pulldown-cmark-escape 0.10.1",
"unicase",
]

[[package]]
name = "pulldown-cmark"
version = "0.11.3"
Expand All @@ -2941,16 +2777,10 @@ checksum = "679341d22c78c6c649893cbd6c3278dcbe9fc4faa62fea3a9296ae2b50c14625"
dependencies = [
"bitflags",
"memchr",
"pulldown-cmark-escape 0.11.0",
"pulldown-cmark-escape",
"unicase",
]

[[package]]
name = "pulldown-cmark-escape"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd348ff538bc9caeda7ee8cad2d1d48236a1f443c1fa3913c6a02fe0043b1dd3"

[[package]]
name = "pulldown-cmark-escape"
version = "0.11.0"
Expand Down Expand Up @@ -5310,16 +5140,6 @@ dependencies = [
"winapi-util",
]

[[package]]
name = "terminal_size"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5352447f921fda68cf61b4101566c0bdb5104eff6804d0678e5227580ab6a4e9"
dependencies = [
"rustix",
"windows-sys 0.59.0",
]

[[package]]
name = "termize"
version = "0.1.1"
Expand Down Expand Up @@ -5560,12 +5380,6 @@ dependencies = [
"winnow",
]

[[package]]
name = "topological-sort"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d"

[[package]]
name = "tracing"
version = "0.1.37"
Expand Down Expand Up @@ -5686,12 +5500,6 @@ dependencies = [
"regex-lite",
]

[[package]]
name = "ucd-trie"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"

[[package]]
name = "ui_test"
version = "0.26.5"
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ members = [
"src/tools/clippy/clippy_dev",
"src/tools/compiletest",
"src/tools/run-make-support",
"src/tools/error_index_generator",
"src/tools/linkchecker",
"src/tools/lint-docs",
"src/tools/miropt-test-tools",
Expand Down
6 changes: 5 additions & 1 deletion compiler/rustc_borrowck/src/universal_regions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use std::iter;
use rustc_data_structures::fx::FxIndexMap;
use rustc_errors::Diag;
use rustc_hir::BodyOwnerKind;
use rustc_hir::def::DefKind;
use rustc_hir::def_id::{DefId, LocalDefId};
use rustc_hir::lang_items::LangItem;
use rustc_index::IndexVec;
Expand Down Expand Up @@ -603,7 +604,10 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {

BodyOwnerKind::Const { .. } | BodyOwnerKind::Static(..) => {
let identity_args = GenericArgs::identity_for_item(tcx, typeck_root_def_id);
if self.mir_def.to_def_id() == typeck_root_def_id {
if self.mir_def.to_def_id() == typeck_root_def_id
// Do not ICE when checking default_field_values consts with lifetimes (#135649)
&& DefKind::Field != tcx.def_kind(tcx.parent(typeck_root_def_id))
{
let args =
self.infcx.replace_free_regions_with_nll_infer_vars(FR, identity_args);
DefiningTy::Const(self.mir_def.to_def_id(), args)
Expand Down
2 changes: 2 additions & 0 deletions compiler/rustc_hir_analysis/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ hir_analysis_must_implement_not_function_span_note = required by this annotation

hir_analysis_must_implement_one_of_attribute = the `#[rustc_must_implement_one_of]` attribute must be used with at least 2 args

hir_analysis_no_variant_named = no variant named `{$ident}` found for enum `{$ty}`

hir_analysis_not_supported_delegation = {$descr}
.label = callee defined here

Expand Down
Loading
Loading