Skip to content

Add functions for building raw slices to libcore - #60667

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:raw_from_raw_parts
Jun 19, 2019
Merged

Add functions for building raw slices to libcore #60667
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:raw_from_raw_parts

Conversation

@oli-obk

Copy link
Copy Markdown
Contributor

implement #36925

@oli-obkoli-obk added the T-libs-api [DEPRECATED; DO NOT USE] label May 9, 2019
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @joshtriplett

(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 May 9, 2019
@rust-highfive

Copy link
Copy Markdown
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
travis_time:end:0aac4648:start=1557402614815030543,finish=1557402709621061353,duration=94806030810
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout
Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
travis_time:start:test_codegen
Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[01:20:40] [01:20:40] running 143 tests
[01:20:42] i..iii.....iii..iiii.....i......................i..i.................i.....i..........ii..i.i..i.ii. 100/143
[01:20:44] test result: ok. 113 passed; 0 failed; 30 ignored; 0 measured; 0 filtered out
[01:20:44] [01:20:44] finished in 4.653
[01:20:44] travis_fold:end:test_codegen
---
travis_time:start:test_assembly
Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[01:20:46] [01:20:46] running 9 tests
[01:20:46] iiiiiiiii
[01:20:46] [01:20:46] finished in 0.150
[01:20:46] travis_fold:end:test_assembly
---
travis_time:start:test_debuginfo
Check compiletest suite=debuginfo mode=debuginfo-both (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[01:21:02] [01:21:02] running 122 tests
[01:21:27] .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....i..........iiii..........i...ii...i.......ii.i 100/122
[01:21:32] .i.i......iii.i.....ii
[01:21:32] [01:21:32] finished in 29.882
[01:21:32] travis_fold:end:test_debuginfo
---
[01:31:51] [01:31:51] To learn more, run the command again with --verbose.
[01:31:51] [01:31:51] [01:31:51] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace" "--manifest-path" "/checkout/src/libstd/Cargo.toml" "-p" "core" "--" "--quiet"
[01:31:51] [01:31:51] [01:31:51] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:31:51] Build completed unsuccessfully in 0:22:52
[01:31:51] Build completed unsuccessfully in 0:22:52
[01:31:51] make: *** [check] Error 1
[01:31:51] Makefile:48: recipe for target 'check' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:06db6ef0
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Thu May 9 13:23:50 UTC 2019

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@oli-obk
oli-obkforce-pushed the raw_from_raw_parts branch from 412b3b1 to f5236b7CompareMay 9, 2019 14:24
Comment threadsrc/libcore/ptr.rs Outdated
@petertodd

petertodd commented May 11, 2019 via email

Copy link
Copy Markdown
Contributor

Comment threadsrc/libcore/ptr.rs Outdated
Comment threadsrc/libcore/ptr.rs Outdated
Comment threadsrc/libcore/ptr.rs Outdated
Comment threadsrc/libcore/ptr.rs Outdated
@oli-obk
oli-obkforce-pushed the raw_from_raw_parts branch from 7979709 to adaa377CompareMay 24, 2019 21:05
@bors

bors commented May 28, 2019

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #61274) made this pull request unmergeable. Please resolve the merge conflicts.

@Centril

Copy link
Copy Markdown
Contributor

r? @sfackler

Comment thread.gitignore Outdated
Comment threadsrc/libcore/ptr.rs Outdated
@sfackler

Copy link
Copy Markdown
Member

LGTM other than the one nit.

@CentrilCentril 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-review Status: Awaiting review from the assignee but also interested parties. labels Jun 10, 2019
@oli-obk
oli-obkforce-pushed the raw_from_raw_parts branch from adaa377 to 5b73c70CompareJune 19, 2019 07:13
@rust-highfive

Copy link
Copy Markdown
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
travis_time:end:0f045a1a:start=1560928500740750172,finish=1560928501881683377,duration=1140933205
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout
Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[00:04:45] Compiling cc v1.0.35
[00:04:45] Compiling core v0.0.0 (/checkout/src/libcore)
[00:04:45] Compiling libc v0.2.54
[00:04:45] Compiling build_helper v0.1.0 (/checkout/src/build_helper)
[00:04:45] error[E0584]: file for module `ptr` found at both ptr.rs and ptr/mod.rs
[00:04:45] |
[00:04:45] 176 | pub mod ptr;
[00:04:45] | ^^^
[00:04:45] |
[00:04:45] |
[00:04:45] = help: delete or rename one of them to remove the ambiguity
[00:04:45] error: aborting due to previous error
[00:04:45] [00:04:45] error: Could not compile `core`.
[00:04:45] warning: build failed, waiting for other jobs to finish...

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@oli-obk
oli-obkforce-pushed the raw_from_raw_parts branch from 5b73c70 to 8b21b07CompareJune 19, 2019 07:22
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=sfackler

@bors

bors commented Jun 19, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 8b21b07 has been approved by sfackler

@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 Jun 19, 2019
Centril added a commit to Centril/rust that referenced this pull request Jun 19, 2019
 Add functions for building raw slices to libcore
implement rust-lang#36925
@CentrilCentril mentioned this pull request Jun 19, 2019
Centril added a commit to Centril/rust that referenced this pull request Jun 19, 2019
 Add functions for building raw slices to libcore
implement rust-lang#36925
@CentrilCentril mentioned this pull request Jun 19, 2019
bors added a commit that referenced this pull request Jun 19, 2019
Rollup of 4 pull requests
Successful merges:
- #60667 ( Add functions for building raw slices to libcore )
- #61547 (Support `cfg` and `cfg_attr` on generic parameters)
- #61861 (Update rustfmt and rls)
- #61940 (Make Place::ty iterate)
Failed merges:
r? @ghost
@bors
bors merged commit 8b21b07 into rust-lang:masterJun 19, 2019
@SimonSapin

Copy link
Copy Markdown
Contributor

When landing a PR that adds a #[unstable(issue = "…")] attribute, please make sure the relevant issue is labelled at S-tracking-issue. This helps put it in the Libs team’s radar. I sometimes look at https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AC-tracking-issue+label%3AT-libs to find issues in need of attention.

bors added a commit that referenced this pull request Jan 28, 2020
Stabilize ptr::slice_from_raw_parts[_mut]
Closes#36925, the tracking issue.
Initial impl: #60667
r? @rust-lang/libs
In addition to stabilizing, I've adjusted the example of `ptr::slice_from_raw_parts` to use `slice_from_raw_parts` instead of `slice_from_raw_parts_mut`, which was unnecessary for the example as written.
@oli-obk
oli-obk deleted the raw_from_raw_parts branch March 16, 2021 12:14
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-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

12 participants

@oli-obk@rust-highfive@petertodd@bors@Centril@sfackler@SimonSapin@RalfJung@mati865@hanna-kruppe@ollie27@joshtriplett