Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1bbabb7
std::net: adding `unix_socket_exclbind` feature for solaris/illumos.
devnexen Apr 4, 2024
f3383e4
Do not include NUL-terminator in computed length
Darksonn Jun 12, 2025
6a1b7df
Use a NonNull pointer
Darksonn Jun 23, 2025
e0f8e86
Skip unnecessary components in x64 try builds
Kobzol Jun 24, 2025
25dee4e
Skip more dist components
Kobzol Jun 24, 2025
8034154
Do not build GCC in fast try builds
Kobzol Jun 24, 2025
58bc1dc
Remove `mut`
Kobzol Jun 25, 2025
508021a
Add windows-gnullvm hosts to the manifest
mati865 Jun 25, 2025
b2be01c
rustdoc: show attributes on enum variants
lolbinarycat Jun 24, 2025
7a79454
update internal `send_signal` comment
fee1-dead Jun 27, 2025
cd1713e
BTreeSet: remove duplicated code by reusing `from_sorted_iter`
xu-cheng Jun 27, 2025
9090199
Update ui.rs
leopardracer Jun 27, 2025
3a34dac
Update README.md
leopardracer Jun 27, 2025
39092cc
Update dangling_pointer_to_raw_pointer.rs
leopardracer Jun 27, 2025
00b64f8
Use tidy to sort `sym::*` items
yotamofek Jun 27, 2025
a7964a5
Rollup merge of #123476 - devnexen:std_net_solaris_exclbind, r=Mark-S…
matthiaskrgr Jun 28, 2025
7df2579
Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-S…
matthiaskrgr Jun 28, 2025
487d89a
Rollup merge of #142963 - Kobzol:try-build-skip, r=jieyouxu
matthiaskrgr Jun 28, 2025
59567c5
Rollup merge of #142987 - lolbinarycat:rustdoc-non_exhaustive-enum-v-…
matthiaskrgr Jun 28, 2025
370c89a
Rollup merge of #143031 - mati865:push-mutywntmvomx, r=Mark-Simulacrum
matthiaskrgr Jun 28, 2025
87b42e2
Rollup merge of #143082 - fee1-dead-contrib:push-qvvppzukvkxt, r=Mark…
matthiaskrgr Jun 28, 2025
f960b30
Rollup merge of #143110 - yotamofek:pr/tidy-sort-for-symbols, r=nneth…
matthiaskrgr Jun 28, 2025
09384b9
Rollup merge of #143111 - xu-cheng:btreeset_from_iter, r=Mark-Simulacrum
matthiaskrgr Jun 28, 2025
6991c5a
Rollup merge of #143114 - leopardracer:master, r=RalfJung
matthiaskrgr Jun 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update dangling_pointer_to_raw_pointer.rs
  • Loading branch information
leopardracer authored Jun 27, 2025
commit 39092cc10b1a9c9395b5876ad40999e1a1eda585
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn direct_raw(x: *const (i32, i32)) -> *const i32 {

// Ensure that if a raw pointer is created via an intermediate
// reference, we catch that. (Just in case someone decides to
// desugar this differenly or so.)
// desugar this differently or so.)
fn via_ref(x: *const (i32, i32)) -> *const i32 {
unsafe { &(*x).0 as *const i32 } //~ERROR: dangling pointer
}
Expand Down
Loading