Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 06306c0

Browse files
committedMar 5, 2025
Auto merge of rust-lang#138071 - jieyouxu:rollup-a19djgi, r=jieyouxu
Rollup of 29 pull requests Successful merges: - rust-lang#135733 (Implement `&pin const self` and `&pin mut self` sugars) - rust-lang#137107 (Override default `Write` methods for cursor-like types) - rust-lang#137303 (Remove `MaybeForgetReturn` suggestion) - rust-lang#137327 (Undeprecate env::home_dir) - rust-lang#137358 (Match Ergonomics 2024: add context and examples to the unstable book) - rust-lang#137534 ([rustdoc] hide item that is not marked as doc(inline) and whose src is doc(hidden)) - rust-lang#137565 (Try to point of macro expansion from resolver and method errors if it involves macro var) - rust-lang#137612 (Update bootstrap to edition 2024) - rust-lang#137637 (Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck) - rust-lang#137643 (Add DWARF test case for non-C-like `repr128` enums) - rust-lang#137685 (self-contained linker: conservatively default to `-znostart-stop-gc` on x64 linux) - rust-lang#137744 (Re-add `Clone`-derive on `Thir`) - rust-lang#137758 (fix usage of ty decl macro fragments in attributes) - rust-lang#137764 (Ensure that negative auto impls are always applicable) - rust-lang#137772 (Fix char count in `Display` for `ByteStr`) - rust-lang#137798 (ci: use ubuntu 24 on arm large runner) - rust-lang#137802 (miri native-call support: all previously exposed provenance is accessible to the callee) - rust-lang#137805 (adjust Layout debug printing to match the internal field name) - rust-lang#137808 (Do not require that unsafe fields lack drop glue) - rust-lang#137820 (Clarify why InhabitedPredicate::instantiate_opt exists) - rust-lang#137825 (Provide more context on resolve error caused from incorrect RTN) - rust-lang#137827 (Add timestamp to unstable feature usage metrics) - rust-lang#137832 (Fix crash in BufReader::peek()) - rust-lang#137910 (Improve error message for `AsyncFn` trait failure for RPIT) - rust-lang#137920 (interpret/provenance_map: consistently use range_is_empty) - rust-lang#138038 (Update `compiler-builtins` to 0.1.151) - rust-lang#138046 (trim channel value in `get_closest_merge_commit`) - rust-lang#138052 (strip `-Wlinker-messages` wrappers from `rust-lld` rmake test) - rust-lang#138053 (Increase the max. custom try jobs requested to `20`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 30f168e + 1c22311 commit 06306c0

File tree

144 files changed

+2018
-867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+2018
-867
lines changed
 

‎compiler/rustc_feature/src/unstable.rs

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! List of the unstable feature gates.
22
33
use std::path::PathBuf;
4+
use std::time::{SystemTime, UNIX_EPOCH};
45

56
use rustc_data_structures::fx::FxHashSet;
67
use rustc_span::{Span, Symbol, sym};
@@ -685,11 +686,13 @@ impl Features {
685686
) -> Result<(), Box<dyn std::error::Error>> {
686687
#[derive(serde::Serialize)]
687688
struct LibFeature {
689+
timestamp: u128,
688690
symbol: String,
689691
}
690692

691693
#[derive(serde::Serialize)]
692694
struct LangFeature {
695+
timestamp: u128,
693696
symbol: String,
694697
since: Option<String>,
695698
}
@@ -703,10 +706,20 @@ impl Features {
703706
let metrics_file = std::fs::File::create(metrics_path)?;
704707
let metrics_file = std::io::BufWriter::new(metrics_file);
705708

709+
let now = || {
710+
SystemTime::now()
711+
.duration_since(UNIX_EPOCH)
712+
.expect("system time should always be greater than the unix epoch")
713+
.as_nanos()
714+
};
715+
706716
let lib_features = self
707717
.enabled_lib_features
708718
.iter()
709-
.map(|EnabledLibFeature { gate_name, .. }| LibFeature { symbol: gate_name.to_string() })
719+
.map(|EnabledLibFeature { gate_name, .. }| LibFeature {
720+
symbol: gate_name.to_string(),
721+
timestamp: now(),
722+
})
710723
.collect();
711724

712725
let lang_features = self
@@ -715,6 +728,7 @@ impl Features {
715728
.map(|EnabledLangFeature { gate_name, stable_since, .. }| LangFeature {
716729
symbol: gate_name.to_string(),
717730
since: stable_since.map(|since| since.to_string()),
731+
timestamp: now(),
718732
})
719733
.collect();
720734

‎compiler/rustc_hir_analysis/messages.ftl

+2-7
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,6 @@ hir_analysis_invalid_union_field =
278278
hir_analysis_invalid_union_field_sugg =
279279
wrap the field type in `ManuallyDrop<...>`
280280
281-
hir_analysis_invalid_unsafe_field =
282-
field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be unsafe
283-
.note = unsafe fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>`
284-
285-
hir_analysis_invalid_unsafe_field_sugg =
286-
wrap the field type in `ManuallyDrop<...>`
287-
288281
hir_analysis_late_bound_const_in_apit = `impl Trait` can only mention const parameters from an fn or impl
289282
.label = const parameter declared here
290283
@@ -620,6 +613,8 @@ hir_analysis_variances_of = {$variances}
620613
hir_analysis_where_clause_on_main = `main` function is not allowed to have a `where` clause
621614
.label = `main` cannot have a `where` clause
622615
616+
hir_analysis_within_macro = due to this macro variable
617+
623618
hir_analysis_wrong_number_of_generic_arguments_to_intrinsic =
624619
intrinsic has wrong number of {$descr} parameters: found {$found}, expected {$expected}
625620
.label = expected {$expected} {$descr} {$expected ->
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.