File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ fn f() {
107
107
//^^^^^^^^^^^^^^^ `OUT_DIR` not set, enable "load out dirs from check" to fix
108
108
109
109
compile_error!("compile_error works");
110
- //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `compile_error!` called: compile_error works
110
+ //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compile_error works
111
111
112
112
// Lazy:
113
113
Original file line number Diff line number Diff line change @@ -271,10 +271,7 @@ fn compile_error_expand(
271
271
let text = it. text . as_str ( ) ;
272
272
if text. starts_with ( '"' ) && text. ends_with ( '"' ) {
273
273
// FIXME: does not handle raw strings
274
- mbe:: ExpandError :: Other ( format ! (
275
- "`compile_error!` called: {}" ,
276
- & text[ 1 ..text. len( ) - 1 ]
277
- ) )
274
+ mbe:: ExpandError :: Other ( text[ 1 ..text. len ( ) - 1 ] . to_string ( ) )
278
275
} else {
279
276
mbe:: ExpandError :: BindingError ( "`compile_error!` argument must be a string" . into ( ) )
280
277
}
You can’t perform that action at this time.
0 commit comments