mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
replaced deprecated std::u16::MAX with u16::MAX
This commit is contained in:
parent
5f9225d495
commit
12821bf321
3 changed files with 6 additions and 6 deletions
|
@ -52,9 +52,9 @@ pub fn canonical_string_literal<'a>(_arena: &Bump, _raw: &'a str, _region: Regio
|
|||
// // line length, that would have already happened back
|
||||
// // in the parsing step, and we never would have reached
|
||||
// // this code. Still, debug_assert that they won't!
|
||||
// debug_assert!(buf_col_offset <= std::u16::MAX as usize);
|
||||
// debug_assert!(ident.len() <= std::u16::MAX as usize);
|
||||
// debug_assert!((parsed_length - ident.len() - 1) <= std::u16::MAX as usize);
|
||||
// debug_assert!(buf_col_offset <= u16::MAX as usize);
|
||||
// debug_assert!(ident.len() <= u16::MAX as usize);
|
||||
// debug_assert!((parsed_length - ident.len() - 1) <= u16::MAX as usize);
|
||||
|
||||
// let start_line = state.line;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue