Skip to content

Improve some pointer-related documentation - #62822

Merged
bors merged 8 commits into
rust-lang:masterfrom
RalfJung:pointers
Jul 26, 2019
Merged

Improve some pointer-related documentation#62822
bors merged 8 commits into
rust-lang:masterfrom
RalfJung:pointers

Conversation

@RalfJung

Copy link
Copy Markdown
Member

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 20, 2019
Comment threadsrc/libstd/primitive_docs.rs Outdated
Comment threadsrc/libstd/primitive_docs.rs Outdated
Comment threadsrc/libstd/primitive_docs.rs Outdated
Comment threadsrc/libstd/primitive_docs.rs
Comment threadsrc/libstd/primitive_docs.rs
Comment threadsrc/libstd/primitive_docs.rs Outdated
@Centril

Copy link
Copy Markdown
Contributor

r? @Centril

Comment threadsrc/libstd/primitive_docs.rs Outdated
@Centril

Copy link
Copy Markdown
Contributor

Thanks! r=me rollup with #62822 (comment) addressed in some way.

@Centril

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Jul 22, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 9196781 has been approved by Centril

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 22, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 22, 2019
Improve some pointer-related documentation
@CentrilCentril mentioned this pull request Jul 22, 2019
Comment threadsrc/libstd/primitive_docs.rs Outdated
Comment threadsrc/libstd/primitive_docs.rs Outdated
Comment threadsrc/libstd/primitive_docs.rs
@RalfJung

Copy link
Copy Markdown
MemberAuthor

@bors r-

will look at the comments later

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 23, 2019
Comment threadsrc/libstd/primitive_docs.rs Outdated
Co-Authored-By: gnzlbg <gnzlbg@users.noreply.github.com>
@RalfJung

Copy link
Copy Markdown
MemberAuthor

@gnzlbg

This compiles on stable Rust, so if the Rust language isn't ok with it then somebody should open a soundness bug (playground).

Somebody did: #28179.

@RalfJung

Copy link
Copy Markdown
MemberAuthor

@Centril please have a look at the changes; the one about references is a new sentence so I didn't feel comfortable just doing r=Centril.

@gnzlbg

gnzlbg commented Jul 23, 2019

Copy link
Copy Markdown
Contributor

@RalfJung there is no symbol defined twice in those playground examples (note the #![no_main] attribute), also the issue here is Rust accepting the static mut - the version without the mut is ok, as niko shows in that thread.

@RalfJung

RalfJung commented Jul 23, 2019

Copy link
Copy Markdown
MemberAuthor

That issue is about no_mangle being unsafe in general; defining a symbol twice is just one of many ways.

Also see #28179 (comment) (EDIT: I see you edited your post to mention that). And no that version is not okay, it runs arbitrary unsafe code without unsafe.

@Centril

Copy link
Copy Markdown
Contributor

@Centril please have a look at the changes; the one about references is a new sentence so I didn't feel comfortable just doing r=Centril.

Thanks; still looks good :)

@bors r+ rollup

@bors

bors commented Jul 23, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 65cf10d has been approved by Centril

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 23, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 24, 2019
Improve some pointer-related documentation
@CentrilCentril mentioned this pull request Jul 24, 2019
bors added a commit that referenced this pull request Jul 24, 2019
Rollup of 11 pull requests
Successful merges:
- #62261 (Take substs into account in `conservative_is_privately_uninhabited`)
- #62528 (Add joining slices of slices with a slice separator, not just a single item)
- #62738 (Remove uses of mem::uninitialized from std::sys::cloudabi)
- #62784 (Add riscv32i-unknown-none-elf target)
- #62808 (Revert "Disable stack probing for gnux32.")
- #62814 (add support for hexagon-unknown-linux-musl)
- #62822 (Improve some pointer-related documentation)
- #62890 (Normalize use of backticks in compiler messages for libsyntax/*)
- #62901 (cleanup: Remove `extern crate serialize as rustc_serialize`s)
- #62905 (Normalize use of backticks in compiler messages for doc)
- #62908 (normalize use of backticks for compiler messages in remaining modules)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Jul 24, 2019
Improve some pointer-related documentation
@CentrilCentril mentioned this pull request Jul 24, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 24, 2019
Rollup of 13 pull requests
Successful merges:
- rust-lang#60938 (rustdoc: make #[doc(include)] relative to the containing file)
- rust-lang#61890 (Fix some sanity checks)
- rust-lang#62084 (allow clippy::unreadable_literal in unicode tables)
- rust-lang#62261 (Take substs into account in `conservative_is_privately_uninhabited`)
- rust-lang#62528 (Add joining slices of slices with a slice separator, not just a single item)
- rust-lang#62735 (Turn `#[global_allocator]` into a regular attribute macro)
- rust-lang#62801 (Remove support for -Zlower-128bit-ops)
- rust-lang#62808 (Revert "Disable stack probing for gnux32.")
- rust-lang#62822 (Improve some pointer-related documentation)
- rust-lang#62904 (Disable d32 on armv6 hf targets)
- rust-lang#62907 (Initialize the MSP430 AsmParser)
- rust-lang#62921 (Add method disambiguation help for trait implementation)
- rust-lang#62942 (Use match ergonomics in Condvar documentation)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Jul 25, 2019
Improve some pointer-related documentation
@CentrilCentril mentioned this pull request Jul 25, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 25, 2019
Improve some pointer-related documentation
@CentrilCentril mentioned this pull request Jul 25, 2019
bors added a commit that referenced this pull request Jul 25, 2019
Rollup of 15 pull requests
Successful merges:
- #60066 (Stabilize the type_name intrinsic in core::any)
- #60938 (rustdoc: make #[doc(include)] relative to the containing file)
- #61884 (Stablize Euclidean Modulo (feature euclidean_division))
- #61890 (Fix some sanity checks)
- #62528 (Add joining slices of slices with a slice separator, not just a single item)
- #62707 (Add tests for overlapping explicitly dropped locals in generators)
- #62735 (Turn `#[global_allocator]` into a regular attribute macro)
- #62822 (Improve some pointer-related documentation)
- #62887 (Make the parser TokenStream more resilient after mismatched delimiter recovery)
- #62921 (Add method disambiguation help for trait implementation)
- #62930 (Add test for #51559)
- #62942 (Use match ergonomics in Condvar documentation)
- #62977 (Fix inconsistent highlight blocks.)
- #62978 (Remove `cfg(bootstrap)` code for array implementations)
- #62981 (Add note suggesting to borrow a String argument to find)
Failed merges:
- #62964 (clarify and unify some type test names)
r? @ghost
@bors
bors merged commit 65cf10d into rust-lang:masterJul 26, 2019
@RalfJung
RalfJung deleted the pointers branch July 29, 2019 08:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@RalfJung@rust-highfive@Centril@bors@gnzlbg@Lokathor@sfackler