I tried this code:
fn main() {
println!("{:?}", b"".as_ptr());
println!("{:?}", b"1".as_ptr());
}
In 1.78, this is the output:
However on 1.79+, this is the output:
How can this not be a major breaking change? It doesn't seem sensible that as_ptr() can return a value like 0x01.
Meta
rustc --version --verbose:
rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
commit-date: 2024-06-10
host: aarch64-apple-darwin
release: 1.79.0
LLVM version: 18.1.7
I tried this code:
In 1.78, this is the output:
However on 1.79+, this is the output:
How can this not be a major breaking change? It doesn't seem sensible that
as_ptr()can return a value like0x01.Meta
rustc --version --verbose: