Restructure std::fmt::rt a bit.
This moves more of the internal/lang items into the private rt module.
This commit is contained in:
parent
5cf3cbf3b7
commit
0a28977740
3 changed files with 237 additions and 237 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue