diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index e23826ee99..33b01685df 100644
--- a/src/librustc/ty/mod.rs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
> rustc +nightly -Vv | |
rustc 1.28.0-nightly (f28c7aef7 2018-06-19) | |
binary: rustc | |
commit-hash: f28c7aef7fbff1909c2d0257186cd7a5f0c6aa4b | |
commit-date: 2018-06-19 | |
host: x86_64-unknown-linux-gnu | |
release: 1.28.0-nightly | |
LLVM version: 6.0 | |
> rustc +nightly error-codes/E0657.rs | |
error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level |
This file contains hidden or 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
# Sample TOML configuration file for building Rust. | |
# | |
# To configure rustbuild, copy this file to the directory from which you will be | |
# running the build, and name it config.toml. | |
# | |
# All options are commented out by default in this file, and they're commented | |
# out with their default values. The build system by default looks for | |
# `config.toml` in the current directory of a build for build configuration, but | |
# a custom configuration file can also be specified with `--config` to the build | |
# system. |
This file contains hidden or 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
error[E0495]: this data would have to have static lifetime | |
--> dyn-trait-underscore.rs:18:20 | |
| | |
16 | fn a<T>(items: &[T]) -> Box<dyn Iterator<Item=&T>> { | |
| ---- SourceArgument | |
18 | Box::new(items.iter()) | |
| ^^^^^^^^^^^^^^^^^^^^^^ InterestingSpot(Cast) | |
19 | } | |
error[E0495]: this data would have to have static lifetime |
This file contains hidden or 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
diff --git a/src/librustc_mir/borrow_check/nll/mod.rs b/src/librustc_mir/borrow_check/nll/mod.rs | |
index c3d9dd8378..3de46bfe36 100644 | |
--- a/src/librustc_mir/borrow_check/nll/mod.rs | |
+++ b/src/librustc_mir/borrow_check/nll/mod.rs | |
@@ -53,6 +53,7 @@ use self::universal_regions::UniversalRegions; | |
/// scraping out the set of universal regions (e.g., region parameters) | |
/// declared on the function. That set will need to be given to | |
/// `compute_regions`. | |
+#[inline(never)] | |
pub(in borrow_check) fn replace_regions_in_mir<'cx, 'gcx, 'tcx>( |