replaced deprecated std::u16::MAX with u16::MAX

This commit is contained in:
Anton-4 2020-10-21 14:35:36 +02:00
parent 5f9225d495
commit 12821bf321
3 changed files with 6 additions and 6 deletions

View file

@ -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;