about summary refs log tree commit diff
path: root/src/librustc/util
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-17 15:21:31 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-17 20:04:20 +1000
commitbe3724fb7cd416ad3d7016fd3917f0f6a68714c8 (patch)
treee54f131eef6ea508bf78293476f40c27fc7ccfad /src/librustc/util
parentc2e49bf1a279ec704bfe39fa149b64783454d72d (diff)
downloadrust-be3724fb7cd416ad3d7016fd3917f0f6a68714c8.tar.gz
rust-be3724fb7cd416ad3d7016fd3917f0f6a68714c8.zip
Change `rustc::util::common::FN_OUTPUT_NAME` to a `Symbol`.
Diffstat (limited to 'src/librustc/util')
-rw-r--r--src/librustc/util/common.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs
index 26194176350..67eaa19c080 100644
--- a/src/librustc/util/common.rs
+++ b/src/librustc/util/common.rs
@@ -11,6 +11,7 @@ use std::time::{Duration, Instant};
 
 use std::sync::mpsc::{Sender};
 use syntax_pos::{SpanData};
+use syntax::symbol::{Symbol, sym};
 use rustc_macros::HashStable;
 use crate::ty::TyCtxt;
 use crate::dep_graph::{DepNode};
@@ -18,7 +19,7 @@ use lazy_static;
 use crate::session::Session;
 
 // The name of the associated type for `Fn` return types
-pub const FN_OUTPUT_NAME: &str = "Output";
+pub const FN_OUTPUT_NAME: Symbol = sym::Output;
 
 // Useful type to use with `Result<>` indicate that an error has already
 // been reported to the user, so no need to continue checking.