Auto merge of #38205 - jseyfried:fix_module_directory_regression, r=eddyb
macros: fix the expected paths for a non-inline module matched by an `item` fragment Fixes #38190. r? @nrc
This commit is contained in:
commit
f99d4dfef2
8 changed files with 63 additions and 23 deletions
12
src/test/run-pass/auxiliary/issue_38190.rs
Normal file
12
src/test/run-pass/auxiliary/issue_38190.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! m { ([$i:item]) => {} }
|
||||
21
src/test/run-pass/issue-38190.rs
Normal file
21
src/test/run-pass/issue-38190.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue_38190.rs
|
||||
// ignore-pretty issue #37195
|
||||
|
||||
#[macro_use]
|
||||
extern crate issue_38190;
|
||||
|
||||
mod auxiliary {
|
||||
m!([mod issue_38190;]);
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue