Skip to content

Commit 58e2e90

Browse files
committed
Added description to modules/mod-cfg-multiple-targets.rs
1 parent 7054fb4 commit 58e2e90

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

tests/ui/modules/mod-cfg-multiple-targets.rs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
//@ run-pass
22

3-
// Regression test for a problem with the first mod attribute
4-
// being applied to every mod
3+
//! This test was to solve a bug as the rust notation for attributes on modules was transitioning
4+
//! from
5+
//!
6+
//! ```
7+
//! mod foo = "foo.rs";
8+
//! ```
9+
//!
10+
//! to
11+
//!
12+
//! ```
13+
//! #[path = "foo.rs"]
14+
//! mod foo;
15+
//! ```
16+
//!
17+
//! This specifically was testing when an attribute was being applied to all modules instead of the
18+
//! first one
19+
//!
20+
//! Added in commit: https://github.com/rust-lang/rust/commit/7aee9f7b56f8d96f9444ebb1d06e32e024b81974
21+
//! Issue : https://github.com/rust-lang/rust/issues/906
522
623
#[cfg(target_os = "linux")]
724
mod hello {}

0 commit comments

Comments
 (0)