Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
ed08a67566d7d1d9dd2ad928ff21c23e841a4345
rust/src/test/ui/async-await/issues/issue-67893.rs

12 lines
211 B
Rust
Raw Normal View History

Add test for issue-67893
2020-04-16 10:09:59 +09:00
// aux-build: issue_67893.rs
// edition:2018
extern crate issue_67893;
fn g(_: impl Send) {}
fn main() {
g(issue_67893::run())
pretty: trim paths of unique symbols If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-09-02 10:40:56 +03:00
//~^ ERROR: `MutexGuard<'_, ()>` cannot be sent between threads safely
Add test for issue-67893
2020-04-16 10:09:59 +09:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2883ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API