Skip to content

Commit e65a8b8

Browse files
committed
auto merge of #11674 : indirect/rust/doc_file, r=alexcrichton
Found out about `file!` today from o11c in IRC.
2 parents 80a2306 + ec2b8c5 commit e65a8b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/rust.md

+1
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ include:
484484

485485
* `fmt!` : format data into a string
486486
* `env!` : look up an environment variable's value at compile time
487+
* `file!`: return the path to the file being compiled
487488
* `stringify!` : pretty-print the Rust expression given as an argument
488489
* `include!` : include the Rust expression in the given file
489490
* `include_str!` : include the contents of the given file as a string

0 commit comments

Comments
 (0)