about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/module.rs
diff options
context:
space:
mode:
authorBaoshan <pangbw@gmail.com>2019-08-20 15:43:55 -0700
committerGitHub <noreply@github.com>2019-08-20 15:43:55 -0700
commit0c8a14c7fb34d6edbc2b24495bb0774aeae27b98 (patch)
tree49f35638545ccd98762e91fc712d09533ad869e5 /src/libsyntax/parse/parser/module.rs
parent7ab6fa09143f87414485e25cfc29727f5d1f0b8a (diff)
parentbea0372a1a7a31b81f28cc4d9a83a2dc9a79d008 (diff)
downloadrust-0c8a14c7fb34d6edbc2b24495bb0774aeae27b98.tar.gz
rust-0c8a14c7fb34d6edbc2b24495bb0774aeae27b98.zip
Merge pull request #6 from rust-lang/master
rebase code from rust-lang/rust master branch
Diffstat (limited to 'src/libsyntax/parse/parser/module.rs')
-rw-r--r--src/libsyntax/parse/parser/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/module.rs b/src/libsyntax/parse/parser/module.rs
index 58a7ffba948..3f6f87b1c44 100644
--- a/src/libsyntax/parse/parser/module.rs
+++ b/src/libsyntax/parse/parser/module.rs
@@ -60,7 +60,7 @@ impl<'a> Parser<'a> {
                 // Record that we fetched the mod from an external file
                 if warn {
                     let attr = attr::mk_attr_outer(
-                        attr::mk_word_item(Ident::with_empty_ctxt(sym::warn_directory_ownership)));
+                        attr::mk_word_item(Ident::with_dummy_span(sym::warn_directory_ownership)));
                     attr::mark_known(&attr);
                     attrs.push(attr);
                 }