Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d2ed8cf
Optionally add type names to `TypeId`s.
kpreid Jan 27, 2025
8fb8885
core/net: IpAddr*::as_octets()
npry Feb 5, 2025
5112ecb
Stabilise `os_str_display`
riverbl Feb 16, 2025
ff7533e
rustdoc book: acknowlage --document-hidden-items
lolbinarycat Nov 10, 2024
43c2b00
Store `TyCtxt` instead of `Map` in some iterators.
nnethercote Feb 20, 2025
d32eeb8
Implement read_buf for WASI stdin
thaliaarchi Feb 5, 2025
806be25
Move methods from Map to TyCtxt, part 3.
nnethercote Feb 20, 2025
da77b39
Refactor `OperandRef::extract_field` to prep for 838
scottmcm Feb 21, 2025
2f29c2e
Do not exempt nonexistent platforms from platform policy
workingjubilee Feb 21, 2025
918b5c3
remove unused pred_rcache
klensy Feb 21, 2025
8d2de63
convert all_macro_rules from hashmap to hashset
klensy Feb 21, 2025
7b74920
Stacker now handles miri using a noop impl itself
bjorn3 Feb 13, 2025
4395618
Rollup merge of #132876 - lolbinarycat:rustdoc-document-hidden-items,…
matthiaskrgr Feb 21, 2025
28164f1
Rollup merge of #136148 - kpreid:type-str, r=joboet
matthiaskrgr Feb 21, 2025
4aa973b
Rollup merge of #136609 - mammothbane:master, r=scottmcm
matthiaskrgr Feb 21, 2025
2dc7573
Rollup merge of #137336 - riverbl:stabilise-os-str-display, r=tgross35
matthiaskrgr Feb 21, 2025
a24eb0b
Rollup merge of #137350 - nnethercote:remove-Map-3, r=Zalathar
matthiaskrgr Feb 21, 2025
ef14e9a
Rollup merge of #137353 - thaliaarchi:io-optional-methods/wasi-stdin,…
matthiaskrgr Feb 21, 2025
b012356
Rollup merge of #137361 - scottmcm:mcp-838-prep, r=compiler-errors
matthiaskrgr Feb 21, 2025
0f56361
Rollup merge of #137367 - workingjubilee:remove-stray-line, r=jieyouxu
matthiaskrgr Feb 21, 2025
45b4314
Rollup merge of #137374 - bjorn3:remove_stacker_miri_special_case, r=…
matthiaskrgr Feb 21, 2025
cfc2d11
Rollup merge of #137392 - klensy:unused, r=compiler-errors
matthiaskrgr Feb 21, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/std/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ pub use self::c_str::{CStr, CString};
#[doc(inline)]
pub use self::os_str::{OsStr, OsString};

#[unstable(feature = "os_str_display", issue = "120048")]
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
pub mod os_str;
10 changes: 4 additions & 6 deletions library/std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1204,13 +1204,12 @@ impl OsStr {
/// # Examples
///
/// ```
/// #![feature(os_str_display)]
/// use std::ffi::OsStr;
///
/// let s = OsStr::new("Hello, world!");
/// println!("{}", s.display());
/// ```
#[unstable(feature = "os_str_display", issue = "120048")]
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
#[must_use = "this does not display the `OsStr`; \
it returns an object that can be displayed"]
#[inline]
Expand Down Expand Up @@ -1559,7 +1558,6 @@ impl fmt::Debug for OsStr {
/// # Examples
///
/// ```
/// #![feature(os_str_display)]
/// use std::ffi::OsStr;
///
/// let s = OsStr::new("Hello, world!");
Expand All @@ -1568,19 +1566,19 @@ impl fmt::Debug for OsStr {
///
/// [`Display`]: fmt::Display
/// [`format!`]: crate::format
#[unstable(feature = "os_str_display", issue = "120048")]
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
pub struct Display<'a> {
os_str: &'a OsStr,
}

#[unstable(feature = "os_str_display", issue = "120048")]
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
impl fmt::Debug for Display<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&self.os_str, f)
}
}

#[unstable(feature = "os_str_display", issue = "120048")]
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
impl fmt::Display for Display<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&self.os_str.inner, f)
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#![feature(iter_intersperse)]
#![feature(let_chains)]
#![feature(never_type)]
#![feature(os_str_display)]
#![feature(round_char_boundary)]
#![feature(test)]
#![feature(type_alias_impl_trait)]
Expand Down