-
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 #40911 - frewsxcv:rollup, r=frewsxcv
Rollup of 6 pull requests - Successful merges: #40780, #40814, #40816, #40832, #40901, #40907 - Failed merges:
- Loading branch information
Showing
20 changed files
with
371 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/bash | ||
# Copyright 2016 The Rust Project Developers. See the COPYRIGHT | ||
# file at the top-level directory of this distribution and at | ||
# http://rust-lang.org/COPYRIGHT. | ||
# | ||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
# option. This file may not be copied, modified, or distributed | ||
# except according to those terms. | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
set -o xtrace | ||
|
||
ci_dir=$(cd $(dirname $0) && pwd) | ||
. "$ci_dir/shared.sh" | ||
|
||
REPO_DIR="$1" | ||
CACHE_DIR="$2" | ||
|
||
cache_src_dir="$CACHE_DIR/src" | ||
# If the layout of the cache directory changes, bump the number here | ||
# (and anywhere else this file is referenced) so the cache is wiped | ||
cache_valid_file="$CACHE_DIR/cache_valid1" | ||
|
||
if [ ! -d "$REPO_DIR" -o ! -d "$REPO_DIR/.git" ]; then | ||
echo "Error: $REPO_DIR does not exist or is not a git repo" | ||
exit 1 | ||
fi | ||
cd $REPO_DIR | ||
if [ ! -d "$CACHE_DIR" ]; then | ||
echo "Error: $CACHE_DIR does not exist or is not an absolute path" | ||
exit 1 | ||
fi | ||
|
||
# Wipe the cache if it's not valid, or mark it as invalid while we update it | ||
if [ ! -f "$cache_valid_file" ]; then | ||
rm -rf "$CACHE_DIR" && mkdir "$CACHE_DIR" | ||
else | ||
rm "$cache_valid_file" | ||
fi | ||
|
||
# Update the cache (a pristine copy of the rust source master) | ||
if [ ! -d "$cache_src_dir/.git" ]; then | ||
retry sh -c "rm -rf $cache_src_dir && mkdir -p $cache_src_dir && \ | ||
git clone https://github.com/rust-lang/rust.git $cache_src_dir" | ||
fi | ||
retry sh -c "cd $cache_src_dir && git reset --hard && git pull" | ||
retry sh -c "cd $cache_src_dir && \ | ||
git submodule deinit -f . && git submodule sync && git submodule update --init" | ||
|
||
# Cache was updated without errors, mark it as valid | ||
touch "$cache_valid_file" | ||
|
||
# Update the submodules of the repo we're in, using the pristine repo as | ||
# a cache for any object files | ||
# No, `git submodule foreach` won't work: | ||
# http://stackoverflow.com/questions/12641469/list-submodules-in-a-git-repository | ||
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)" | ||
for module in $modules; do | ||
if [ ! -d "$cache_src_dir/$module" ]; then | ||
echo "WARNING: $module not found in pristine repo" | ||
retry sh -c "git submodule deinit -f $module && git submodule update --init $module" | ||
continue | ||
fi | ||
retry sh -c "git submodule deinit -f $module && \ | ||
git submodule update --init --reference $cache_src_dir/$module $module" | ||
done |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
% The Rust Reference Manual | ||
|
||
The manual has moved, and is now called [the reference](reference.html). | ||
The manual has moved, and is now called [the reference](reference/index.html). |
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,30 @@ | ||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
#![crate_name="macros"] | ||
|
||
#[macro_export] | ||
macro_rules! foo { | ||
() => {}; | ||
} | ||
|
||
#[macro_export] | ||
macro_rules! bar { | ||
() => {}; | ||
} | ||
|
||
#[macro_export] | ||
macro_rules! baz { | ||
() => {}; | ||
} | ||
|
||
#[macro_export] | ||
macro_rules! quux { | ||
() => {}; | ||
} |
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,31 @@ | ||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// aux-build:pub-use-extern-macros.rs | ||
|
||
#![feature(use_extern_macros, macro_reexport)] | ||
|
||
// @has pub_use_extern_macros/macro.foo.html | ||
// @!has pub_use_extern_macros/index.html 'pub use macros::foo;' | ||
#[macro_reexport(foo)] extern crate macros; | ||
|
||
// @has pub_use_extern_macros/index.html 'pub use macros::bar;' | ||
// @!has pub_use_extern_macros/macro.bar.html | ||
pub use macros::bar; | ||
|
||
// @has pub_use_extern_macros/macro.baz.html | ||
// @!has pub_use_extern_macros/index.html 'pub use macros::baz;' | ||
#[doc(inline)] | ||
pub use macros::baz; | ||
|
||
// @!has pub_use_extern_macros/macro.quux.html | ||
// @!has pub_use_extern_macros/index.html 'pub use macros::quux;' | ||
#[doc(hidden)] | ||
pub use macros::quux; |
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
10 changes: 10 additions & 0 deletions
10
src/test/ui/suggestions/confuse-field-and-method/issue-18343.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,10 @@ | ||
error: no method named `closure` found for type `Obj<[closure@$DIR/issue-18343.rs:16:28: 16:33]>` in the current scope | ||
--> $DIR/issue-18343.rs:17:7 | ||
| | ||
17 | o.closure(); | ||
| ^^^^^^^ field, not a method | ||
| | ||
= help: use `(o.closure)(...)` if you meant to call the function stored in the `closure` field | ||
|
||
error: aborting due to previous error | ||
|
Oops, something went wrong.