This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust
/
tests
/
ui
/
issues
/
issue-68010-large-zst-consts.rs
6 lines
74 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ build-pass
Optimize const value interning for ZST types Interning can skip any inhabited ZST type in general.
2020-10-17 15:47:27 -04:00
fn
main
(
)
{
Update tests to remove old numeric constants Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-10-24 19:21:40 -04:00
println!
(
"
{}
"
,
[
(
)
;
usize
::
MAX
]
.
len
(
)
)
;
Optimize const value interning for ZST types Interning can skip any inhabited ZST type in general.
2020-10-17 15:47:27 -04:00
}
Reference in New Issue
Copy Permalink