1
Fork 0

Restructure std::fmt::rt a bit.

This moves more of the internal/lang items into the private rt module.
This commit is contained in:
Mara Bos 2023-04-24 14:01:19 +02:00
parent 5cf3cbf3b7
commit 0a28977740
3 changed files with 237 additions and 237 deletions

View file

@ -327,7 +327,7 @@ fn make_format_spec<'hir>(
None => sym::Unknown,
},
);
// This needs to match `Flag` in library/core/src/fmt/mod.rs.
// This needs to match `Flag` in library/core/src/fmt/rt.rs.
let flags: u32 = ((sign == Some(FormatSign::Plus)) as u32)
| ((sign == Some(FormatSign::Minus)) as u32) << 1
| (alternate as u32) << 2