summaryrefslogtreecommitdiff
path: root/src/hir/item_path.hpp
diff options
context:
space:
mode:
authorJohn Hodge (bugs) <tpg@mutabah.net>2017-05-14 12:39:31 +0800
committerJohn Hodge (bugs) <tpg@mutabah.net>2017-05-14 12:39:31 +0800
commit39ccbcf7e5596ca791d8616b678d1a13ebbb1af4 (patch)
tree7d05b59afda9dca6c741275ab3d27e13c39ff561 /src/hir/item_path.hpp
parent1d2fe7681219700998c8ecbdb8ed5acab66578df (diff)
parent699dbed9dca998b0df8418fde68235d230a726eb (diff)
downloadmrust-39ccbcf7e5596ca791d8616b678d1a13ebbb1af4.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/hir/item_path.hpp')
-rw-r--r--src/hir/item_path.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/item_path.hpp b/src/hir/item_path.hpp
index f0c591af..9f9949e1 100644
--- a/src/hir/item_path.hpp
+++ b/src/hir/item_path.hpp
@@ -110,7 +110,8 @@ public:
else if( x.trait ) {
os << "<* as " << *x.trait << ">";
}
- else {
+ else if( x.crate_name ) {
+ os << "\"" << x.crate_name << "\"";
}
return os;
}