Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #54036

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
faf80ad
remove base_place
matthewjasper Sep 3, 2018
d7a74be
Fix incorrect outer function type parameter message
estebank Sep 4, 2018
941b2e3
slight rewording of labels
estebank Sep 5, 2018
bebecf8
reword label as per review
estebank Sep 5, 2018
6c14360
Changing TyAnon -> TyOpaque and relevant functions
ms2300 Aug 23, 2018
c34dd37
rustc_resolve: don't record uniform_paths canaries as reexports.
eddyb Sep 6, 2018
f4d4faa
Fixing tests from anon -> opaque
ms2300 Aug 25, 2018
1adfdef
rustdoc: collect trait impls as an early pass
QuietMisdreavus Aug 7, 2018
f1566f7
print local inlined consts via the HIR map
QuietMisdreavus Aug 7, 2018
c665478
ignore rustdoc/doc-proc-macro on stage1
QuietMisdreavus Aug 7, 2018
ce5e4e5
only move access_levels/external_traits after early passes
QuietMisdreavus Aug 10, 2018
033fd7a
don't record an external trait if it's not external
QuietMisdreavus Aug 14, 2018
dc3899e
undo some tweaks to build_impl
QuietMisdreavus Aug 14, 2018
825126a
add a bunch of debug prints
QuietMisdreavus Aug 14, 2018
5254548
handle local names when registering FQNs
QuietMisdreavus Aug 14, 2018
ca61286
pull local types from the HIR instead of tcx
QuietMisdreavus Aug 14, 2018
eaacf59
collect impl items from the HIR if available
QuietMisdreavus Aug 14, 2018
17d4834
pull impl generics from HIR if available
QuietMisdreavus Aug 14, 2018
15dba89
swap external_traits into the crate before running strip_hidden
QuietMisdreavus Aug 15, 2018
c39de06
don't check visibility when inlining local impls
QuietMisdreavus Aug 21, 2018
810332f
add more tests for traits-in-non-module-scope
QuietMisdreavus Aug 27, 2018
5fd1d83
don't index trait impls if the trait isn't also documented
QuietMisdreavus Aug 28, 2018
ce70d91
collect auto-/blanket-impls during collect-trait-impls
QuietMisdreavus Aug 30, 2018
9e75db4
refactor: move `access_levels` into RenderInfo
QuietMisdreavus Aug 30, 2018
8aba29a
shuffle ownership of `external_traits`
QuietMisdreavus Sep 2, 2018
73dd19f
Stabilize the 2018 edition
Mark-Simulacrum Sep 6, 2018
8c3ac3c
Remove crate_visibility_modifier from 2018 edition
Mark-Simulacrum Sep 6, 2018
358fc5b
stabilize `#[panic_handler]`
japaric Sep 7, 2018
8aae6ca
Have rust-lldb look for the rust-enabled lldb
tromey Sep 5, 2018
ef44068
rustbuild: allow configuring llvm version suffix
Keruspe Sep 6, 2018
3caa8d3
Rollup merge of #51366 - japaric:stable-panic-impl, r=Mark-Simulacrum
kennytm Sep 7, 2018
62d1e0c
Rollup merge of #53162 - QuietMisdreavus:crouching-impl-hidden-trait,…
kennytm Sep 7, 2018
d3b9ec5
Rollup merge of #53705 - ms2300:tmp, r=oli-obk
kennytm Sep 7, 2018
39f1b46
Rollup merge of #53932 - matthewjasper:remove-base-path, r=nikomatsakis
kennytm Sep 7, 2018
4e2f3ad
Rollup merge of #53960 - estebank:issue-51303, r=nagisa
kennytm Sep 7, 2018
6233d9b
Rollup merge of #53973 - tromey:prefer-rust-enabled-lldb, r=alexcrichton
kennytm Sep 7, 2018
99bd3ed
Rollup merge of #53987 - Keruspe:llvm-suffix, r=alexcrichton
kennytm Sep 7, 2018
6b2d5b4
Rollup merge of #53993 - eddyb:issue-53691, r=petrochenkov
kennytm Sep 7, 2018
1e4aa65
Rollup merge of #53999 - Mark-Simulacrum:stabilize-edition, r=alexcri…
kennytm Sep 7, 2018
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
4 changes: 4 additions & 0 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
# passed to prefer linking to shared libraries.
#link-shared = false

# When building llvm, this configures what is being appended to the version.
# If absent, we let the version as-is.
#version-suffix = "-rust"

# On MSVC you can compile LLVM with clang-cl, but the test suite doesn't pass
# with clang-cl, so this is special in that it only compiles LLVM with clang-cl
#clang-cl = '/path/to/clang-cl.exe'
Expand Down
1 change: 1 addition & 0 deletions src/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2433,6 +2433,7 @@ name = "rustdoc"
version = "0.0.0"
dependencies = [
"minifier 0.0.19 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
"pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"tempfile 3.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
Expand Down
3 changes: 3 additions & 0 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pub struct Config {
pub llvm_targets: Option<String>,
pub llvm_experimental_targets: String,
pub llvm_link_jobs: Option<u32>,
pub llvm_version_suffix: Option<String>,

pub lld_enabled: bool,
pub lldb_enabled: bool,
Expand Down Expand Up @@ -256,6 +257,7 @@ struct Llvm {
experimental_targets: Option<String>,
link_jobs: Option<u32>,
link_shared: Option<bool>,
version_suffix: Option<String>,
clang_cl: Option<String>
}

Expand Down Expand Up @@ -516,6 +518,7 @@ impl Config {
config.llvm_experimental_targets = llvm.experimental_targets.clone()
.unwrap_or("WebAssembly;RISCV".to_string());
config.llvm_link_jobs = llvm.link_jobs;
config.llvm_version_suffix = llvm.version_suffix.clone();
config.llvm_clang_cl = llvm.clang_cl.clone();
}

Expand Down
7 changes: 4 additions & 3 deletions src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,8 @@ impl Step for Lldb {
drop(fs::remove_dir_all(&image));

// Prepare the image directory
let dst = image.join("bin");
let root = image.join("lib/rustlib").join(&*target);
let dst = root.join("bin");
t!(fs::create_dir_all(&dst));
for program in &["lldb", "lldb-argdumper", "lldb-mi", "lldb-server"] {
let exe = bindir.join(exe(program, &target));
Expand All @@ -2065,7 +2066,7 @@ impl Step for Lldb {

// The libraries.
let libdir = builder.llvm_out(target).join("lib");
let dst = image.join("lib");
let dst = root.join("lib");
t!(fs::create_dir_all(&dst));
for entry in t!(fs::read_dir(&libdir)) {
let entry = entry.unwrap();
Expand Down Expand Up @@ -2093,7 +2094,7 @@ impl Step for Lldb {
let entry = t!(entry);
if let Ok(name) = entry.file_name().into_string() {
if name.starts_with("python") {
let dst = image.join(libdir_name)
let dst = root.join(libdir_name)
.join(entry.file_name());
t!(fs::create_dir_all(&dst));
builder.cp_r(&entry.path(), &dst);
Expand Down
4 changes: 4 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ impl Step for Llvm {
cfg.define("LLVM_NATIVE_BUILD", builder.llvm_out(builder.config.build).join("build"));
}

if let Some(ref suffix) = builder.config.llvm_version_suffix {
cfg.define("LLVM_VERSION_SUFFIX", suffix);
}

if let Some(ref python) = builder.config.python {
cfg.define("PYTHON_EXECUTABLE", python);
}
Expand Down
14 changes: 14 additions & 0 deletions src/doc/rustdoc/src/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,17 @@ $ rustdoc src/lib.rs --sysroot /path/to/sysroot

Similar to `rustc --sysroot`, this lets you change the sysroot `rustdoc` uses
when compiling your code.

### `--edition`: control the edition of docs and doctests

Using this flag looks like this:

```bash
$ rustdoc src/lib.rs --edition 2018
$ rustdoc --test src/lib.rs --edition 2018
```

This flag allows rustdoc to treat your rust code as the given edition. It will compile doctests with
the given edition as well. As with `rustc`, the default edition that `rustdoc` will use is `2015`
(the first edition).

13 changes: 0 additions & 13 deletions src/doc/rustdoc/src/unstable-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,19 +346,6 @@ details.

[issue-display-warnings]: https://github.com/rust-lang/rust/issues/41574

### `--edition`: control the edition of docs and doctests

Using this flag looks like this:

```bash
$ rustdoc src/lib.rs -Z unstable-options --edition 2018
$ rustdoc --test src/lib.rs -Z unstable-options --edition 2018
```

This flag allows rustdoc to treat your rust code as the given edition. It will compile doctests with
the given edition as well. As with `rustc`, the default edition that `rustdoc` will use is `2015`
(the first edition).

### `--extern-html-root-url`: control how rustdoc links to non-local crates

Using this flag looks like this:
Expand Down
26 changes: 17 additions & 9 deletions src/etc/rust-lldb
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,35 @@
# Exit if anything fails
set -e

LLDB_VERSION=`lldb --version 2>/dev/null | head -1 | cut -d. -f1`
# Find out where to look for the pretty printer Python module
RUSTC_SYSROOT=`rustc --print sysroot`

# Find the host triple so we can find lldb in rustlib.
host=`rustc -vV | sed -n -e 's/^host: //p'`

lldb=lldb
if [ -f "$RUSTC_SYSROOT/lib/rustlib/$host/bin/lldb" ]; then
lldb="$RUSTC_SYSROOT/lib/rustlib/$host/bin/lldb"
else
LLDB_VERSION=`"$lldb" --version 2>/dev/null | head -1 | cut -d. -f1`

if [ "$LLDB_VERSION" = "lldb-350" ]
then
echo "***"
if [ "$LLDB_VERSION" = "lldb-350" ]
then
echo "***"
echo \
"WARNING: This version of LLDB has known issues with Rust and cannot \
display the contents of local variables!"
echo "***"
echo "***"
fi
fi

# Find out where to look for the pretty printer Python module
RUSTC_SYSROOT=`rustc --print sysroot`

# Prepare commands that will be loaded before any file on the command line has been loaded
script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_rust_formatters.py\""
category_definition="type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust"
category_enable="type category enable Rust"

# Call LLDB with the commands added to the argument list
exec lldb --one-line-before-file="$script_import" \
exec "$lldb" --one-line-before-file="$script_import" \
--one-line-before-file="$category_definition" \
--one-line-before-file="$category_enable" \
"$@"
2 changes: 1 addition & 1 deletion src/librustc/ich/impls_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ for ty::TyKind<'gcx>
Projection(ref projection_ty) => {
projection_ty.hash_stable(hcx, hasher);
}
Anon(def_id, substs) => {
Opaque(def_id, substs) => {
def_id.hash_stable(hcx, hasher);
substs.hash_stable(hcx, hasher);
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/infer/canonical/canonicalizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl<'cx, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for Canonicalizer<'cx, 'gcx, 'tcx>
| ty::Projection(..)
| ty::Foreign(..)
| ty::Param(..)
| ty::Anon(..) => {
| ty::Opaque(..) => {
if t.flags.intersects(self.needs_canonical_flags) {
t.super_fold_with(self)
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/infer/freshen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for TypeFreshener<'a, 'gcx, 'tcx> {
ty::Param(..) |
ty::Closure(..) |
ty::GeneratorWitness(..) |
ty::Anon(..) => {
ty::Opaque(..) => {
t.super_fold_with(self)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use self::outlives::env::OutlivesEnvironment;
use self::type_variable::TypeVariableOrigin;
use self::unify_key::ToType;

pub mod anon_types;
pub mod opaque_types;
pub mod at;
pub mod canonical;
mod combine;
Expand Down
Loading