var searchIndex = {}; searchIndex["syntex_errors"] = {"doc":"","items":[[3,"CodeSuggestion","syntex_errors","",null,null],[12,"msp","","",0,null],[12,"substitutes","","",0,null],[3,"FatalError","","Used as a return value to signify a fatal error occurred. (It is also\nused as the argument to panic at the moment, but that will eventually\nnot be true.)",null,null],[3,"ExplicitBug","","Signifies that the compiler died with an explicit call to `.bug`\nor `.span_bug` rather than a failed assertion, etc.",null,null],[3,"DiagnosticBuilder","","Used for emitting structured error messages and other diagnostic information.",null,null],[12,"level","","",1,null],[12,"message","","",1,null],[12,"code","","",1,null],[12,"span","","",1,null],[12,"children","","",1,null],[3,"SubDiagnostic","","For example a note attached to an error.",null,null],[12,"level","","",2,null],[12,"message","","",2,null],[12,"span","","",2,null],[12,"render_span","","",2,null],[3,"Handler","","A handler deals with errors; certain errors\n(fatal, bug, unimpl) may cause immediate exit,\nothers log errors for later reporting.",null,null],[12,"can_emit_warnings","","",3,null],[4,"RenderSpan","","",null,null],[13,"FullSpan","","A FullSpan renders with both with an initial line for the\nmessage, prefixed by file:linenum, followed by a summary of\nthe source code covered by the span.",4,null],[13,"Suggestion","","A suggestion renders with both with an initial line for the\nmessage, prefixed by file:linenum, followed by a summary\nof hypothetical source code, where each `String` is spliced\ninto the lines in place of the code covered by each span.",4,null],[4,"Level","","",null,null],[13,"Bug","","",5,null],[13,"Fatal","","",5,null],[13,"PhaseFatal","","",5,null],[13,"Error","","",5,null],[13,"Warning","","",5,null],[13,"Note","","",5,null],[13,"Help","","",5,null],[13,"Cancelled","","",5,null],[5,"expect","","",null,{"inputs":[{"name":"handler"},{"name":"option"},{"name":"m"}],"output":{"name":"t"}}],[5,"check_old_school","","True if we should use the old-skool error format style. This is\nthe default setting until the new errors are deemed stable enough\nfor general use.",null,{"inputs":[],"output":{"name":"bool"}}],[0,"emitter","","",null,null],[3,"EmitterWriter","syntex_errors::emitter","",null,null],[4,"ColorConfig","","",null,null],[13,"Auto","","",6,null],[13,"Always","","",6,null],[13,"Never","","",6,null],[4,"Destination","","",null,null],[13,"Terminal","","",7,null],[13,"Raw","","",7,null],[17,"MAX_HIGHLIGHT_LINES","","maximum number of lines we will print for each error; arbitrary.",null,null],[8,"Emitter","","Emitter trait for emitting errors.",null,null],[10,"emit","","Emit a structured diagnostic.",8,null],[11,"emit","","",9,null],[11,"eq","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"stderr","","",9,{"inputs":[{"name":"colorconfig"},{"name":"option"},{"name":"option"},{"name":"formatmode"}],"output":{"name":"emitterwriter"}}],[11,"new","","",9,{"inputs":[{"name":"box"},{"name":"option"},{"name":"option"},{"name":"formatmode"}],"output":{"name":"emitterwriter"}}],[11,"write","","",7,null],[11,"flush","","",7,null],[0,"snippet","syntex_errors","",null,null],[3,"SnippetData","syntex_errors::snippet","",null,null],[3,"FileInfo","","",null,null],[3,"Line","","",null,null],[12,"line_index","","",10,null],[12,"annotations","","",10,null],[3,"Annotation","","",null,null],[12,"start_col","","Start column, 0-based indexing -- counting *characters*, not\nutf-8 bytes. Note that it is important that this field goes\nfirst, so that when we sort, we sort orderings by start\ncolumn.",11,null],[12,"end_col","","End column within the line (exclusive)",11,null],[12,"is_primary","","Is this annotation derived from primary span",11,null],[12,"is_minimized","","Is this a large span minimized down to a smaller span",11,null],[12,"label","","Optional label to display adjacent to the annotation.",11,null],[3,"StyledString","","",null,null],[12,"text","","",12,null],[12,"style","","",12,null],[4,"FormatMode","","",null,null],[13,"NewErrorFormat","","",13,null],[13,"OriginalErrorFormat","","",13,null],[13,"EnvironmentSelected","","",13,null],[4,"Style","","",null,null],[13,"HeaderMsg","","",14,null],[13,"FileNameStyle","","",14,null],[13,"LineAndColumn","","",14,null],[13,"LineNumber","","",14,null],[13,"Quotation","","",14,null],[13,"UnderlinePrimary","","",14,null],[13,"UnderlineSecondary","","",14,null],[13,"LabelPrimary","","",14,null],[13,"LabelSecondary","","",14,null],[13,"OldSchoolNoteText","","",14,null],[13,"OldSchoolNote","","",14,null],[13,"NoStyle","","",14,null],[13,"ErrorCode","","",14,null],[13,"Level","","",14,null],[11,"clone","","",13,null],[11,"clone","","",15,null],[11,"clone","","",16,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"cmp","","",10,null],[11,"partial_cmp","","",10,null],[11,"lt","","",10,null],[11,"le","","",10,null],[11,"gt","","",10,null],[11,"ge","","",10,null],[11,"fmt","","",10,null],[11,"clone","","",10,null],[11,"eq","","",11,null],[11,"ne","","",11,null],[11,"cmp","","",11,null],[11,"partial_cmp","","",11,null],[11,"lt","","",11,null],[11,"le","","",11,null],[11,"gt","","",11,null],[11,"ge","","",11,null],[11,"fmt","","",11,null],[11,"clone","","",11,null],[11,"fmt","","",12,null],[11,"eq","","",14,null],[11,"ne","","",14,null],[11,"fmt","","",14,null],[11,"clone","","",14,null],[0,"registry","syntex_errors","",null,null],[3,"Registry","syntex_errors::registry","",null,null],[11,"clone","","",17,null],[11,"new","","",17,null],[11,"find_description","","",17,null],[0,"styled_buffer","syntex_errors","",null,null],[3,"StyledBuffer","syntex_errors::styled_buffer","",null,null],[11,"fmt","","",18,null],[11,"new","","",18,{"inputs":[],"output":{"name":"styledbuffer"}}],[11,"copy_tabs","","",18,null],[11,"render","","",18,null],[11,"putc","","",18,null],[11,"puts","","",18,null],[11,"set_style","","",18,null],[11,"prepend","","",18,null],[11,"append","","",18,null],[11,"num_lines","","",18,null],[8,"CodeMapper","syntex_errors","",null,null],[10,"lookup_char_pos","","",19,null],[10,"span_to_lines","","",19,null],[10,"span_to_string","","",19,null],[10,"span_to_filename","","",19,null],[10,"macro_backtrace","","",19,null],[11,"clone","","",4,null],[11,"clone","","",0,null],[11,"splice_lines","","Returns the assembled code suggestion.",0,null],[11,"fmt","","",20,null],[11,"clone","","",20,null],[11,"fmt","","",20,null],[11,"description","","",20,null],[11,"fmt","","",21,null],[11,"clone","","",21,null],[11,"fmt","","",21,null],[11,"description","","",21,null],[11,"clone","","",1,null],[11,"clone","","",2,null],[11,"emit","","Emit the diagnostic.",1,null],[11,"cancel","","Cancel the diagnostic (a structured diagnostic must either be emitted or\ncancelled or it will panic when dropped).\nBEWARE: if this DiagnosticBuilder is an error, then creating it will\nbump the error count on the Handler and cancelling it won't undo that.\nIf you want to decrement the error count you should use `Handler::cancel`.",1,null],[11,"cancelled","","",1,null],[11,"is_fatal","","",1,null],[11,"span_label","","Add a span/label to be included in the resulting snippet.\nThis is pushed onto the `MultiSpan` that was created when the\ndiagnostic was first built. If you don't call this function at\nall, and you just supplied a `Span` to create the diagnostic,\nthen the snippet will just include that `Span`, which is\ncalled the primary span.",1,null],[11,"note_expected_found","","",1,null],[11,"note","","",1,null],[11,"span_note","","",1,null],[11,"warn","","",1,null],[11,"span_warn","","",1,null],[11,"help","","",1,null],[11,"span_help","","",1,null],[11,"span_suggestion","","Prints out a message with a suggested edit of the code.",1,null],[11,"set_span","","",1,null],[11,"code","","",1,null],[11,"message","","",1,null],[11,"level","","",1,null],[11,"fmt","","",1,null],[11,"drop","","",1,null],[11,"with_tty_emitter","","",3,{"inputs":[{"name":"colorconfig"},{"name":"option"},{"name":"bool"},{"name":"bool"},{"name":"option"}],"output":{"name":"handler"}}],[11,"with_emitter","","",3,{"inputs":[{"name":"bool"},{"name":"bool"},{"name":"box"}],"output":{"name":"handler"}}],[11,"set_continue_after_error","","",3,null],[11,"struct_dummy","","",3,null],[11,"struct_span_warn","","",3,null],[11,"struct_span_warn_with_code","","",3,null],[11,"struct_warn","","",3,null],[11,"struct_span_err","","",3,null],[11,"struct_span_err_with_code","","",3,null],[11,"struct_err","","",3,null],[11,"struct_span_fatal","","",3,null],[11,"struct_span_fatal_with_code","","",3,null],[11,"struct_fatal","","",3,null],[11,"cancel","","",3,null],[11,"span_fatal","","",3,null],[11,"span_fatal_with_code","","",3,null],[11,"span_err","","",3,null],[11,"span_err_with_code","","",3,null],[11,"span_warn","","",3,null],[11,"span_warn_with_code","","",3,null],[11,"span_bug","","",3,null],[11,"delay_span_bug","","",3,null],[11,"span_bug_no_panic","","",3,null],[11,"span_note_without_error","","",3,null],[11,"span_unimpl","","",3,null],[11,"fatal","","",3,null],[11,"err","","",3,null],[11,"warn","","",3,null],[11,"note_without_error","","",3,null],[11,"bug","","",3,null],[11,"unimpl","","",3,null],[11,"bump_err_count","","",3,null],[11,"err_count","","",3,null],[11,"has_errors","","",3,null],[11,"abort_if_errors","","",3,null],[11,"emit","","",3,null],[11,"emit_with_code","","",3,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"eq","","",5,null],[11,"fmt","","",5,null],[11,"color","","",5,null],[11,"to_str","","",5,null]],"paths":[[3,"CodeSuggestion"],[3,"DiagnosticBuilder"],[3,"SubDiagnostic"],[3,"Handler"],[4,"RenderSpan"],[4,"Level"],[4,"ColorConfig"],[4,"Destination"],[8,"Emitter"],[3,"EmitterWriter"],[3,"Line"],[3,"Annotation"],[3,"StyledString"],[4,"FormatMode"],[4,"Style"],[3,"SnippetData"],[3,"FileInfo"],[3,"Registry"],[3,"StyledBuffer"],[8,"CodeMapper"],[3,"FatalError"],[3,"ExplicitBug"]]}; initSearch(searchIndex);