diff options
| author | David Wood <david@davidtw.co> | 2018-09-27 01:17:54 +0200 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-10-02 01:16:05 +0200 |
| commit | 9e2d6e1e62802f7a42c900438b97fd3c5316dcb3 (patch) | |
| tree | 58c4b5c71526010b0fa2d82bd0eedd3b71a0d410 /src/librustc_codegen_utils | |
| parent | de3d640f59c4fa4a09faf2a8d6b0a812aaa6d6cb (diff) | |
| download | rust-9e2d6e1e62802f7a42c900438b97fd3c5316dcb3.tar.gz rust-9e2d6e1e62802f7a42c900438b97fd3c5316dcb3.zip | |
Add `crate::` to trait suggestions in Rust 2018.
In the 2018 edition, when suggesting traits to import that implement a given method that is being invoked, suggestions will now include the `crate::` prefix if the suggested trait is local to the current crate.
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs index 39b88b225ed..7651dfe4f34 100644 --- a/src/librustc_codegen_utils/symbol_names.rs +++ b/src/librustc_codegen_utils/symbol_names.rs @@ -338,6 +338,7 @@ fn compute_symbol_name<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, instance: Instance // // To be able to work on all platforms and get *some* reasonable output, we // use C++ name-mangling. +#[derive(Debug)] struct SymbolPathBuffer { result: String, temp_buf: String, |
