File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,10 @@ feature detection on the x86 platforms.
145145
146146## The ` track_caller `  attribute  
147147
148- The ` track_caller `  attribute may be applied to any function with [ ` "Rust" `  ABI] [ rust-abi ] . When 
149- applied to functions and methods in trait declarations, the attribute applies  to all 
150- implementations. If  the trait provides a default implementation with  the attribute, then the 
151- attribute also applies to override implementations.
148+ The ` track_caller `  attribute may be applied to any function with [ ` "Rust" `  ABI] [ rust-abi ] 
149+ with the exception of the entry point  ` fn main ` . When applied  to functions and methods in 
150+ trait declarations,  the attribute applies to all implementations. If  the trait provides a 
151+ default implementation with the attribute, then the  attribute also applies to override implementations.
152152
153153When applied to a function in an ` extern `  block the attribute must also be applied to any linked
154154implementations, otherwise undefined behavior results. When applied to a function which is made
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments