-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #114922 - matthiaskrgr:rollup-qktdihi, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #112751 (rustdoc: Fixes with --test-run-directory and relative paths.) - #114749 (Update `mpsc::Sender` doc to reflect that it implements `Sync`) - #114876 (Don't ICE in `is_trivially_sized` when encountering late-bound self ty) - #114881 (clarify CStr lack of layout guarnatees) - #114921 (Remove Folyd from librustdoc static files) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
11 changed files
with
100 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ignore-cross-compile | ||
include ../tools.mk | ||
|
||
# Tests behavior of rustdoc --runtool | ||
|
||
MY_SRC_DIR := ${CURDIR} | ||
|
||
all: with_test_run_directory | ||
|
||
# Behavior with --runtool with relative paths and --test-run-directory. | ||
with_test_run_directory: | ||
mkdir -p $(TMPDIR)/rundir | ||
mkdir -p $(TMPDIR)/runtool | ||
$(RUSTC) --crate-type rlib t.rs | ||
$(RUSTC) runtool.rs -o $(TMPDIR)/runtool/runtool | ||
( cd $(TMPDIR); \ | ||
$(RUSTDOC) -Zunstable-options --test --test-run-directory rundir \ | ||
--runtool runtool/runtool --extern t=libt.rlib $(MY_SRC_DIR)/t.rs \ | ||
) | ||
rm -rf $(TMPDIR)/rundir $(TMPDIR)/runtool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
eprintln!("{:?}", std::env::args().collect::<Vec<_>>()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// Fungle the foople. | ||
/// ``` | ||
/// t::foople(); | ||
/// ``` | ||
pub fn foople() {} | ||
|
||
/// Flomble the florp | ||
/// ``` | ||
/// t::florp(); | ||
/// ``` | ||
pub fn florp() {} |
19 changes: 19 additions & 0 deletions
19
tests/ui/traits/non_lifetime_binders/sized-late-bound-issue-114872.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// check-pass | ||
|
||
#![feature(non_lifetime_binders)] | ||
//~^ WARN is incomplete and may not be safe | ||
|
||
pub fn foo() | ||
where | ||
for<V> V: Sized, | ||
{ | ||
bar(); | ||
} | ||
|
||
pub fn bar() | ||
where | ||
for<V> V: Sized, | ||
{ | ||
} | ||
|
||
pub fn main() {} |
11 changes: 11 additions & 0 deletions
11
tests/ui/traits/non_lifetime_binders/sized-late-bound-issue-114872.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/sized-late-bound-issue-114872.rs:3:12 | ||
| | ||
LL | #![feature(non_lifetime_binders)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters