Skip to content

mark a doctest with UB as no_run - #120366

Merged
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:is_val_statically_known
Jan 27, 2024
Merged

mark a doctest with UB as no_run#120366
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:is_val_statically_known

Conversation

@RalfJung

Copy link
Copy Markdown
Member

#119911 added a doctest with UB. That one shouldn't be run, or else Miri will complain.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @cuviper

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

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jan 26, 2024
@compiler-errors

compiler-errors commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

How is this test UB? If the test is UB, should we just remove it, or fix it?

edit: lmao, nvm, I read the whole thing. Yeah, seems like an oversight in the PR to add no_run here.

@cuviper

Copy link
Copy Markdown
Member

The example is intentionally demonstrating, "don't do this because it's UB!"

@cuviper

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Jan 26, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 5dd6418 has been approved by cuviper

It is now in the queue for this repository.

@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 Jan 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2024
…iaskrgr
Rollup of 12 pull requests
Successful merges:
- rust-lang#103522 (stabilise array methods)
- rust-lang#113489 (impl `From<&[T; N]>` for `Cow<[T]>`)
- rust-lang#119342 (Emit suggestion when trying to write exclusive ranges as `..<`)
- rust-lang#119562 (Rename `pointer` field on `Pin`)
- rust-lang#119800 (Document `rustc_index::vec::IndexVec`)
- rust-lang#120205 (std: make `HEAP` initializer never inline)
- rust-lang#120277 (Normalize field types before checking validity)
- rust-lang#120311 (core: add `From<core::ascii::Char>` implementations)
- rust-lang#120366 (mark a doctest with UB as no_run)
- rust-lang#120378 (always normalize `LoweredTy` in the new solver)
- rust-lang#120382 (Classify closure arguments in refutable pattern in argument error)
- rust-lang#120389 (Add fmease to the compiler review rotation)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit a7f5bde into rust-lang:masterJan 27, 2024
@rustbotrustbot added this to the 1.77.0 milestone Jan 27, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2024
Rollup merge of rust-lang#120366 - RalfJung:is_val_statically_known, r=cuviper
mark a doctest with UB as no_run
rust-lang#119911 added a doctest with UB. That one shouldn't be run, or else Miri will complain.
@RalfJung
RalfJung deleted the is_val_statically_known branch January 27, 2024 11:53
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.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@RalfJung@rustbot@compiler-errors@cuviper@bors